  | Mailing List | | Home | | Forum Home | | JBoss - Java Application Server | | Tomcat - JSP/Servlet container | | Struts - A MVC web framework | | iText - An open source PDF Java Library | | JDOM - JDOM XML Parser | | J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition | | J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog | | JSP - A mailing list about Java Server Pages specification and reference | | Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology | |
Struts & Hibernate
|
|
|
  | | | Design Help | Design Help 2004-03-05 - By Nikhil Ahuja
Back U can use Helper Class which could be a Bean to return the Values(details) about the Number.And then copy the Helper properties to the associated form. If you dont find the Number in the database return an empty form bean to be populated.
With this you can have a DAO class doing all the Database related operations. Then if you like you can have values in session.Remember to clear you session when you are done.
-nikhil
-- -- Original Message -- -- From: Maya menon <maya_java@(protected)> Date: Friday, March 5, 2004 1:15 pm Subject: Design Help
> > All, > > > > I am in a project and need help in designing pieces of the > application. > First of all, I am new to design, so please help me go in the > correct direction. I have a requirement doc with me, which I an > analysing and seperating into modules right now. I need help in > selecting the correct patterns for designing the piece. > > Mine is a J2EE based web app. The first req is based on a number > that the user enters in the first jsp page, the number shd be > checked against the database and if its there, the second jsp > should display all the details about that number. If its not, it > shd go to the second page and prompt user to enter all > details[then it becomes a database insert]. I am planning to use > Struts in the front end, but what all shd I use for other pieces > to complete the flow ? > > Any help appreciated. > > > > Thanks > > > > > -- ---- ---- ---- ---- ---- ----- > Do you Yahoo!? > New Yahoo! Photos - easier uploading and sharing > > ==================================================================== > Companion Site: http://www.corej2eepatterns.com > J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns > List Archive: http://archives.java.sun.com/archives/j2eepatterns- > interest.htmlUnsubscribing: email "signoff J2EEPATTERNS-INTEREST" > to listserv@(protected) >
==================================================================== Companion Site: http://www.corej2eepatterns.com J2EE BluePrints: http://java.sun.com/blueprints/corej2eepatterns List Archive: http://archives.java.sun.com/archives/j2eepatterns-interest.html Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to listserv@(protected)
|
|
 |