All,

I have used tiles and struts1.2.7 without definitions. The test worked. Now I wanted to test struts and tiles with definitions.
This is the tiles-defs.xml file (stored in my web-app web-inf folder)
<tiles-definitions>
<definition name="tests.test" path="/tests/x.jsp"/>
</tiles-definitions>

I also tried
<tiles-definitions>
<definition name="tests.test" path="/x.jsp"/>
</tiles-definitions>

this is my test jsp (index.jsp)

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<html>
<head>
</head>
<body>
<html:form action="/index.do" focus="name">
<html:errors/>
<tiles:insert beanName="tests.test" flush="true"/>
<table>
<tr>
   <td >Name:</td>
   <td><html:text property="name"/></td>
</tr>
</table>
<html:submit>ok</html:submit>
</html:form>
</body>
</html>
I have the following plug in inside struts-config.xml
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml"/>
 </plug-in>
And this is the test file for tiles (x.jsp)
<html>
<head>
</head>
<body>
<hr>
</body>
</html>

When I start this I get the following error :
javax.servlet.jsp.JspException: Error - Tag Insert : No value defined for
bean 'tests.test' with property 'null' in scope 'null'.

Can anyone help me out...


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.12.4/142 - Release Date: 18/10/2005


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to