Note that there are some explanatory texts on larger screens.

plurals
  1. POStruts2 namespace changing in redirecting url
    primarykey
    data
    text
    <p>I have action class which contains application create method, If application save successfully it returns the "success". As you can the my struts.xml I'm redirecting to the the application read only mode. when I am redirecting to the read only action default name space override by the "tenantId"(which is contains in the session)</p> <p>Here is the redirect url</p> <pre><code>http://localhost:8080/scandium/tenantId/applicationView.html!tenantId?applicationId=40 </code></pre> <p>Why is there "!" in url? How does it change default namespace to "tenantId" ?</p> <p>Can anyone help me to over come this problem?</p> <pre><code> &lt;struts&gt; &lt;constant name="struts.devMode" value="true"/&gt; &lt;constant name="struts.action.extension" value="html"/&gt; &lt;package name="default" namespace="/" extends="struts-default"&gt; &lt;action name="createApplication" class="com.action.ApplicationAction" method="create"&gt; type="tiles"&gt;/applicationReadOnlyBody.tiles&lt;/result&gt;--&gt; &lt;result name="success" type="redirectAction"&gt; &lt;param name="actionName"&gt;applicationView.html&lt;/param&gt; &lt;!-- &lt;param name="namespace"&gt;/&lt;/param&gt; --&gt; &lt;param name="applicationId"&gt;${appId}&lt;/param&gt; &lt;/result&gt; &lt;result name="input" type="tiles"&gt;/new-application.tiles&lt;/result&gt; &lt;/action&gt; &lt;action name="applicationView" class="com.action.ApplicationReadOnlyAction" method="viewApplication"&gt; &lt;result name="success" type="tiles"&gt;/applicationReadOnlyBody.tiles&lt;/result&gt; &lt;/action&gt; &lt;/package&gt; &lt;/struts&gt; </code></pre> <p>Thank you in advance,</p> <p>Udeshika</p>
    singulars
    1. This table or related slice is empty.
    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.
    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