Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp pages executes twice for only one request?

 
Chit Ming Chong
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic