Hi,

this is due to the following definition in the web.xml file:

<!-- Ajax Struts Servlet -->
    <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
            <param-name>config</param-name>
            <param-value>
                /WEB-INF/etc/struts/struts-config.xml,/WEB-INF/etc/struts/struts-config-corporateportal.xml</param-value>
        </init-param>
        <!-- commented out because we did provide any resource file yet -->
        <init-param>
            <param-name>application</param-name>
            <param-value>ApplicationResources</param-value>
        </init-param>
    </servlet>

 <!-- Ajax Struts Servlet Mapping -->
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>/ajaxaction/*</url-pattern>
    </servlet-mapping>

The struts tag will thus automatically generate an url containing ajaxaction in it. You can put what you want regarding the
url-pattern, but If you change it, you will have to change all the mappings for the AjaxActions defined in struts-config.xml.

Best regards.

X. Lawrence


At 17:31 29.03.2007, you wrote:
Hi,
 
I have a form embedded into a normal template (double.jsp) using -
 
<html-el:form action="" focus="userName">
.
<some html />
.
</html-el:form>
 
When I submit the form, I find that the action gets a /ajaxaction/ prefixed to it and the new action becomes /jahia/ajaxaction/loginAction?method=login. Could someone please explain why this happens, and what I have to do to avoid it?
 
Thank you,
Sandeep.
 

CONFIDENTIALITY NOTICE: This communication may contain privileged or
other confidential information.
If you have received it in error, please advise the sender by reply email
and immediately delete the message and any attachments without copying or
disclosing the contents.


------------------=[ xlawrence at jahia dot com ]=------------------
Computer Science Engineer EPF, Master's Degree


Jahia: A collaborative source CMS and Portal Server
www.jahia.org     Product web site
www.jahia.net     Community web site
www.jahia.com     Commercial services company

Jahia Solutions Group
Route des Jeunes 9
CH-1227 Les Acacias
Switzerland
Tel:    +41 (22) 361 34 24
Fax:    +41 (22) 361 36 40

Reply via email to