how to write client-side validation?
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   venkatesan_sakkanayan
Posted On:   Monday, September 13, 2004 04:41 AM

i am developing banking project using struts framework.
In that i want, how to write client-side validation for jsp page? if any one know plz mail me.

regards,
venkat.s

Re: how to write client-side validation?

Posted By:   Atul_Kumar  
Posted On:   Wednesday, October 6, 2004 10:32 AM

check this out...i'm tryin myself...



http://struts.apache.org/userGuide/struts-html.html#javascript



javascript - Render JavaScript validation based on the validation rules loaded by the ValidatorPlugIn.



example code (notice onsubmit()in html:form)-





<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>



<bean:message key="title.login" />







:



:













regards..
atul

Re: how to write client-side validation?

Posted By:   Steven_Martin  
Posted On:   Tuesday, September 14, 2004 07:31 AM

Struts provides validators you can use which I believe are server side.

Re: how to write client-side validation?

Posted By:   Srikanth_B  
Posted On:   Monday, September 13, 2004 05:52 AM

U can't perform direct client side validations in JSP u need java script is what I believe.
About | Sitemap | Contact