Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts navigation

 
J Haley
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jsp page that has previous, next, and a couple of other links that all post to the same struts action. Currently my action is aware of the links that been clicked by using javascript in the jsp that sets the same hidden variable. Once in my action I just read the property that was set with javascript. Question is, how do this without javascipt? Is what I am currently doing a good practice?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the button as a variable. Only the button that is clicked gets submitted with the form.
 
Jay Pawar
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can derive your Action Class from LookUpDispatchAction class. For more details check out this link
http://husted.com/struts/tips/003.html
 
J Haley
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the info. I tried to check out the link, but it does not work.
 
Jay Pawar
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmmm... doesn't work ...that is interesting. Anyways, I would suggest you to make a Google Search on "Struts Tips" and click the link which says Struts Tips- Husted dot com.

Hope that helps...

Thanks
Jay
 
Chris Gastin
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Jay Pawar:
You can derive your Action Class from LookUpDispatchAction class. For more details check out this link
http://husted.com/struts/tips/003.html



Is LookUpDispatchAction a new Action class? Did they start using this because of the refactoring for Common Chains implmentation they were putting in Struts?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic