Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
URL and path validation together
Hiroyuki Suzuki
Greenhorn
Posts: 24
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello.
I need to validate URL format at the same time path format
URL Format:
http://yahoo.com
path Format:
/pages/entry.jsp
/pages/entry.do
../pages/entry.do
I already made URL validation using the following
<field property="programLinkUrl" depends="url"> <msg name = "url" key="Invalid URL" resource = "false"/> <var> <var-name>nofragments</var-name> <var-value>true</var-value> </var> <var> <var-name>schemes</var-name> <var-value>http,https,ftp,telnet</var-value> </var> </field>
This seems working for URL validation, but it it doesnt work for the path validation. I tried to use "mask" but it also not works?
Do you guys have any idea?
Hiro
Can you hear that? That's my theme music. I don't know where it comes from. Check under this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Problems with Validator Framework
session management problem with iframes
Struts Validation
Validate multiple fields base on a requiredif
Struts Validation not working
More...