Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Definitions Problem

Status
Not open for further replies.

keinloffel

Programmer
Mar 24, 2003
11
US
Here's a basic page, logon.jsp

------------------------------

<%@ taglib uri=&quot;/tags/struts-html&quot; prefix=&quot;html&quot;%>
<html:html>
<body>
<html:link action=&quot;/link1&quot;>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=&quot;indexdef&quot; path=&quot;/WEB-INF/templates/layout.jsp&quot;>
<put name=&quot;header&quot; value=&quot;/WEB-INF/templates/header.jsp&quot;/> <put name=&quot;topnav&quot; value=&quot;/WEB-INF/templates/topnav.jsp&quot;/> <put name=&quot;leftnav&quot; value=&quot;/WEB-INF/templates/leftnav.jsp&quot;/> <put name=&quot;body&quot; value=&quot;/WEB-INF/jsp/index.jsp&quot;/>
<put name=&quot;bottomnav&quot; value=&quot;/WEB-INF/templates/bottomnav.jsp&quot;/>
</definition>

<definition name=&quot;link1def&quot; extends=&quot;indexdef&quot;>
<put name=&quot;body&quot; value=&quot;/WEB-INF/jsp/link1.jsp&quot;/> </definition>
--------------------------

For the link1 link, I use the following action

<action-mappings> <action path=&quot;/link1&quot; type=&quot;hansen.playground.DoFirst&quot;>
<forward name=&quot;success&quot; path=&quot;/link1def&quot;/>
</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 &quot;/&quot; character

-------- Any ideas anyone?
 
Hi,

In the action mapping action attribute replace
<forward name=&quot;success&quot; path=&quot;/Link1def&quot;/>
with
<forward name=&quot;success&quot; path=&quot;Link1def&quot;/>

Remove the &quot;/&quot; as the Path of the File is already defined in the definition.

Cheers,
Venu


 
Hi,

Sorry conti... you need to even change your link to
<html:link action=&quot;/Link1.do&quot;>1</html:link>

If it is in form then like this <html:form action=&quot;Link1&quot;></html:form>

Ceers,
Venu


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top