Jahia Dev Forum > How to add new servlet/struts...

0 (0 Good)
0 (0 Bad)

How to add new servlet/struts action to Jahia 6.1 ?

by  bdumas »  2011/09/17 07:35

Hello,

I need to add a new servlet or struts action to Jahia 6.1 for a custom ajax request. I've created a class extending the Jahia AjaxAction class, declared it in a new struts-config file (struts-config-custom.xml) and declared this new file in the web.xml (with the old struts-config.xml file). But when I try to call my action in Jahia, all I get is a "request not available" message in the logs.

Is this the right way to add a struts action class in Jahia ? If yes, where am I wrong ? If not, what is the good way ?

Thanks for your responses.

Regards,
Benjamin

  • How to add new servlet/struts action to Jahia 6.1 ?
    2011/09/17 07:35

    bdumas <p> Hello,</p> <p> I need to add a new servlet or struts action to Jahia 6.1 for a custom ajax request. I&#39;ve created a class extending the Jahia AjaxAction class, declared it in a new struts-config file (struts-config-custom.xml) and declared this new file in the web.xml (with the old struts-config.xml file). But when I try to call my action in Jahia, all I get is a &quot;request not available&quot; message in the logs.</p> <p> Is this the right way to add a struts action class in Jahia ? If yes, where am I wrong ? If not, what is the good way ?</p> <p> Thanks for your responses.</p> <p> Regards,<br /> Benjamin</p>

  • Number of messages  6
    Registration date Sep 17, 2011
    0 (0 Good)
    0 (0 Bad)

    Re: How to add new servlet/struts action to Jahia 6.1 ?

    by  deepti »  2011/11/19 05:36

    Hi Benjamin,

    I am getting the 400 error when I am trying to submit a jahia page to another. If you were able to resolve the form submit issue, can you please help me in that too.

     

    Regards,

    Deepti

  • Re: How to add new servlet/struts action to Jahia 6.1 ?
    2011/11/19 05:36

    deepti <p> Hi Benjamin,</p> <p> I am getting the 400 error when I am trying to submit a jahia page to another. If you were able to resolve the form submit issue, can you please help me in that too.</p> <p> &nbsp;</p> <p> Regards,</p> <p> Deepti</p>

  • Number of messages  12
    Registration date Nov 19, 2011
    Contact
    Share
    Feedback

    Get in touch

    Whether you are a current user or if you are just evaluating Jahia, we are here to help.

    Contact us

    Share this page