Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Appending an attribute to the URL query string

 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
In my STRUTS application I have to append an attribute to the query string. If I try to redirect the URL an error occurs with the message "Cannot redirect the request that has allready been dispatched". How do I get around this problem. All sugetions will be appreciated.

Thanks,
Raj Kamal.
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
before directing u might have already committed the response i feel

post ur action class code that could be helpful in resolving the problem
 
Rajkamal Pillai
Ranch Hand
Posts: 445
1
Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick response. What I try to do from my Action is, before returning the ActionMapping instance with the forward string in the struts-config, I tried to redirect using HttpServletResponse.sendRedirect() method. That was when the error occured. Am I completely oftrack here? Or better still maybe there is a even beter way of acheiving this........
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic