> -----Original Message-----
> From: Shilpa Nalgonda [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 18, 2004 9:15 AM
> To: Struts Users Mailing List
> Subject: form submit problem...
> 
> 
> I am trying to submit a form with users email and password,  
> such that when
> the user ckicks on next the checkCustomer.do action is executed.
> I am using html:submit to display the next button as below:"
>                       <span class="right"><html:submit 
> value="next"/></span> "
> 
> But i do not want to use html:submit as i have to display a 
> img  button .
> How can i do that.

http://husted.com/struts/tips/001.html

and since you didn't use google:
http://www.google.com/search?q=struts+image+button+&sourceid=mozilla-search&start=0&start=0


> 
> I have tried to use : <html:link href="checkCustomer.do"><img
> src="img/next.gif"></html:link>  --
> but it does not work as the form attributes are never set.

Of course not.  A link is not the submit button on a form.

> And also i tried to write a javascript as
> function gotoNext(){
>     document.forms[0].action=checkCustomer.do;
>     document.forms[0].submit();
>   }
> and in jsp use a link to call javascript function, even that 
> does not work.
> 
> Below is my jsp file...
> 
> <html:form action="/checkCustomer">
>                <bean:message key="prompt.emailaddress"/>
>              <html:text property="emailAddress" />
>              <br>
>              Enter your password:
>              <html:password property="password" redisplay="false"/>
>                <br>
> 
> <span class="left"><html:link href="chooseProductOptions.do"><img
> src="img/back.gif"></html:link></span>
> <span class="right"><html:submit value="next"/></span>
> 
> Any help is greatly appreciated.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to