tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dola Woolfe <dolac...@yahoo.com>
Subject Can a "return" statement cause a problem?
Date Fri, 04 Nov 2005 19:14:19 GMT
Hi,

In one of my JSP pages (ErrorPage.jsp) I have the
following code.

<%
if (display-nothing-only-forward) {
  out.println("<META to forward to another page in 0
seconds>");
  // return;
}

//Lot's more code
%>

It works, but prints out unnecessary html before it
forwards. But if I uncomment "return" it stops
working. I get
HTTP 500 - Internal server error 

What could that be? In the tomcat console window, I
get no indication that something is not right.

Thanks!

Dola Chin


		
__________________________________ 
Start your day with Yahoo! - Make it your home page! 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message