aspose file tools*
The moose likes Struts and the fly likes Appending an attribute to the URL query string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Appending an attribute to the URL query string" Watch "Appending an attribute to the URL query string" New topic
Author

Appending an attribute to the URL query string

Rajkamal Pillai
Ranch Hand

Joined: Mar 02, 2005
Posts: 443
    
    1

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

Joined: Sep 21, 2003
Posts: 415
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

Joined: Mar 02, 2005
Posts: 443
    
    1

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........
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Appending an attribute to the URL query string