Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Struts not detecting tiles based forwards

843838Jan 12 2007 — edited Aug 27 2007
Hi,

I am new to struts and tiles; would appreciate your help in solving this issue:

I am using struts along with the tiles plugin in my application. When i try to access a URL (http://localhost:8080/mysite/index.do) mapped to a tiles forward, i am getting the following exception.
javax.servlet.ServletException: Path forum.index does not start with a "/" character
	org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
	org.apache.struts.action.ActionServlet.process(ActionServlet.java:1858)
	org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:446)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
The following is an extract from my struts-config.xml
    <action-mappings>
        <action path="/index"      forward="forum.index" />
    </action-mappings>

    <plug-in className="org.apache.struts.tiles.TilesPlugin" >
        <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />      
        <set-property property="moduleAware" value="true" />
    </plug-in>
And the forward 'forum.index' is defined in my tiles-defs.xml as
    <definition name="forum.index" extends="forum.default">
        <put name="content"  value="/WEB-INF/tiles/pages/index.jsp" />
        <put name="pagename" value="Home" />
    </definition>
The definition 'forum.default' is not shown, but is present in the tiles-defs.xml...

Could you please tell me what i am doing wrong?

This technique was working when i was using NetBeans 5.5.. But now after porting the application to Eclipse + WTP + Tomcat 5.5, i am getting this error.

Your help is appreciated.

Thanks and regards,
Rakesh TA
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2007
Added on Jan 12 2007
9 comments
269 views