• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Struts navigation

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can use the button as a variable. Only the button that is clicked gets submitted with the form.
 
Ranch Hand
Posts: 411
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic