Struts1框架
awj3584
这个作者很懒,什么都没留下…
展开
-
struts1文件上传和下载
FileAction package com.action; import org.apache.struts.action.*; import javax.servlet.http.*; import com.actionForm.FileActionForm; import org.apache.struts.actions.DispatchAction; impor转载 2012-03-06 16:49:23 · 997 阅读 · 0 评论 -
does not contain handler parameter named 'action'. This may be caused by whitespace in the label te
刚刚在做Struts开发过程中,遇到了一个问题,jboss错误提示为: does not contain handler parameter named 'method'. This may be caused by whitespace in the label text.” Google了一下,问题很快就解决了。应该把form的method选项设置成post,这样就对了。 我转载 2012-03-06 17:17:03 · 6790 阅读 · 0 评论 -
struts:实现图片的上传 argument type mismatch error
upload.jsp的部分源代码: 请选择需要上传的照片: 接下来需要在ActionForm中声明这个属性,并设置getter和setter方法,这部分源代码如下: public class UploadForm extends ActionForm { protected FormFile photoFile;转载 2012-03-06 17:18:26 · 1477 阅读 · 1 评论 -
关于web.xml的首页和struts的action的问题
wel.xml是这样配置的: Xml代码 welcome-file-list> welcome-file>index.actionwelcome-file> welcome-file-list> index.action struts是这样配置的: Xml代码 action name="index转载 2013-11-09 17:43:12 · 2182 阅读 · 0 评论