The default scope for ActionMappings can be set to request in the
web.xml, using a predefined class. 

    <init-param>
      <param-name>mapping</param-name>
     
<param-value>org.apache.struts.action.RequestActionMapping</param-value>
    </init-param>

This is also how you would tell Struts to use some other ActionMapping
subclass.

The ActionServlet supports several configurations. See 

http://jakarta.apache.org/struts/api-1.0/org/apache/struts/action/ActionServlet.html

for more.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel +1 716 737-3463
-- http://www.husted.com/struts/


John Yu wrote:
> 
> I've double checked the doco and the code. You're right, emmanuel.
> I can't remember where I got the wrong impression the default scope is
> 'request'...
> 
> At 02:04 pm 26-10-2001 +0200, you wrote:
> >I'm not sure, I think default scope is session.
> >
> >see this in ActionMapping.java
> >
> >     /**
> >      * The identifier of the scope ("request" or
> >"session") under which the
> >      * form bean associated with this mapping, if any,
> >should be created.
> >      */
> >     protected String scope = "session";
> >
> >
> >  --- John Yu <[EMAIL PROTECTED]> a écrit : > Chiji,
> > >
> > >
> > > Yes, the default scope is request. Btw, the scope is
> > > for the ActionForm
> > > (aka FormBean) assoicated with the Action, not for
> > > the Action itself.
> > >
> > >
> > > At 10:48 am 25-10-2001 +0000, you wrote:
> > >
> > > >I am right to think that the default scope for the
> > > struts action is request?
> > > >
> > > >Thanks
> > > >
> > > >Chiji<?xml:namespace prefix = mailto />
> > >
> > > --
> > > John Yu                       Scioworks Technologies
> > > e: [EMAIL PROTECTED]         w: +(65) 873 5989
> > > w: http://www.scioworks.com  m: +(65) 9782 9610
> > >
> > > Scioworks Camino - "Rapid WebApp Assembly for
> >Struts"
> >
> >___________________________________________________________
> >Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> >Yahoo! Courrier : http://courrier.yahoo.fr
> 
> --
> John Yu                       Scioworks Technologies
> e: [EMAIL PROTECTED]         w: +(65) 873 5989
> w: http://www.scioworks.com   m: +(65) 9782 9610
> 
> Scioworks Camino - "Rapid WebApp Assembly for Struts"

Reply via email to