This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one 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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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.
 
Consider Paul's rocket mass heater.
 
subject: How to restrict URL in structs validations?