SORRY FOR THE EARLIER MAIL WITH DIFF. SUBJECT. > -----Original Message----- > From: Vikramjit Singh [mailto:vikramjits@;GTLLIMITED.COM] > Sent: Thursday, November 14, 2002 3:13 PM > To: [EMAIL PROTECTED] > Subject: FW: Rejected posting to [EMAIL PROTECTED] > > > > -----Original Message----- > > From: Daniel [mailto:daniel@;MUSTANG-TECHNOLOGIES.COM] > > Sent: Wednesday, November 13, 2002 4:03 PM > > To: [EMAIL PROTECTED] > > Subject: Thread Doubt and Multi User Environment > > > > > > Hi, > > > > I have a JSP code like this and this is converted into a > servlet. What > > happens when multiple user tries to access the code, I have > > written the > > jsp code down and the servlet equivalent is also given. Is > it a bad to > > write the variables as private. What happens when multiple > user try to > > access the same jsp page. > > > > > > Is it safe for multi user environment? > > JSP/Servlet are multi threaded, so it is pretty much safe for > multi-user > env. If you dont want multi threaded then you can implement the > SingleThreadModel, but that shall slow down your application. > > > > > Is it really a bad code for multi user environment? Since the > > variables > > are declared private! > > No, i dont think so. In fact you are in accordance with OOPS > encapsulation. > Which says that the memeber variables should be private, and > you can have > get and set methods for the variables. > > > > > > Hope it helps. > > > Regards, > > Daniel.E > > Vikram. > > > Disclaimer: This e-mail message along with any attachments is > intended only > for the addressee and may contain confidential and privileged > information of > GTL Limited. If the reader of this message is not the > intended recipient, > you are notified that any dissemination, distribution or copy of this > communication is strictly prohibited. If you have received > this message by > error, please notify us immediately, return the original mail > to the sender > and delete the message from your system. > > ============================================================== > ============= > To unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set > JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com > Disclaimer: This e-mail message along with any attachments is intended only for the addressee and may contain confidential and privileged information of GTL Limited. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system.
=========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com