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