Hi
My Problem is as follows
I have a part of Code which should be excuted only for the first request,so
Iam having a flag called firstTime which i had declared at
<%! boolean firsttime = false %>
and in the tag <% if(!firsttime) {
                     firsttime = true;
                 execute the code only once for first request
                } else {

                }%>
The code works fine for the first clients request but when Second Client
request comes it directly goes to the else part wheareas first time it
should go to the if part and then later requests should take him to the else
part.
How to do this???
Thanks
with regards,
Kumaran
________________________________________________
Cognizant Technology Solutions India Ltd,
1st Floor ,T.S.140 No 2 & 9,
C.P.T Toad .Taramani
Chennai - 600 113.
Phone(0ff): 044 - 2354281/2354411 Extn: 4443
EMail : [EMAIL PROTECTED]
_________________________________________________

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to