keinloffel
Programmer
Here's a basic page, logon.jsp
------------------------------
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<html:html>
<body>
<html:link action="/link1">1</html:link>
</body> </html:html>
-------------------------------
I'm implementing all pages as definitions in an xml page, definitions.xml Here's the jist of it
<definition name="indexdef" path="/WEB-INF/templates/layout.jsp">
<put name="header" value="/WEB-INF/templates/header.jsp"/> <put name="topnav" value="/WEB-INF/templates/topnav.jsp"/> <put name="leftnav" value="/WEB-INF/templates/leftnav.jsp"/> <put name="body" value="/WEB-INF/jsp/index.jsp"/>
<put name="bottomnav" value="/WEB-INF/templates/bottomnav.jsp"/>
</definition>
<definition name="link1def" extends="indexdef">
<put name="body" value="/WEB-INF/jsp/link1.jsp"/> </definition>
--------------------------
For the link1 link, I use the following action
<action-mappings> <action path="/link1" type="hansen.playground.DoFirst">
<forward name="success" path="/link1def"/>
</action>
----------------
It seems like everything should work, but when i click on the link1 link i get the following error.
java.lang.IllegalArgumentException: Path link1 does not start with a "/" character
-------- Any ideas anyone?
------------------------------
<%@ taglib uri="/tags/struts-html" prefix="html"%>
<html:html>
<body>
<html:link action="/link1">1</html:link>
</body> </html:html>
-------------------------------
I'm implementing all pages as definitions in an xml page, definitions.xml Here's the jist of it
<definition name="indexdef" path="/WEB-INF/templates/layout.jsp">
<put name="header" value="/WEB-INF/templates/header.jsp"/> <put name="topnav" value="/WEB-INF/templates/topnav.jsp"/> <put name="leftnav" value="/WEB-INF/templates/leftnav.jsp"/> <put name="body" value="/WEB-INF/jsp/index.jsp"/>
<put name="bottomnav" value="/WEB-INF/templates/bottomnav.jsp"/>
</definition>
<definition name="link1def" extends="indexdef">
<put name="body" value="/WEB-INF/jsp/link1.jsp"/> </definition>
--------------------------
For the link1 link, I use the following action
<action-mappings> <action path="/link1" type="hansen.playground.DoFirst">
<forward name="success" path="/link1def"/>
</action>
----------------
It seems like everything should work, but when i click on the link1 link i get the following error.
java.lang.IllegalArgumentException: Path link1 does not start with a "/" character
-------- Any ideas anyone?