Let's assume the initial page is welcome.jsp and url-mapping element of action
servlet is set to *.do
First step
- configure the <welcome-file> element in web.xml to welcome.do
Next
- create action element in struts-config as below
<action path="/welcome" name="welcomeForm" type="test.TestAction">
<forward name="welcome" path="/welcome.jsp"/>
</action>
and the form element looks like below
<form-bean name="welcomeForm" type="test.WelcomeForm"/>
Now when you hit the web-app from the url, action "test.TestAction"'s execute() method will be invoked where you can populate the action form and in the welcome.jsp file you can iterate through the form collection and populate the fields.