YES that was quite obvious! But some how I over looked it! But now it works ... THANKS 2 Alexander
Regards Oliver -----Ursprüngliche Nachricht----- Von: Jesse Alexander (KAID 11) [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 5. Februar 2004 18:33 An: 'Struts Users Mailing List' Betreff: RE: Global Variable - SetupServlet Well, you do not seem to copy the register-object. Therefor you basically address the same object via the servlet-context AND the request. That means that everything you do with the object addressed in request1, you do to the object you have in the servlet context. Then you fetch that global object and give it to request2... where (should be obvious why, by now) you will see the stuff done in request1... hth Alexander -----Original Message----- From: Oliver Thiel [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 5. Februar 2004 17:06 To: [EMAIL PROTECTED] Subject: Global Variable - SetupServlet Hi all, I wrote a struts app with database 'driven' forms using iBatis. For this purpose I wrote a 'SetupServlet' which creates some LinkedHashMaps e.g. register == {username=, password=, ..} and sets them into the Servlet Context servletContext.setAttribute("register", register); In the reset() Methode of my RegisterForm.java I do something like that: public class RegisterForm extends ActionForm { Map register = new LinkedHashMap(); : public void reset(ActionMapping arg0, HttpServletRequest arg1) { register = servletContext.getAttribute("register"); arg1.setAttribute("regiser",fields); } } And in my register.jsp: <logic:iterate id="field" name="fields"> <TR> <TD width="40%"><bean:write name="field" property="key"/>:</TD> <TD><input type="text" name="field(<bean:write name="field" property="key" />)" value="<bean:write name="field" property="value" />" class="Feld"></TD> </TR> </logic:iterate> Until this point anything works fine I see the form and I can insert data . BUT I can also see the INSERTED data from another machine - as if they where written into the ServletContext?!? What am I doing wrong? OR: What can I do against this really BAD effect? Oliver --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]