• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Forward Redirect with Parameter

 
Scott Selikoff
author
Saloon Keeper
Posts: 3903
16
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a struts action that defines a forward action such as the follow:

My action code forwards to "yay" based on some control logic such as:


Question is this: Can I pass a url/form parameter to "/happyWidget.do" on the redirect? If so, how? It seems to lose any information I set in the form if redirect is set.
[ May 29, 2008: Message edited by: Scott Selikoff ]
 
Scott Selikoff
author
Saloon Keeper
Posts: 3903
16
Eclipse IDE Flex Google Web Toolkit
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I managed to solve it one way by modifying the ActionForward object. Granted you can't modify it directly (without throwing a frozen configuration exception), so the following works although it doesn't seem right to me.

[ May 29, 2008: Message edited by: Scott Selikoff ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic