Re: doSubmitAndLock

Jacob Kjome <[email protected]> Fri, 09 Jan 2004 00:07:37 -0600
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
When in doubt, try brute force.  Add all these to your web.xml...

     <!-- If you are going to use BAction components on HTML Forms,      -->
     <!-- you must specify the FormGateway                               -->
     <servlet>
         <servlet-name>FormGateway</servlet-name>
         <servlet-class>org.enhydra.barracuda.core.comp.helper.FormGateway</servlet-class>
     </servlet>

     <!-- If you want to support disabling the back button on HTML Forms -->
     <!-- you must specify the ParamGateway                              -->
     <servlet>
         <servlet-name>ParamGateway</servlet-name>
         <servlet-class>org.enhydra.barracuda.core.helper.servlet.ParamGateway</servlet-class>
     </servlet>

     <!-- Barracuda can load static resources (like images and scripts)  -->
     <!-- from a jar file in the classpath by using the ResourceGateway. -->
     <servlet>
         <servlet-name>ResourceGateway</servlet-name>
         <servlet-class>org.enhydra.barracuda.core.helper.servlet.ResourceGateway</servlet-class>
     </servlet>

     <!-- This is needed for the FormGateway                             -->
     <servlet-mapping>
         <servlet-name>FormGateway</servlet-name>
         <url-pattern>*.form_forward</url-pattern>
     </servlet-mapping>

     <!-- This is needed for the ParamGateway                            -->
     <servlet-mapping>
         <servlet-name>ParamGateway</servlet-name>
         <url-pattern>*.param_map</url-pattern>
     </servlet-mapping>

     <!-- This is needed for the ResourceGateway                         -->
     <servlet-mapping>
         <servlet-name>ResourceGateway</servlet-name>
         <url-pattern>/xlib/*</url-pattern>
     </servlet-mapping>


Things should work.

Jake

At 12:27 PM 1/8/2004 -0600, you wrote:

>Just upgraded to Barracuda 1.2.5 and forms in my app are not working the 
>doSubmitAndLock Javascript function appears to be new (from 1.1.1) and 
>based on the 2 entries I have found in the archives, the resolution is to 
>ensure the entries below are in web.xml.
>
>
>
>Since I already have those, am I missing something ?
>
>
>
>Thanks
>Paul
>
>
>
>
>
><servlet>
>
>         <servlet-name>ResourceGateway</servlet-name>
>
> 
><servlet-class>org.enhydra.barracuda.core.helper.servlet.ResourceGateway</servlet-class>
>
></servlet>
>
>
>
><servlet-mapping>
>
>         <servlet-name>ResourceGateway</servlet-name>
>
>         <url-pattern>/xlib/*</url-pattern>
>
></servlet-mapping>