struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <>
Subject Re: ActionMapping question
Date Wed, 02 Oct 2002 22:49:14 GMT
On Wed, 2 Oct 2002, Howard Miller wrote:

> Date: Wed, 2 Oct 2002 22:46:35 +0100
> From: Howard Miller <>
> Reply-To: Struts Users Mailing List <>,
> To:
> Subject: ActionMapping question
> Hi,
> Can somebody explain what the "attribute" property of ActionMapping actually
> means. I don't understand it.

Under normal circumstances, the "name" attribute of an <action> element is
used for two purposes:

* To look up the definition of a <form-bean> with the matching name.

* To specify the request or session attribute under which the form bean
  instance will be stored.

The "attribute" attribute lets you change the second of these uses if you
want to (for example, you might use the same form bean definition in
multiple actions, and you want to be able to keep the beans in session
scope without stepping on each other).  Most people will just use the
"name" attribute and be done with it.

> Surely the request/session scope is that given in struts-config.xml,
> under what circumstances will it differ?
> Howard Miller


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message