Either approach, although 99% of the time I do a variation on #1 myself.
Still, there are times you might more appropriately do something where no
servlet intervention comes into play.  For example, display a page with
selection lists that are derived from a database.  The JSP page can handle
the data call and retrieval and then display the results - without having to
forward such info to another page.

Dan

> ----------
> From:         Mehul Shah[SMTP:[EMAIL PROTECTED]]
> Reply To:     Mehul Shah
> Sent:         Tuesday, October 19, 1999 1:59 PM
> To:   [EMAIL PROTECTED]
> Subject:      Databse Search
>
> Hi,
>
> I want to provide database search facility and i am trying to find out the
> best possible model for that. Please share your thoughts.
>
> what i thought of doing
> 1:) HTML form - calls servlet - servlet processes the form request data -
> queries database - stores the result set in a session object - calls .jsp
> page - .jsp page formats the result using session object data stored by
> the
> servlet - say 10 rows per page with previous and next tags - On next other
> set of rows from the session object is formated and presented to the
> client
>
> 2:) HTML Form - calls .jsp page - .jsp page uses a bean to process the
> request data - to connect the database - to query the database -
> bean stores the result in session object - and then it is forwarded to
> another .jsp page - which uses the session stored information to format
> and
> present the data.
>
>
> Thanks
> Mehul
>
> ______________________________________________________
> Get Your Private, Free Email at http://www.hotmail.com
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to