目前需要学习和改正的部分;
1.图片上传和管理
2.用户输入框的验证
3.AJAX流程
4.空指针的显示问题
5.时间存储问题收集
--------------------------------------------------
自动跳转
<meta http-equiv="refresh" content="1;url=index.jsp">
注:content="1 是时间控制,表示1秒后自动跳转到要跳转的页面.
content="0 表示打开该页后立即跳转到你要跳转的页面.
url=index.jsp 是要跳转的页面
-----------------------------------------------------
自动提交
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body οnlοad="document.form1.submit();">
<form name="form1" method="post" action="Servlet或action">
</form>
</body>
</html>
------------------------------------------------------
${orderinfo.id}
<input 有时不显示动态结果,就是这些字符串
原因:前面加$
--------------------------------------------------------------
迭代数据出不来
答案:没导入bean,logic等包
导入后提示找不到struts-logic.tld,
答案:web.xml要配置这几个文件,确定位置正确
http://localhost:8080/EShop/mypay.do?method=getMsgFromOrder&id=18
--------------------------------------------------------------
将要处理的
payplatform 项目中redirect.jsp里面的参数
<input type="text" name="website" value="http://localhost:8080/Eshop/"/>
------------------------------------------------------
<logic:messagesPresent>
<script language="javascript">
alert('<html:errors property="loginError"/>');
</script>
</logic:messagesPresent>
------------------------------------
No form found under locale 'zh_en'
验证xml文件中没有相应的form 名称
1.图片上传和管理
2.用户输入框的验证
3.AJAX流程
4.空指针的显示问题
5.时间存储问题收集
--------------------------------------------------
自动跳转
<meta http-equiv="refresh" content="1;url=index.jsp">
注:content="1 是时间控制,表示1秒后自动跳转到要跳转的页面.
content="0 表示打开该页后立即跳转到你要跳转的页面.
url=index.jsp 是要跳转的页面
-----------------------------------------------------
自动提交
<%@ page language="java" pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<body οnlοad="document.form1.submit();">
<form name="form1" method="post" action="Servlet或action">
</form>
</body>
</html>
------------------------------------------------------
${orderinfo.id}
<input 有时不显示动态结果,就是这些字符串
原因:前面加$
--------------------------------------------------------------
迭代数据出不来
答案:没导入bean,logic等包
导入后提示找不到struts-logic.tld,
答案:web.xml要配置这几个文件,确定位置正确
http://localhost:8080/EShop/mypay.do?method=getMsgFromOrder&id=18
--------------------------------------------------------------
将要处理的
payplatform 项目中redirect.jsp里面的参数
<input type="text" name="website" value="http://localhost:8080/Eshop/"/>
------------------------------------------------------
<logic:messagesPresent>
<script language="javascript">
alert('<html:errors property="loginError"/>');
</script>
</logic:messagesPresent>
------------------------------------
No form found under locale 'zh_en'
验证xml文件中没有相应的form 名称