aspose file tools*
The moose likes Struts and the fly likes Problems with DispatchAction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Problems with DispatchAction" Watch "Problems with DispatchAction" New topic
Author

Problems with DispatchAction

Anthony Philips
Greenhorn

Joined: Aug 29, 2013
Posts: 3
I'm doing some work with Struts and have decided to use dispatch action to minimize some of my code. I was able to get it to work, but now I'm in the stage of refining the code. I have one action, but I'm using different paths depending on what section of the webapp I'm on. However struts keeps appending to the path.

When I move from the Home Page loyalty.do to the edit page loyalty/points.do It's fine, but when I try to return to the home Page the url becomes /loyalty/loyalty, which doesn't exist.
Furthermore I'm trying to accomplish this, because I would like to use the struts validator framework and I'm assuming that I need to separate the paths so I can test the values at the appropriate pages.
Any help would be welcomed.
 
jQuery in Action, 2nd edition
 
subject: Problems with DispatchAction