wood burning stoves 2.0*
The moose likes Struts and the fly likes Want to Create a user Registeration Form using Struts 1.3 framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Want to Create a user Registeration Form using Struts 1.3 framework" Watch "Want to Create a user Registeration Form using Struts 1.3 framework" New topic
Author

Want to Create a user Registeration Form using Struts 1.3 framework

D. Deepak Sharma
Ranch Hand

Joined: May 12, 2012
Posts: 31
Hi everyone I want to Develop a program where a user can visit a page say Registration page and there are fields in that page as userid, username when user press submit button then he will see Welcome page if credentials are correct if not then a error message is displayed if user is new then he will register himself and then page would have an additional field say confirm password and then will be displayed. I want to use Hibernate 3.6 with derby database to store userid and username.


Now I want to create this program using struts 1.3. For username and userid i want to use a database, now I am not able develop a model class where i can put my code that extracts the userid from the database and match it with userid field from ActionForm. I can enter the values in database but can not retrieve the userid from the database but If i retrieve the value then how I can pass the values from the Action class to model class for verification that is the user exists or not.

Kindly tell me how to Write a model class where I can perform these validation because I want to clean my Action class.


Thanks and Regards
Deepak Sharma
Sandy Chatterjee
Ranch Hand

Joined: Jun 27, 2012
Posts: 55

Already answered your Query in the previous thread

Regards,
Sandy


Take up one idea. Make that one idea your life; dream of it; think of it; live on that idea. Let the brain, the body, muscles, nerves, every part of your body be full of that idea, and just leave every other idea alone. This is the way to success.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Want to Create a user Registeration Form using Struts 1.3 framework
 
Similar Threads
How to pass a session from a class to another class
How to pass a session from an Action class to another class
Variable value attribute in jsp:setProperty
querystring values and GET method
Need help in JSF