This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Hyperlink , action" Watch "Hyperlink , action" New topic
Author

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
-Anand.
Trevor Whitehead
Greenhorn

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

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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