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
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: 437
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: 437
thanks Merrill Higginson , i will check it out
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can we replace submit button with link in order to submit form ?
 
Similar Threads
Struts & FORM authentication
HTTP 404 and Order of display.
Cannot retrieve mapping for action /content/AddLinks
howto settle multibox problem ?
Struts & FORM authentication