Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing parameter to a struts app

 
Manon Baratt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a non-struts web app. I want to have a link in one of the pages that on clicking, it redirects to my struts app. Would something like this do it?
my link

Do I retrieve the id in myaction class via the session/request object?
Thanks
 
Manon Baratt
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Correction, the link should be:

 
Krishna Madhava
Greenhorn
Posts: 11
posted 5 years ago
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you can call the action class through the action attribute of the html form..
I think you can call from html anchor tag using the action attribute also
If you post your code means it will be easy to tell exactly..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic