This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes Registration and validation using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Registration and validation using JSP" Watch "Registration and validation using JSP" New topic
Author

Registration and validation using JSP

Cornelius Alba
Greenhorn

Joined: Jun 07, 2012
Posts: 1
Hi

I don't have any experience with JSP and Servlets, and I have a question: In my project I need to include users registration (after submitting form data is validated, if it's correct, it's written into XML file. If there are errors, approperiate message is displayed, also if username is already taken). And my question is - what is the best way to implement this, I mean the architecture of the application (where should i save the data into XML file, how to return error message to the JSP page that contains a form if the username is already in use etc.).

I would be really, really glad if someone explained me how it should be done properly.

PS. Sory for my English.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60766
    
  65

Please read this article for information on properly structuring web applications.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: Registration and validation using JSP
 
Similar Threads
Creating a web service client
Have a question about history.go(-1)
Validation Question
XML and dynamic data
Text Box Validation