Hello,

I would like to use <bean:define> to overwrite a previously defined bean.
Example:

<bean:define id="mybean" value="foo"/>
<bean:write name="mybean"/>
<bean:define id="mybean" value="bar"/>
<bean:write name="mybean"/>

Unfortunately, this is not possible, because the Servlet code would contain

String mybean = null;
mybean = "foo";

...

String mybean = null; // <= Problem!
mybean = "bar";

, which defines the variable "mybean" in the same scope twice.
Is it possible to work around that problem? I mean to redefine the value of
a bean in the same scope?

Thank you,

Mo.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to