This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Validator

 
Rajkumar Singh
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

I am new to Struts and have a question on Validator framework. I have a very unique and a dumb requirement where I want to store a username and password in an XML file. Whenever a user logs in into the system, the username and the password entered by him/her will be checked against the username and password stored in the XML file.

For this I want to use the Struts Validation framework. The question is how can I use it to meet my dumb requirement?

Thanks
Raj
 
Sachin Dere
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why do you think its a dumb requirement?
 
Sagar Rohankar
Ranch Hand
Posts: 2905
1
Java Spring Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The simple suggestion from me

1. Parse the XML,
2. Find out the entered user name and password in each XML tag ..
3. If present , logged in else throw error massage ..

For this I want to use the Struts Validation framework.

How do you want this ??
 
Rajkumar Singh
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sachin Dere:
why do you think its a dumb requirement?


Because we are storing the authentication details in the XML file instead of database.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic