
struts2
幽居古藤
这个作者很懒,什么都没留下…
展开
-
Struts2中if Tag得注意的问题
这样一个if没有什么问题,那你说下边的有问题吗?下边这个仅仅是多了一个空格就不对了。值得注意,调试好大一会才发问题所在!原创 2010-08-10 19:47:00 · 653 阅读 · 0 评论 -
struts Action的result 的name和acion中返回的字符不相符时出的错
Struts has detected an unhandled exception: Messages:topicInfoManageActionInvalid action class configuration that references an unknown class named [topicInfoManageAction]2010-08-16 17:17:00 · 104 阅读 · 0 评论 -
struts2 表单不能自动填充的可能原因
1.属性没有Get和set方法2.页面上的name和action类中的属性不对应,3.页面上的name存在重复2010-08-13 17:35:00 · 98 阅读 · 0 评论 -
struts2在页面上实现for循环
<s:bean name="org.apache.struts2.util.Counter" id="counter"> <s:param name="first" value="1" /> <s:param name="last" value="10" /> <s:ite2010-08-13 16:51:00 · 102 阅读 · 0 评论 -
多文件上传
在action中可以直接使用file数组即可,fileFileName 自动保存文件名,fileContentType或者使用list页面上使用<s:file name="file" /><s:file name="file" />这样即可上传多个文件。保存文件的方法try{FileInputStream fis = new FileInputStr...2010-08-13 13:35:00 · 92 阅读 · 0 评论 -
struts2 CheckBoxList使用时要注意的问题
<s:checkbox name="check" label="Check" fieldValue="true"></s:checkbox><s:checkboxlist list="#{'1':'abc','2':'efg','3':'sfdsf'}" value="#{'2','3'}" name="checkList3&2010-08-13 10:49:00 · 98 阅读 · 0 评论 -
Struts2中if Tag得注意的问题
<s:if test="%{model2.userAwardses != null && model2.userAwardses.size() > 0}"></s:if>这样一个if没有什么问题,那你说下边的有问题吗?<s:if test="%{model2.userAwardses != null && model2.2010-08-10 19:47:00 · 111 阅读 · 0 评论 -
struts2时间格式
<br />1.<br /><s:textfield id="examBeginDate" name="initSet.examBeginDate"<br /> onclick="WdatePicker({lang:'cn',dateFmt:'yyyy-MM-dd',isShowClear:false,minDate:'%{@java.lang.String@format('%tF',initSet.examBeginDate)}',maxDate:'%{@java.lang.String@fo原创 2010-08-30 12:15:00 · 1029 阅读 · 0 评论 -
struts2 表单不能自动填充的可能原因
<br />1.属性没有Get和set方法<br />2.页面上的name和action类中的属性不对应,<br />3.页面上的name存在重复<br />原创 2010-08-13 17:35:00 · 647 阅读 · 0 评论 -
struts Action的result 的name和acion中返回的字符不相符时出的错
<br />Struts has detected an unhandled exception: Messages:topicInfoManageActionInvalid action class configuration that references an unknown class named [topicInfoManageAction]原创 2010-08-16 17:17:00 · 457 阅读 · 0 评论 -
struts2在页面上实现for循环
<br /> <s:bean name="org.apache.struts2.util.Counter" id="counter"> <br /> <s:param name="first" value="1" /> <br /> <s:param name="last" value="10" /> <br /> <s:iterator> <br /> counter:<s:property value="curent-1"/>转载 2010-08-13 16:51:00 · 724 阅读 · 0 评论 -
多文件上传
在action中可以直接使用file数组即可,fileFileName 自动保存文件名,fileContentType或者使用list页面上使用这样即可上传多个文件。保存文件的方法try{FileInputStream fis = new FileInputStream(file);bis=new BufferedInputStream(fis);FileOutputSteam fos=new FileOutputStream(new File(dir,newFileName));bos原创 2010-08-13 13:35:00 · 483 阅读 · 0 评论 -
struts2 CheckBoxList使用时要注意的问题
<br /><s:checkbox name="check" label="Check" fieldValue="true"></s:checkbox><br /><s:checkboxlist list="#{'1':'abc','2':'efg','3':'sfdsf'}" value="#{'2','3'}" name="checkList3"></s:checkboxlist><br /><s:checkboxlist list="#{'1':'abc','2':'efg','3':'sfd原创 2010-08-13 10:49:00 · 941 阅读 · 0 评论 -
struts2时间格式
1.<s:textfield id="examBeginDate" name="initSet.examBeginDate"onclick="WdatePicker({lang:'cn',dateFmt:'yyyy-MM-dd',isShowClear:false,minDate:'%{@java.lang.String@format('%tF',initSet.examBeginDat...2010-08-30 12:15:00 · 102 阅读 · 0 评论