How to to get Struts Action at very first loading
843841Mar 10 2004 — edited Mar 10 2004Hi, 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.