RE: doSubmitAndLock

"Paul Heath" <[email protected]> Fri, 9 Jan 2004 09:20:57 -0600
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <002f01c3d6c4$2e8e5600$ca01a8c0@ntwd>
I already had all that in web.xml.

The only way I can get this to work is to include FormControl.js
directly in my application using <SCRIPT> tags in HTML.

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jacob Kjome
Sent: Friday, January 09, 2004 12:08 AM
To: [email protected]
Subject: Re: [Barracuda] doSubmitAndLock

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</servl
et-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</s
ervlet-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.ResourceGatewa
y</servlet-class>
>
></servlet>
>
>
>
><servlet-mapping>
>
>         <servlet-name>ResourceGateway</servlet-name>
>
>         <url-pattern>/xlib/*</url-pattern>
>
></servlet-mapping>

_______________________________________________
Barracuda mailing list
[email protected]
http://barracudamvc.org/lists/listinfo/barracuda