Gerry Scheetz wrote:
>
> I am new to JSP and am having a problem figuring out how I would organize
> things (files, beans, objects).
>
> A good majority of this web applications I write fall into the search-list-detail
> model, where you have a search form, that returns a list from the database that
> matches the search criteria.  From here the user can click on any of the list
> items and to go to a detail screen.
>
> We are currently using a Oracle PL\SQL Web cartridge (PL\SQL stored procedures
> that take HTML form elements as parameters and outputs HTML).  One big advantage
> of using JSP is separating the HTML from the business logic.  So I am trying to
> have as little Java in my JSP pages and as little HTML in my JavaBean code as 
>possible.
> I understand how to do this in the search/query page and I understand how to do
> this in the detail page, but I am a little unfamiliar how to code the list page.
>
> So what I am asking is if any one has any examples of how to do this?  Or even
> better a site that discusses this and JSP projects that access data on a database.

<plug>
  My book, JavaServer Pages (O'Reilly) describes how to access databases
  using a set of custom actions. The result of a database search is available
  as a Vector or Row beans.

  All examples and source code is available online at <http://TheJSPBook.com/>.
  Look, for instance, at the Employee Search example (Chapter 9). The search
  result page is a typical "list" page, linked to another page that deletes
  information about one item, but it could just as well have been a page that
  displayed detailed info; the principle is the same. Another examples that's
  similar to what you ask for is the Shopping Cart example (Chapter 8), with a
  list page linked to a details page (all data is in memory in this example
though,
  no real database used).
</plug>

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to