Hi All,
I am devloping one small application for learning.
I have tile definition
<definition name=".mainLayout" path="/layouts/mainLayout.jsp">
<put name="title" value="0101 Application"/>
<put name="header" value="/includes/header.jsp"/>
<put name="menu" value=".mainMenu"/>
<put name="footer" value="/includes/footer.jsp"/>
<put name="body" value=".main.body"/>
</definition>
<definition name=".mainMenu" path="/layouts/menuLayout.jsp">
<putList name="list">
<item link="/Employee" value="Employee" classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
<item link="/Welcome" value="Department" classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
<item link="/Welcome" value="Exit" classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
</putList>
</definition>
<definition name=".main.body" path="/includes/mainBody.jsp">
my menuLayout.jsp is
code:
--------------------------------------------------------------------------------
<%@ page contentType="text/html; charset=Cp1252" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tile" %>
<tile:importAttribute />
<logic:iterate id="item" name="list" type="org.apache.struts.tiles.beans.MenuItem" >
<br>
<bean:define id="test" name="item" property="link" />
<html:link action="<%=test %>" >
<bean:write name="item" property="value" />
</html:link> </logic:iterate>
But I get jsp compilation error saying Temp\jsp_servlet\_layouts\__menulayout.java:208: cannot resolve symbolsymbol : variable test location: class jsp_servlet._layouts.__menulayout _html_link0.setAction(test); //[ /layouts/menuLayout.jsp; Line: 17] ^1 error
I am devloping one small application for learning.
I have tile definition
<definition name=".mainLayout" path="/layouts/mainLayout.jsp">
<put name="title" value="0101 Application"/>
<put name="header" value="/includes/header.jsp"/>
<put name="menu" value=".mainMenu"/>
<put name="footer" value="/includes/footer.jsp"/>
<put name="body" value=".main.body"/>
</definition>
<definition name=".mainMenu" path="/layouts/menuLayout.jsp">
<putList name="list">
<item link="/Employee" value="Employee" classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
<item link="/Welcome" value="Department" classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
<item link="/Welcome" value="Exit" classtype="org.apache.struts.tiles.beans.SimpleMenuItem"/>
</putList>
</definition>
<definition name=".main.body" path="/includes/mainBody.jsp">
my menuLayout.jsp is
code:
--------------------------------------------------------------------------------
<%@ page contentType="text/html; charset=Cp1252" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-nested" prefix="nested" %>
<%@ taglib uri="/tags/struts-tiles" prefix="tile" %>
<tile:importAttribute />
<logic:iterate id="item" name="list" type="org.apache.struts.tiles.beans.MenuItem" >
<br>
<bean:define id="test" name="item" property="link" />
<html:link action="<%=test %>" >
<bean:write name="item" property="value" />
</html:link> </logic:iterate>
But I get jsp compilation error saying Temp\jsp_servlet\_layouts\__menulayout.java:208: cannot resolve symbolsymbol : variable test location: class jsp_servlet._layouts.__menulayout _html_link0.setAction(test); //[ /layouts/menuLayout.jsp; Line: 17] ^1 error