ITeye博客

struts2

共 3 篇文章

struts2 fileUpload

上传出现: java.lang.RuntimeException: Unable to load bean org.apache.struts2.dispatcher.multipart.MultiPartRequest (jakarta) - [unknown location]错误 原因:没有加载commons-fileupload包,把commons-fileupload包放入classpath,OK。 讨论: http://issues.apache.org/struts/browse/WW-1642

2007-12-31 10:20 · struts2 · Java · Apache · Struts · Bean

Struts2 学习笔记

struts的属性配置文件。默认为default.properties,已包含在struts2的发布包里面。 如果要修改配置文件,只需要在web application的classpath中放置一个struts.properties(一般放置在/WEB-INF/classes目录下)文件,并将需要修改的key和值写入该文件即可。 在开发环境下,需要配置的几个属性: » struts.i18n.reload = true – enables reloading of internationalization files » struts.devMode = true – enables dev…

2007-10-30 22:29 · struts2 · Struts · XML · Web · Servlet

Struts2学习笔记

如下标签格式: 1 <li> 2 <s:url id="url" action="HelloWorld"> 3 <s:param name="request_locale">en</s:param> 4 </s:url> 5 <s:a href="%{url}">English</s:a> 6 </li>该请求的链接后面将带有?request_locale=en这样的参数,该参数可以有多个。 Any number of parameters can be added to the URI by adding more param etags. 通配符映射: <action name="*" …

2007-10-11 22:51 · struts2 · Struts · XML · JSP