It's not a secret anymore!*
The moose likes Struts and the fly likes passing parameter to a struts app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "passing parameter to a struts app" Watch "passing parameter to a struts app" New topic
Author

passing parameter to a struts app

Manon Baratt
Ranch Hand

Joined: Jan 30, 2006
Posts: 58
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

Joined: Jan 30, 2006
Posts: 58
Correction, the link should be:

Krishna Madhava
Greenhorn

Joined: Sep 21, 2007
Posts: 11
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..
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: passing parameter to a struts app