Am Mittwoch, 13. August 2003 20:58 schrieb Yan Gong: > Hi Struts experts.
Hi Yan, > I have a problem with formbean. I created a search form by extending > org.apache.struts.action.DynaActionForm, The strange things happend > was when I filled the search options in the search page from > differnce machine(differet IE ),It shared the same search options. > It seems server only create one > instance of the search form. the scope of the form bean define in > configure file is session scope. The configure file is not master > configure file, we are doing plugin, so this happened when forms > configure in another configure file, If I put the search form > configure into struts-config.xml, It works fine, so anyone knows what > happend with mutiple configure files.I thought it should no > differece, Though I'm neither using DynaForms nor Plugins (Tiles?) and don't have any real experience with those, my understanding is that Struts puts the fom bean into either request or session scope. The latter, which seems to be your case as well, enables one to use information previously entered in one request for a second one, but AFAIK, everything's just limited to either session or request scopes. The problem you describe, though, would imply that the form bean gets saved in application scope, and Struts just doesn't do that, and that definitely wouldn't make any sense, anyway. So what I would check out would be as follows: 'Different IE instance' is not necessarily equal to 'different machine'. Obviously, for some reason, both instances somehow seem to share the same session. Find out what might be the reason behind this and test with a 'real' different machine for comparison. Note that the session information is kept on the client via either cookies or encoded URLs. Check if you're really using session cookies or permanent ones. Furthermore check - in case of URL encoding - if the URLs your'e using contain the same session info on the 'second machine' (the cryptic 'jsessionid' string appended to the URL: is it the same on both 'machines'?). Or: is your second browser instance sharing the same session? If you just press CTRL-N, this doesn't mean you're really creating a different browser instance. The general thought behind this is: Struts doesn't share information between different sessions, so in fact you seem to be dealing with two browser instances acessing the same session for some reason. This is very likely no Struts problem, but something related to your individual setup. Really: test this from a 'physically' different machine first and see if the problem still arises. If it does, we may go on. > Thanks a lot. Never mind :-) > -Yan -- Chris (SCPJ2) =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com