File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts2 fileupload problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 fileupload problem" Watch "Struts2 fileupload problem" New topic

Struts2 fileupload problem

evan li

Joined: Jun 07, 2013
Posts: 2
Here is my problem.
The 'incidentExport' & 'incidentPersist' works fine.

However, the new action 'uploadIncidentReport', does not do well.
After the method return SUCCESS, the redirect url is .../incidentDetail.action, which should be .../incidentDetail.action?currentIncidentId=*.

I guess is something wrong with <interceptor-ref name="defaultStack" />.
Maybe it has some conflicts with redirecting to an action needs a param?

Here is my code.


Thank you for reading this.
Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

redirect action should be something like this
also make sure that you have accessors and mutators for currentIncidentId in your action class

Learning some thing New Every Day
I agree. Here's the link:
subject: Struts2 fileupload problem
Similar Threads
Unable to get value submitted from Jquery post in Struts2 action
Overriding default interceptor stack
Struts 2 Token interceptor
[Solved] Pass bean from invocation action to target action in chain type result
Null pointer Exception when insert new record to database using struts2 and hibernate3