This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to restrict URL in structs validations?

 
Sudarshan Reddy
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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..?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic