This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 fileupload problem

 
evan li
Greenhorn
Posts: 2
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic