The best place to do this is, as you suspected, in an Action before the 
form is displayed. Your user should be coming through an action first in 
any case, to make the request for that view page.

If you are bypassing actions and having the user go directly to a JSP, then 
you are really breaking the MVC model by bypassing the controller.

--
Martin Cooper


At 07:19 AM 8/3/01, Rishi Bhardwaj wrote:
>  HI,
>
>   i want to populate  list box ( using html:select and options tag in
>struts) on the first page itself..
>   where should i write my methods for calling database related issues..
>
>  if the answer is that i should write it in action bean then a question
>arises that action is only called after the form is submitted...
>  if anyone has a code for doing this please mail it
>
>   thanks
>  rishi


Reply via email to