My guess is it can't find the tile you've specified in the input parameter -
either its wrong or something else is wrong in your tiles configuration

Niall

----- Original Message ----- 
From: "Caroline Jen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 22, 2004 10:54 PM
Subject: Path .frame.content Does Not Start With a "/" Character


> 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 in the attachment)
>
> The Tomcat logs file can also be found in the
> attachment.
>
> 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:10
62)
>
>
org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcesso
r.java:274)
>
>
org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(Requ
estProcessor.java:1012)
>
>
org.apache.struts.tiles.TilesRequestProcessor.internalModuleRelativeForward(
TilesRequestProcessor.java:345)
>
>
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.j
ava: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)
>
>
>
> _______________________________
> Do you Yahoo!?
> Express yourself with Y! Messenger! Free. Download now.
> http://messenger.yahoo.com


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


> <?xml version="1.0" encoding="ISO-8859-1" ?>
>
> <!DOCTYPE struts-config PUBLIC
>           "-//Apache Software Foundation//DTD Struts Configuration
1.1//EN"
>           "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
>
> <struts-config>
>
> <!-- ==================================== Data Source Configuration -->
> <!--
>   <data-sources>
>     <data-source>
>       <set-property property="maxCount"
>                        value="4"/>
>       <set-property property="minCount"
>                        value="2"/>
>       <set-property property="description"
>                        value="Artimus:MySQL Data Source Configuration"/>
>       <set-property property="driverClass"
>                        value="com.mysql.jdbc.Driver"/>
>       <set-property property="url"
>                        value="jdbc:mysql://localhost:3306/artimus"/>
>       <set-property property="autoCommit"
>                        value="true"/>
>       <set-property property="user"
>                        value="javauser"/>
>       <set-property property="password"
>                        value="javadude"/>
>     </data-source>
>   </data-sources>
>
> -->
> <!-- ======================================== Form Bean Definitions -->
>
>   <form-beans>
>
>      <!-- Menu Form Bean -->
>
>      <form-bean
>         name="messageForm"
>         type="org.apache.struts.validator.DynaValidatorForm">
>           <form-property
>             name="msgtype"
>             type="java.lang.String"/>
>           <form-property
>             name="sender"
>             type="java.lang.String"/>
>           <form-property
>             name="receiver"
>             type="java.lang.String"/>
>           <form-property
>             name="messageTopic"
>             type="java.lang.String"/>
>           <form-property
>             name="priority"
>             type="java.lang.String"/>
>           <form-property
>             name="distribution"
>             type="java.lang.String"/>
>           <form-property
>             name="messageBody"
>             type="java.lang.String"/>
>       </form-bean>
>
>      <form-bean
>         name="editTitleForm"
>         type="org.apache.struts.validator.DynaValidatorForm">
>           <form-property
>             name="document"
>             type="java.lang.String"/>
>           <form-property
>             name="title"
>             type="java.lang.String"/>
>      </form-bean>
>
>      <form-bean
>         name="editPageForm"
>         type="org.apache.struts.validator.DynaValidatorForm">
>           <form-property
>             name="document"
>             type="java.lang.String"/>
>           <form-property
>             name="title"
>             type="java.lang.String"/>
>           <form-property
>             name="body"
>             type="java.lang.String"/>
>      </form-bean>
>
>      <form-bean
>         name="addLinkForm"
>         type="org.apache.struts.validator.DynaValidatorForm">
>           <form-property
>             name="document"
>             type="java.lang.String"/>
>           <form-property
>             name="linkname"
>             type="java.lang.String"/>
>           <form-property
>             name="linklocation"
>             type="java.lang.String"/>
>      </form-bean>
>
>      <form-bean
>         name="addFileForm"
>         type="org.apache.struts.validator.DynaValidatorForm">
>           <form-property
>             name="document"
>             type="java.lang.String"/>
>           <form-property
>             name="linkname"
>             type="java.lang.String"/>
>           <form-property
>             name="filename"
>             type="java.lang.String"/>
>      </form-bean>
>
>   </form-beans>
>
>
> <!-- =================================== Global Forward Definitions -->
>
>   <global-forwards>
>
>      <forward
>         name="welcome"
>         path="/do/Home"/>
>
>      <forward
>         name="cancel"
>         path="/do/Home"
>         redirect="true"/>
>
>      <forward
>         name="done"
>         path="/do/Home"/>
>
>      <forward
>         name="exit"
>         redirect="true"
>         path="http://jakarta.apache.org/"/>
>
>      <forward
>         name="failure"
>         path="/do/Home"/>
>
>      <forward
>         name="logon"
>         path="/do/admin/Menu"/>
>
>   </global-forwards>
>
> <!-- =================================== Action Mapping Definitions -->
>
>   <action-mappings>
>
>     <action
>         path="/Home"
>         parameter=".frame.Home"
>         type="org.apache.struts.actions.ForwardAction"/>
>
>     <action
>         path="/admin/Menu"
>         forward="/do/Menu"/>
>
>     <action
>         path="/Register"
>         parameter=".frame.Enrollment"
>         type="org.apache.struts.actions.ForwardAction"/>
>
>     <action
>         path="/ContentMgmt"
>         type="org.dhsinfo.content.SelectPage">
>        <forward
>             name="success"
>             path=".frame.Content"/>
>     </action>
>
>     <action
>         path="/content/UpdateTitle"
>         type="org.dhsinfo.content.doSomething1"
>         name="editTitleForm"
>         scope="request"
>         validate="true"
>         input=".frame.content">
>        <forward
>            name="success"
>            path=".title.Confirmation"/>
>     </action>
>
>     <action
>         path="/content/UpdatePage"
>         type="org.dhsinfo.content.doSomething2"
>         name="editPageForm"
>         scope="request"
>         validate="true"
>         input=".frame.Content">
>         <forward
>             name="success"
>             path=".document.Confirmation"/>
>     </action>
>
>     <action
>         path="/content/AddLinks"
>         type="org.dhsinfo.content.doSomething3"
>         name="addLinkForm"
>         scope="request"
>         validate="true"
>         input=".frame.content">
>       <forward
>            name="success"
>            path=".link.Confirmation"/>
>     </action>
>
>     <action
>         path="/content/AddFiles"
>         type="org.dhsinfo.content.doSomething4"
>         name="addFileForm"
>         scope="request"
>         validate="true"
>         input=".frame.content">
>        <forward
>             name="success"
>             path=".file.Confirmation"/>
>     </action>
>
>     <action
>         path="/MailMessage"
>         parameter=".message.Form"
>         name="messageForm"
>         type="org.apache.struts.actions.ForwardAction"/>
>
>     <action
>         path="/message/SendMessage"
>         type="org.dhsinfo.message.SendMessage"
>         name="messageForm"
>         scope="request"
>         validate="false"
>         input=".message.Form">
>        <forward
>             name="success"
>             path=".message.Confirmation"/>
>     </action>
>
>   </action-mappings>
>
>   <message-resources
>     parameter="resources.application"/>
>
>   <plug-in className="org.apache.struts.tiles.TilesPlugin" >
>     <set-property property="definitions-config"
>                      value="/WEB-INF/tiles-defs.xml"/>
>     <set-property property="definitions-debug" value="1" />
>     <set-property property="definitions-parser-details" value="0" />
>     <set-property property="definitions-parser-validate" value="true" />
>   </plug-in>
>
>     <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
>         <set-property
>             property="pathnames"
>             value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
>     </plug-in>
>
> </struts-config>
>


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


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to