aspose file tools*
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Tile, Link, and Path Problem" Watch "Tile, Link, and Path Problem" New topic
Author

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
requested).


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
Sheriff

Joined: Feb 05, 2003
Posts: 4727

Try this:

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


A good workman is known by his tools.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tile, Link, and Path Problem
 
Similar Threads
TILES and Logic
Instantiation Exceptions
Path for Tile Does Not Start With a "/" Character
Cannot Retrieve Definition for Form Bean Null
Tiles. Decorator. What is the right way?