Hi All
I want to validate the format of file path using struts.That is if the user gives c/:Test.txt instead of c:\Test.txt.PLz Help.
Thank you
grajeshmsc
0
Newbie Poster
Recommended Answers
Jump to PostThere's nothing wrong with either path...
And what about other operating systems?
Jump to Postwhy would you allow the user to enter the path anyway?(not that it's a bad thing) Why can't you use a file browser?
Jump to PostYou should always allow manual entry as well.
It works a LOT faster if the user knows what he wants to enter.But I'd not validate paths at all. The client is solely responsible for that, all the server should do is gracefully handle the situation in which the …
All 12 Replies
techy
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
jwenting
1,889
duckman
Team Colleague
server_crash
64
Postaholic
server_crash
64
Postaholic
grajeshmsc
0
Newbie Poster
jwenting
1,889
duckman
Team Colleague
grajeshmsc
0
Newbie Poster
mmiikkee12
1
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.