tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <bay...@essentially.net>
Subject Re: Problem with if and scriplets
Date Tue, 04 Sep 2001 16:38:20 GMT
On Tue, 4 Sep 2001 zeljko@technologist.com wrote:

> Generated servlet error:
> D:\java\rendering\work\_0002fJspWithBeanTag_jsp.java:135: Statement not
> reached.
>                             out.write("\r\n\t\t");

This is the problem.  The confusion is more from JSP than JSPTL; the
problem is that you're thinking of the 'return' statement as logically at
the end of a block, but since it's not physically at the end of any block,
the behind-the-scenes compiler complains.  If you just (as a hack) replace
the 'return' statement with

	if (1=1) return;

you'll be fine.

Shawn


Mime
View raw message