HI,

Iam stuck in one problem where iam trying to validate user email ID on my
signup form,When user enter Email id in <s:textfield> and press tab then i
have used Ajax to validate wether this email ID exist in database or
not,Following is portion of my code


<td  align="left"><s:textfield  name="userName" cssClass="tbox"
></s:textfield>

<td  align="left"><s:textfield id="tbox1" name="email" cssClass="tbox"
onblur="javascript:show_result();return false;"></s:textfield>

<s:url id="urlid" action="checkUser.action">                                    
  
<s:param name="address" value="%{#email}"/>
</s:url>
                  
 <s:div id="url1"  theme="ajax" listenTopics="show_result" href="%{urlid}">
 <!--Diiv where result will be displayed-->  
</s:div>


Now the line <s:param name="address" value="%{#email}"/> is not sending
value of email textfield,it send blank in controller,How can i assign that
email textfield value to <s:param> so that i can pass it to action class.
all my code is enclosed under <s:form tag>.
i did try many other ways in <s:pram> but none worked,iam using
struts2-core2.0.11


Please help

-- 
View this message in context: 
http://www.nabble.com/How-to-put-%3Cs%3Atestfield%3E-value-in-%3Cs%3Aparam%3E-tp20831621p20831621.html
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to