aspose file tools
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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 446
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: 446
thanks Merrill Higginson , i will check it out
 
Consider Paul's rocket mass heater.
 
subject: can we replace submit button with link in order to submit form ?