File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Validations for form created with JSTL's x:transform Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Validations for form created with JSTL Watch "Validations for form created with JSTL New topic
Author

Validations for form created with JSTL's x:transform

Chetan Pagar
Greenhorn

Joined: Feb 12, 2013
Posts: 2
Hi,

I have created a form using xml and xsl files with JSTL's X:Transform tag.
Now I want to implement validations but don't know how to achieve that through xml ..

xml contains part like
<element key="student-id" name="ID" type="text" value="" minlength="" maxlength="" required=""/>

it's creating label textbox for student and now I want to validate it for required and maxlenght ..

please help.

Thanks in advance.
Chetan Pagar.

Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

What do you want those validations to validate? And when exactly do you want that validation to take place?
Chetan Pagar
Greenhorn

Joined: Feb 12, 2013
Posts: 2
Hi Paul,

I want to check them as empty or not and after that other validations like isNumeric/character etc.

I want to do this at time of form submission.. once I click on submit button I need to controller should redirect on view page and show the error message.

Thanks and Regards,
Chetan
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Validations for form created with JSTL's x:transform
 
Similar Threads
Client Side Custom Validation
Very Urgent !!!! Want to show the result in JSTL using "x:transform" tag.
Multiple validators for single input text
EJB Exception design
Using JSP to call xalan parser