Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 fileupload problem

 
evan li
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 94
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
redirect action should be something like this
also make sure that you have accessors and mutators for currentIncidentId in your action class
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic