In My struts2 application i have a struts2 tag checkboxlist something like this
<s:checkboxlist name="yourSelect" label="Are You Inteterested In"
list="communityList" value="defaultSelect" />
i added the list elements in my action class constuctor
view plaincopy to clipboardprint?
public CustomerAction()
{
communityList = new ArrayList<String>();
communityList.add("WebSpere Consultuing");
communityList.add("Portal Consulting");
communityList.add("SOA/BPM Consulting");
communityList.add("Content Management");
}
public CustomerAction() { communityList = new ArrayList(); communityList.add("WebSpere Consultuing"); communityList.add("Portal Consulting"); communityList.add("SOA/BPM Consulting"); communityList.add("Content Management"); }
and i can very well display it on the jsp page ,
But the problem is when i call the jsp page in the web.xml
<welcome-file-list>
<welcome-file>/pages/Customer.jsp</welcome-file>
</welcome-file-list>
list is not populating , when i request the action name from the struts.xml of the Class whose constructor has the list values then the list is populating
how do i call the action name from the web.xml as a welcome-list-file instead of typing the action name at the url .....