This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp pages executes twice for only one request?
 
Similar Threads
filters
how to include jsp page in jsf
common URL Mapping for filter
IE loads the page twice
Redirect to a login page in another server