its created automatically and passed to your action.

There should be a big hubbub in the archives on this topic.  I know we 
talked about it alot a few weeks ago...




-----Original Message-----
From: ray.offiah [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 11:28 AM
To: struts-user
Subject: Re: Newbie question on displaying lists


Thanks ... I think option 1 is my best bet.

But in the struts-config, how do I define the corresponding ActionForm; 
since I won't be submitting any information, do I really need to define 
one 
for this page?

At 09:32 09/08/2002 -0500, you wrote:

>Couple of ways I have handled this...
>
>1) Don't go to a page directly (*.jsp), go to an Action (*.do) first to
>prep the form and put it in whatever scope you have it configured for
>(request, session, etc).  Some people don't care for these "preparing"
>actions, though.  Like any design you have to balance the pros and 
cons.
>
>2) The form could directly call your business layer to get the data.  I
>don't really like this, but have done it for short, static lists 
before.
>
>There are probably other ways, I'm sure others have used different 
methods.
>
>Tim
>
>
>
>
>
> 
>
>                     Ray 
>
>                     <ray_offiah@ya 
>
>                     hoo.co.uk> 
>
> 
>
>                     08/09/2002 
>
>                     09:09 AM       To: 
> [EMAIL PROTECTED] 
>
>                     Please respond 
> cc: 
>
>                     to 
> "Struts 
>
>                     Users 
> Mailing 
>
>                     List" 
>
>                                           Subject:     Newbie question 
on 
> displaying lists
> 
>
>
>
>
>Caterpillar: Confidential Green          Retain Until: 09/08/2002
>                                          Retention Category:  G90 -
>                                          Information and Reports
>
>
>
>
>Hello there .... :-)
>
>I'm playing around with struts at the moment (very impressive work), 
but I
>seem to have got myself into a little trouble.
>
>I'm writing a web application, that lists the contents of a database 
table
>as soon as you hit the page.
>
>Now so far, I've been working on just submitting forms, which seems to 
be
>Ok.
>
>But what is the approach, if I have to retrieve information and display 
it
>*before* anything gets submitted?
>
>Do I build my display page as a form; how do I populate it before
>submission?
>
>If someone could point me in the right direction, that would be great.
>
>Thanks in advance....:-)
>
>Ray
>
>
>__________________________________________________
>Do You Yahoo!?
>HotJobs - Search Thousands of New Jobs
>http://www.hotjobs.com
>
>--
>To unsubscribe, e-mail:   <
>mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: <
>mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>--
>To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: 
<mailto:[EMAIL PROTECTED]>



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to