File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Scope in Struts bean

 
Kousik Majumder
Ranch Hand
Posts: 237
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can somebody tell me if we set some form value in request scope then from a same machine if two browsers are opened then will they get the same request or not?

Thanks in advance,

Kousik
 
shankar reddy
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As my concern , It will create separate request object for another object.
 
Gowher Naik
Ranch Hand
Posts: 643
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts are developed in Servlets.Servlets are thread based.If you open two browser at a same time and are requesting same Servlets then two separate threads are created.Request attribute are thread safe.
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that IE has a "feature" where if you open a new window via the File>New Window menu or Ctrl+N that the new window will interact with the same session. If you launch a new IE browser (say from the Windows Start menu) then it will use a different session.

- Brent
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic