My JSP code compiles twice?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   John_Cokou
Posted On:   Friday, November 9, 2001 01:53 AM

I dont know why, but many jsp pages does "compile" twice? I ve checked all code, but didnt find any problem I ve some System.out.println(msg); and in the console I can see all the msg twice. <% System.out.println("before..."); System.out.println("true"); System.out.println("after..."); %> this would show in the console: before... true after... before... true after... TWICE!!! Whats wrong?    More>>

I dont know why, but many jsp pages does "compile" twice?



I ve checked all code, but didnt find any problem




I ve some System.out.println(msg);

and in the console I can see all the
msg twice.


<%


System.out.println("before...");

System.out.println("true");

System.out.println("after...");


%>


this would show in the console:



before...

true

after...

before...

true

after...






TWICE!!!

Whats wrong?

   <<Less

Re: My JSP code compiles twice?

Posted By:   Naveed_Azhar  
Posted On:   Friday, November 9, 2001 11:25 PM

Please check if you have written that code in some loop. As the code is not compiled twice, in fact it is executed twice.


naveed@hotmail.com
About | Sitemap | Contact