File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes How to restrict URL in structs validations? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to restrict URL in structs validations?" Watch "How to restrict URL in structs validations?" New topic
Author

How to restrict URL in structs validations?

Sudarshan Reddy
Greenhorn

Joined: Aug 23, 2007
Posts: 20
Hi

can any one tell me how to restrict URL in struts form validation

i want to restrict http/https or script tags in struts validations

any one help me one this..?


With Regards<br /> <br />Sudarshan Reddy
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Which version of Struts?

In either version you'll probably need to either (a) write a custom validator, or (b) do the validation in Java.
 
jQuery in Action, 2nd edition
 
subject: How to restrict URL in structs validations?
 
Similar Threads
How to do Service Level Validations in struts
Server side Struts validation
client side validation through the Struts frame work
Cannot find ActionMappings or ActionFormBeans collection
how many types of validations are available in struts framework