> 1. Dispatch schedule entry screen
When your input form is submitted, Struts will populate a form bean with the
values from that form, and pass the form bean to your Action class's
perform() method. Your perform method would then prepare and issue the
database query (or have some other business logic component do that on its
behalf), and then create beans to represent the results you want to display.
The perform() method would then forward to the appropriate JSP page to
display the results. The Struts tags on the JSP page will extract the values
from the beans and create the HTML to render them. You probably won't need
custom tags, but it really depends on your particular situation.
> 2. Catalog display
You'll most likely want to use the Struts <logic:iterate> tag to iterate
over a collection that represents the items returned from your query. For
paging, some people have had success using the Pager tag library from:
http://jsptags.com/tags/navigation/pager/
Unfortunately, we needed something quite a bit more complex, so we ended up
writing a set of custom tags for what we needed. Again, it really depends on
your particular situation.
Hope this helps.
--
Martin Cooper
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 20, 2001 10:13 PM
Subject: JSP design
> Hi
>
> I am a new-comer in the struts area and trying to evaluate the framework
to
> use for our new B2B project.
>
> I have been going thru the examples and documentation where capturing the
> request and further delegation is explained. I have two scenarios in the
> project where I need your inputs on how to go about designing using
struts:
>
> 1. Dispatch schedule entry screen
> ---------------------------------------
> Here I have to pick-up the schedule from the database and present it to
the
> user and allow him to modify and submit the form. Now I am not clear how
do
> I use struts to pick-up the schedule from the database and display it on
> the entry form.
> Do I have to develop my own JSP tag for this??
>
> 2. Catalog display
> --------------------
> Here again I have pick up the items from the database and show to the
> user. Also the catalog needs to have paging mechanism and the user can
> select multiple items and submit the page. Anybody has done similar design
> using struts??
>
>
> Thanks & Best Regards.....Biju Isac
>
>
>
>