Note that there are some explanatory texts on larger screens.

plurals
  1. POAction not forwaded to tiles-definition from forward path in Action
    primarykey
    data
    text
    <p>My struts-config.xml has a few forward actions that point to tiles definitions. But it takes path as it is given &amp; doesn't directed to the tiles-definition.xml &amp; showing path does not start with a <code>"/"</code> character </p> <p>My struts-config.xml is : </p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"&gt; &lt;struts-config&gt; &lt;data-sources /&gt; &lt;form-beans &gt; &lt;form-bean name="feelSafeForm" type="com.feelsafe.struts.form.FeelSafeForm" /&gt; &lt;/form-beans&gt; &lt;global-exceptions /&gt; &lt;global-forwards &gt; &lt;forward name="login1" path="/feelSafe.do?do=login" /&gt; &lt;forward name="admin" path="/feelSafe.do?do=admin1" /&gt; &lt;/global-forwards&gt; &lt;action-mappings &gt; &lt;action attribute="feelSafeForm" input="/index.jsp" name="feelSafeForm" parameter="do" path="/feelSafe" scope="request" type="com.feelsafe1.struts.action.FeelSafeAction"&gt; &lt;forward name="adminmainpage" path="feelsafe.adminmainpage" /&gt; &lt;forward name="login" path="feelsafe.login" /&gt; &lt;/action&gt; &lt;/action-mappings&gt; &lt;message-resources parameter="com.feelsafe.struts.ApplicationResources" /&gt; &lt;plug-in className="org.apache.struts.tiles.TilesPlugin"&gt; &lt;set-property property="definitions-parser-validate" value="true" /&gt; &lt;set-property property="moduleAware" value="true" /&gt; &lt;set-property property="definitions-config" value="/WEB-INF/tiles-definition.xml" /&gt; &lt;/plug-in&gt; &lt;/struts-config&gt; </code></pre> <p>tiles-definition.xml is :</p> <pre><code>&lt;!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 1.1//EN" "http://struts.apache.org/dtds/tiles-config_1_1.dtd"&gt; &lt;component-definitions&gt; &lt;definition name="feelsafe.common" path="/feelsafeLayout/layout.jsp"&gt; &lt;put name="title" type="string" value="FeelSafe Hospital"/&gt; &lt;put name="header1" value="/feelsafeLayout/header.jsp"/&gt; &lt;put name="footer1" value="/feelsafeLayout/footer.jsp"/&gt; &lt;/definition&gt; &lt;definition name="feelsafe.login" extends="feelsafe.common"&gt; &lt;put name="body1" value="/feelsafeJspFiles/login.jsp"/&gt; &lt;/definition&gt; &lt;definition name="feelsafe.admin" extends="feelsafe.common"&gt; &lt;put name="body1" value="/feelsafeAdminJspFiles/adminlogin.jsp"/&gt; &lt;/definition&gt; &lt;/component-definitions&gt; </code></pre> <p>When login is called, control goes to forward tag &amp; gives <code>500 Error</code> saying :</p> <blockquote> <p>org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Exception forwarding for name login1: javax.servlet.ServletException: java.lang.IllegalArgumentException: Path feelsafe.login does not start with a "/" character</p> </blockquote>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload