Meaningless Drivel is fun!*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Hyperlink , action