my dog learned polymorphism*
The moose likes JSP and the fly likes A jsp:useBean question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "A jsp:useBean question" Watch "A jsp:useBean question" New topic
Author

A jsp:useBean question

Tushar Madhukar
Ranch Hand

Joined: May 03, 2006
Posts: 36
Hi,

I am using Tomcat 5.0 to try out JSPs. I used <jsp:useBean> action in a JSP page and found that the corresponding code in the generated servlet is synchronized on the "request" object.

Why is there a need for this synchronization? Aren't "request" objects always thread-safe?

Thx
[ May 11, 2006: Message edited by: Bear Bibeault ]
 
Consider Paul's rocket mass heater.
 
subject: A jsp:useBean question