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 Spring in Action this week in the Spring 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: 439
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: 439
thanks Merrill Higginson , i will check it out
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: can we replace submit button with link in order to submit form ?