The moose likes Struts and the fly likes Using multiple JSPs for one Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using multiple JSPs for one Action" Watch "Using multiple JSPs for one Action" New topic

Using multiple JSPs for one Action

Fletcher Munson
Ranch Hand

Joined: May 16, 2007
Posts: 31
I'm trying to figure out how to use multiple pages for one action. All the fields are identical, but depending on the page different info needs to be saved/displayed/validated/etc. The problem I'm running into is when the validation fails. I need to know which input to return to. For example the ".transaction.Contribution" should also be able to return to ".transaction.Withdrawal"

I thought I saw something using an asterisk notation for the action or method="{1}", but I can't seem to find much that elaborates on this or how to use it. Can anyone help me out?

David Newton

Joined: Sep 29, 2008
Posts: 12617

See both the results configuration and parameters in configuration results pages; this may be enough for your needs.
I agree. Here's the link:
subject: Using multiple JSPs for one Action
It's not a secret anymore!