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
Nikhil Ahuja
Masters of Science in Computer Engineering
-- Illinois Institute Of Technology --
Chicago,Illinois- 60616
USA
Tel# (312)-305-1302
----- Original Message -----
From: Maya menon <maya_java@(protected)>
Date: Monday, March 8, 2004 8:38 am
Subject: Re: Design Help
> Narayan,Thanks for your response.
> I was reading J2EE core patterns and saw Business
> Delegates/Service Locator.
>
> In my previous project I used Model Manager class.
>
> Any opinions ?
>
> Narayan Vishwakarma <nvishwakarma@(protected):
> You coud use several of the data access frameworks to compelte you
> application flow from struts to backend and back to struts from
> databaseend.
>
> Let me know if you need any further pattern details
>
>
>
>
> >From: Maya menon
> >Reply-To: An interest list for Sun Java Center J2EE Pattern Catalog
> >
> >To: J2EEPATTERNS-INTEREST@(protected)
> >Subject: Design Help
> >Date: Fri, 5 Mar 2004 11:15:20 -0800
> >MIME-Version: 1.0
> >Received: from mc12-f2.hotmail.com ([65.54.167.138]) by mc12-
> s7.hotmail.com>with Microsoft SMTPSVC(5.0.2195.6824); Fri, 5 Mar
> 2004 11:17:38 -0800
> >Received: from swjscmail2.java.sun.com ([192.18.99.108]) by
> >mc12-f2.hotmail.com with Microsoft SMTPSVC(5.0.2195.6824); Fri, 5
> Mar 2004
> >11:17:37 -0800
> >Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by
> >swjscmail2.java.sun.com (Postfix) with ESMTPid DE84C22A89; Fri, 5
> Mar 2004
> >12:09:43 -0700 (MST)
> >Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP
> release 1.8e)
> >with spool id 22651354 for J2EEPATTERNS-INTEREST@(protected);
> >Fri, 5 Mar 2004 12:05:40 -0700
> >Received: from web80802.mail.yahoo.com (web80802.mail.yahoo.com
> >[66.163.170.97]) by swjscmail1.java.sun.com (Postfix) with SMTP id
> >87EB94821 for ; Fri, 5 Mar 2004
> > 12:05:40 -0700 (MST)
> >Received: from [32.97.110.142] by web80802.mail.yahoo.com via
> HTTP; Fri, 05
> >Mar 2004 11:15:20 PST
> >X-Message-Info: g+YnDTwJTP5pUhXbmRVw1nWByQYHqLbKXs4CyvZCvjE=
> >X-Original-To: J2EEPATTERNS-INTEREST@(protected)
> >Delivered-To: J2EEPATTERNS-INTEREST@(protected)
> >Message-ID: <20040305191520.26911.qmail@(protected)>
> >In-Reply-To:
> >
> >Precedence: list
> >Return-Path: owner-j2eepatterns-interest@(protected)
> >X-OriginalArrivalTime: 05 Mar 2004 19:17:37.0902 (UTC)
> >FILETIME=[8584C0E0:01C402E6]
> >
> >
> >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.html
> >Unsubscribing: email "signoff J2EEPATTERNS-INTEREST" to
> >listserv@(protected)
>
> _________________________________________________________________
> What's your house worth? Click here to find out:
> http://www.ninemsn.realestate.com.au
>
> ====================================================================
> 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)
>
> ---------------------------------
> 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)