This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes Hyperlink , action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hyperlink , action" Watch "Hyperlink , action" New topic

Hyperlink , action

Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Hello All,

I have one submit button on my JSP page.i.e one form.

I want to put a hyper link on that page ..but want to use the same actionClass which i use when I hit "submit"

How do I do this..i.e in my actionClass , How do I know that I had hit hyper link on jsp ??

I am new to sturts....please reply thanks
Trevor Whitehead

Joined: Oct 16, 2002
Posts: 16
use the onClick attribute to submit the form.
Feargal Egan

Joined: Nov 14, 2001
Posts: 13
Anand Gondhiya
Ranch Hand

Joined: Feb 24, 2004
Posts: 155
Thanks everybody...I got it. it's html:link
Consider Paul's rocket mass heater.
subject: Hyperlink , action
Similar Threads
control the reseting the form --form bean
How to use Request Dispatcher
Pass values using href in JSP
Populating form values with hyperlink clicks
Is it possible to save the data of the applet when focus is lost from it