Hi,

Do explicit syncronization on current HttpSession,
to avoid users competing for a shared resource (like the servlet itself)

Cezar.
>
> Michael Stacey wrote:
>
> > <snip>
> > I'm thinking that I have to synchronize the member functions
> > responsible for sending the HTML to the client, but can't
> > seem to find *what* to synchronize them on.  A static servlet
> > member value?  This?
> >
> > Any help would be appreciated.  HELP STAMP OUT STM!
> >
> > Michael
> > ---------------------------------
> >
> > sample servlet code:
> >
> > public void doGet(HttpServletRequest req, HttpServletResponse res) {
> >     String action = _req.getParameter("a");
> >
> >     if (action == null) {
> >         // send HTML code for frameset
> >         sendFrameset();
> >     }
> >     else if ( action.equals("f1") ) {
> >         // send HTML code to populate frame 1
> >         sendFrameF1();
> >     }
> >     else if ( action.equals("f2") ) {
> >         // send HTML code to populate frame 2
> >         sendFrameF2();
> >     }
> >
> > }
>
> --
> ------------------------------------------------
> Manuel Hurtado Sanchez
> Telefonica Servicios Avanzados de Informacion
> Dept.Ingenieria de Servicios
> Phone: +34 917548650
> Fax:   +34 917548692
> Julian Camarillo,6
> 28037 Madrid, Spain.
> ------------------------------------------------
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to