hello, as far as I remeber you are not allowed to use same id in page more than one. Maybe, I am wrong.
Tschau. -----Ursprüngliche Nachricht----- Von: Moritz Petersen [mailto:[EMAIL PROTECTED]] Gesendet am: Friday, January 11, 2002 6:11 PM An: Struts Users Mailing List Betreff: multipe <bean:define>'s in one page? 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]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>