• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts Forward Redirect with Parameter

 
Scott Selikoff
author
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • 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
Bartender
Posts: 4033
18
Eclipse IDE Flex Google Web Toolkit
  • 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 ]
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!