This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes Struts and the fly likes can we replace submit button with link in order to submit form ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can we replace submit button with link in order to submit form ?" Watch "can we replace submit button with link in order to submit form ?" New topic
Author

can we replace submit button with link in order to submit form ?

Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 455
hi good day,

if i have form as follow :


this form is somehow using submit button in order to fire the submit action, but i was thinking to replace button with image which wrap with link, my doubt is how struts know detect the form item like "user_role_id" and "description" when i call the action by using
" <html:link action="addUserRole" > Add </html:link> " ?

thank you
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'd recommend that you use the <html:image> tag. This turns an image into a submit button.


Merrill
Consultant, Sima Solutions
Nakata kokuyo
Ranch Hand

Joined: Apr 13, 2005
Posts: 455
thanks Merrill Higginson , i will check it out
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: can we replace submit button with link in order to submit form ?