我用的struts2.3.15包,datetimepicker时间空间不显示
<%@pagelanguage="java"import="java.util.*"pageEncoding="utf-8"%><%@taglibprefix="s"ur...
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sd" uri="/struts-dojo-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'registerOgnl.jsp' starting page</title>
<s:head />
<sd:head/>
</head>
<body>
<center>
<s:form action="registerOgnlAction" method="post">
<s:textfield name="register.username" label="姓名"></s:textfield>
<s:password name="register.password" label="密码"></s:password>
<s:textfield name="register.age" label="年龄"></s:textfield>
<sd:datetimepicker name="register.birthday" label="生日"></sd:datetimepicker>
<s:textfield name="register.address" label="住址"></s:textfield>
<s:submit value="提交"></s:submit>
</s:form>
</center>
</body>
</html>
这是源码 展开
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sd" uri="/struts-dojo-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'registerOgnl.jsp' starting page</title>
<s:head />
<sd:head/>
</head>
<body>
<center>
<s:form action="registerOgnlAction" method="post">
<s:textfield name="register.username" label="姓名"></s:textfield>
<s:password name="register.password" label="密码"></s:password>
<s:textfield name="register.age" label="年龄"></s:textfield>
<sd:datetimepicker name="register.birthday" label="生日"></sd:datetimepicker>
<s:textfield name="register.address" label="住址"></s:textfield>
<s:submit value="提交"></s:submit>
</s:form>
</center>
</body>
</html>
这是源码 展开
网易云信
2023-12-06 广告
2023-12-06 广告
UIkit是一套轻量级、模块化且易于使用的开源UI组件库,由YOOtheme团队开发。它提供了丰富的界面元素,包括按钮、表单、表格、对话框、滑块、下拉菜单、选项卡等等,适用于各种类型的网站和应用程序。UIkit还支持响应式设计,可以根据不同...
点击进入详情页
本回答由网易云信提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询