tomcat-users mailing list archives

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

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
  // 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.


Dola Chin

Start your day with Yahoo! - Make it your home page!

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message