Hi,
Anybody can help in the following problem?
I am using tiles framework.
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<tiles:insert page="/tiles/template.jsp" flush="true">
<tiles
ut name="title" type="string" value="Welcome" />
<tiles
ut name="header" value="top.jsp" />
<tiles
ut name="menu" value="left.jsp" />
<tiles
ut name="body" value="capacity.jsp" />
<tiles
ut name="bottom" value="bottom.jsp" />
</tiles:insert>
I have single
JSP page to display i.e capacity.jsp. Directely it should come when I invoke URl like
http://localhost:8080/capacity. Now, here problem is, I can't make it as welcome page in web.xml. Because in that, data are coming from Action class. So, first Action class needs to be invoked and then data can be populated in this capacity.jsp.
In web.xml, I tried to invoke /capacity.do as welcome page. But it's not working. It's showing directory structure of capacity folder.
Instead of this, can I use,
<tiles
ut name="body" value="capacity.do" />
in the above tiles structure?
Please help me on this.
Dhara