Struts
常常发懵?
一个注重搬砖的地方
展开
-
struts2 的type类型中的 redirect 使用
list.action 它的流程是当你的action返回SUCCESS的时候,它会进行一个重定向,进入list.action的一个新action 根据这个action再进行跳转!原创 2009-12-14 17:16:00 · 954 阅读 · 1 评论 -
struts 常量加载顺序
struts-default.xml struts-plugin.xml struts.xml struts.propertiesweb.xml原创 2009-12-23 17:54:00 · 734 阅读 · 0 评论 -
Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack问题解决
具体异常是这句话:Can not find a java.io.InputStream with the name [downloadFile] in the invocation stack. Check the tag specified for this action. 1.文件路径不对,根本就没有取到文件。这种情况下,可以将获得InputStream的那条语句放在system原创 2009-12-23 17:04:00 · 13572 阅读 · 1 评论 -
HTTP Status 404 - No result defined for action XXXX and result success 处理
出现问题过程描述: 本来的index页面是静态的,现在由于需求变更,需要在加载首页的时候查询一次数据库,也就是要首先执行一个Action,然后再转到index.jsp页面。我的动作:新建一个welcome.jsp 页面,页面内容为空,只在标签下加了一个标签,内容为: ,这句话的意思是,加载本页的时候立即跳转到url指定的页面或者action,这里是index.action,我让index.action执行一个数据库查询,然后返回index.jsp,那么我的首页就可以从数据库中得到数据了。应该说问题到这里结原创 2011-05-04 17:16:00 · 10841 阅读 · 4 评论
分享