Filed Validation
Hi Friends,
Currently i'm developing a jsp form, in which all the details
are entered by the user. Such as name, phone, add, email etc..
My question is, Is that possible to validate all fields thru JSP code?
Meant to say in phone field user can enter only numbers, no text.
Please reply me.
thanx
[340 byte] By [
JChefa] at [2007-11-26 23:41:55]

# 1
In JSP, you can just use plain Javascript which validates the fields onclick.Or go ahead with JSF, it provides an extensible validation framework based on javax.faces.validator.
# 2
Hi BaluC,
first of all thanx for your prompt response. I talked with my team leader
about this matter. He told me that, if i use java script in jsp page,my page will become "bulky". And they don't want to take this risk as we are developing a huge application. Second thing i am new to JSF. So i've a question as below:
If I use JSF in JSP page for validation, will it hit my server every time to check for validation? If yes then what is the other alternative?
Please Reply me.
Thanx a lot.
JChefa at 2007-7-11 15:10:18 >
