*
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 fileupload problem" Watch "Struts2 fileupload problem" New topic
Author

Struts2 fileupload problem

evan li
Greenhorn

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.

Stuts.xml


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
 
wood burning stoves
 
subject: Struts2 fileupload problem