This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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.
 
 
subject: How to restrict URL in structs validations?