File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Jsp pages executes twice for only one request? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp pages executes twice for only one request?" Watch "Jsp pages executes twice for only one request?" New topic
Author

Jsp pages executes twice for only one request?

Chit Ming Chong
Ranch Hand

Joined: Sep 09, 2004
Posts: 49
Dear all,

Has anyone experience this before? my page has no loop in it but will execute twice actomatically. The code is as follow...



I use the counter to see how many times the page has been executed.
evan theon
Ranch Hand

Joined: Feb 16, 2005
Posts: 39
have u set the "authenticate"'s attribute before the page? if you haven't...then it is because the command : if getAttribute("authenticate")== null will always return null value, so it wil continuously direct you to the same page over and over again ( due to the response.sendredirect command

is it useful? hope it is
good luck!

regards
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Jsp pages executes twice for only one request?