File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Tile, Link, and Path Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tile, Link, and Path Problem" Watch "Tile, Link, and Path Problem" New topic

Tile, Link, and Path Problem

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I am using tiles. I have three piece of tiles: upperbar, sidelinks, and lowerbar. All three tiles are displayed with contents shown in the center
(toward right hand side) of the web page.

Now, I click on one of the links provided in the 'sidelinks' tile and I got this error message in the browser:

Http Status 400
Invalid path /ContentMgmt was requested

description The request sent by the client was
syntactically incorrect (Invalid path /ContentMgmt was

The link that I clicked on in the 'sidelinks' tile is coded this way:

In my tiles-def.xml, I have:

And I double checked the spelling and the type of extension of the content.jsp file. The file "is" in the C:\jakarta-tomcat-5.0.27\webapps\DHSInfo\frame\content directory.

Why the path is wrong?
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

Try this:

<action path="/ContentMgmt" type="org.apache.struts.actions.ForwardAction">
<forward name="success" path=".frame.Content"></forward>

A good workman is known by his tools.
I agree. Here's the link:
subject: Tile, Link, and Path Problem
It's not a secret anymore!