Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to to get Struts Action at very first loading

843841Mar 10 2004 — edited Mar 10 2004
Hi, All;

I was working on Jsp with Struts framework, I do not know how to get the Struts action to run during the very first loading if it is no submit buttons.

When first load of page, I'd like to retrieve data from Action class (or other class) with request, then drop it to request attributes or create a bean.

Because, normally Action class will be invoked in submit on page form which predefined in config files, but my page should get data from class with request at very first loading (without button submit), so can anyone know the way to do this kind of things? Is there other thing need to do in strust-config.xml. I really appreciate your ideas or examples.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2004
Added on Mar 10 2004
1 comment
168 views