开发者

File upload with other form fields(Like Text inputs) in struts 1.3

I am trying to upload an Excel file onto my server. There is one more form field which I need, the Sheet Name. Now i have to use the org.apache.struts.upload to do this. But i am not able to fi开发者_如何学Gogure out how i am going to extract the Sheet name text field since i cannot directly access request parameters on the multipart/form-data enctype.

Thanks in advance.


You shouldn't be accessing request parameters directly in Struts 1, you should be using the ActionForm to encapsulate form values. All form values are available.

If you're not sure how to use the action form, here's a tutorial.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜