File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Path for Tile Does Not Start With a Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Path for Tile Does Not Start With a "/" Character" Watch "Path for Tile Does Not Start With a "/" Character" New topic
Author

Path for Tile Does Not Start With a "/" Character

JiaPei Jen
Ranch Hand

Joined: Nov 19, 2000
Posts: 1309
I think I have made all kinds of mistakes in the Struts history.

I was working on VALIDATION. However, when I leave all text fields blank and submit the form for testing, I got HTTP Status 500 -

java.lang.IllegalArgumentException: Path .frame.content does not start with a "/" character

I think the problem is in my struts-config.xml file. I do not see that I put a "/" in front of any tile expressions; in particular, .frame.content

(My struts-config.xml can be found below)

In the browser window, I got:

java.lang.IllegalArgumentException: Path .frame.content does not start with a "/" character
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:274)
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:1012)
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(TilesRequestProcessor.java:345)
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:980)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:255)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

My Struts-config.xml file:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Path for Tile Does Not Start With a "/" Character
 
Similar Threads
<global-forwards> problem in struts-config.xml
Servlet action is currently unavailable
Cannot Retrieve Definition for Form Bean Null
Presentation of the Validation Warnings
What Are the Causes for Validation Not Doing Anything?