permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 438
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: 438
thanks Merrill Higginson , i will check it out
 
wood burning stoves
 
subject: can we replace submit button with link in order to submit form ?
 
Similar Threads
Struts & FORM authentication
Struts & FORM authentication
Cannot retrieve mapping for action /content/AddLinks
howto settle multibox problem ?
HTTP 404 and Order of display.