well, when we use submit button, the form details gets submitted, whereas, in case of links say,
<html:link action="/cart/addToCart.do"><html:img src="/icons/KWcontinue.gif" border="0"/></html:link>
so, in my page, with an image of "KWcontinue.gif" only, i could navigate to next page. and here, i culd specify the action to take but the form details are not getting submitted (means, not calling setter methods of form-bean). i don't want to use buttons here........
how shld i go abt it....
-
will <html:link> submit the form details? (3 messages)
- Posted by: Dhilip Kumar
- Posted on: October 27 2004 05:17 EDT
Threaded Messages (3)
- will <html:link> submit the form details? by Travis Truman on October 27 2004 11:24 EDT
- will <html:link> submit the form details? by Dhilip Kumar on October 28 2004 02:45 EDT
- input type="image" by Dennis Cheung on October 28 2004 05:24 EDT
-
will <html:link> submit the form details?[ Go to top ]
- Posted by: Travis Truman
- Posted on: October 27 2004 11:24 EDT
- in response to Dhilip Kumar
Why not just use javascript, something like:
<A HREF="javascript:doSubmit()">Link Title Here</A> -
will <html:link> submit the form details?[ Go to top ]
- Posted by: Dhilip Kumar
- Posted on: October 28 2004 02:45 EDT
- in response to Travis Truman
that works fine with javascript, but i thought of using without javascript in struts. anyhow, thanks truman. -
input type="image"[ Go to top ]
- Posted by: Dennis Cheung
- Posted on: October 28 2004 05:24 EDT
- in response to Dhilip Kumar
http://struts.apache.org/userGuide/struts-html.html#image
HTML have a better way to do submit by click on a image.