You could activate directly the Action/perform (i.e. your_action.do instead
of your_page.jsp), after that, the perform method will get information from
your beans, put them into your action_form class, which extends from the
class ActionForm of struts, and then forward to the JSP page (your_page.jsp)
hope it helps
Quan
----- Original Message -----
From: Lang�ren, Knut Harald <[EMAIL PROTECTED]>
To: 'Struts-User (E-mail) <[EMAIL PROTECTED]>
Sent: Friday, July 13, 2001 3:53 PM
Subject: ActionErrors
> Hi.
>
> I'm not sure that I've done this the right way, but we'll all have to
learn
> some day.
>
> We're using struts to help us in building a web-klient accessing a db
> through EJB on weblogic6.0.
> The jsp-pages I'm making has a lot of different information, which are
> coming from different enterprise beans. These beans are initiated in the
> Action/perform method. And here is the problem:
> If I generate an error in the validate method, the flow is directed to the
> page in the input attribute in the xml-file. This page is a jsp-page, and
if
> you start a jsp-page directly, the perform method is not executed. The
> perform is only executed if you access the page through the .do. So when
the
> system tries to show the jsp-page, the information from the different
beans
> is not available, due to the perform method not beeing executed.
>
> How should I do this?
> Is it possible to initiate the enterprise beans in some other methods than
> the perform?
>
> Thanks
> -KHL
>