problem

X-Application Version: 3.1.3, 3.1.2, 3.1.1
Tamino Version : 3.1.1
Platform : NT, Win2k, Solaris, …
WebContainer : Tomcat 3.3
JDK Version : 1.3.1
Dear developer
I have the following code :
<%@ page language=“java” contentType=“text/html; charset=UTF-8” errorPage=“myform.jsp” %>
<%@ taglib uri=“404” prefix=“bdm” %>


Property Scout - Home






.link {
COLOR: #000000; FONT-WEIGHT: bold; TEXT-DECORATION: none
}
A {
COLOR: #000000; FONT-WEIGHT: bold; TEXT-DECORATION: none
}
A:link {
FONT-WEIGHT: bold
}
A:hover {
COLOR: #000000; FONT-WEIGHT: bold; TEXT-DECORATION: underline
}




<bdm:module id=“bdProp”>

<bdm:form module=“bdProp”>

















<td align=right background=file:///E|/tomcat/webapps/Property/newgraphics/or_bg.gif bgcolor=#ff6600
colspan=2 height=35 rowspan=2><img border=0 height=25 width=375
src=“file:///E|/tomcat/webapps/Property/newgraphics/X-App_top.gif” >




<td background=file:///E|/tomcat/webapps/Property/newgraphics/bg_bl_line.gif bgcolor=#cccccc
width=“100%”> 



<td align=left background=file:///E|/tomcat/webapps/Property/newgraphics/top_left.gif bgcolor=#cccccc
valign=top><img border=0 height=56 src=“file:///E|/tomcat/webapps/Property/newgraphics/space.gif”
width=185>
<td align=left background=file:///E|/tomcat/webapps/Property/newgraphics/top_line_left.gif
bgcolor=#cccccc valign=top><img border=0 height=30
src=“file:///E|/tomcat/webapps/Property/newgraphics/space.gif” width=220>
<td align=left background=file:///E|/tomcat/webapps/Property/newgraphics/top_line.gif bgcolor=#cccccc
valign=center width=“100%”> <img border=0 height=4
src=“file:///E|/tomcat/webapps/Property/newgraphics/space(1).gif”
width=186>
<td align=left background=file:///E|/tomcat/webapps/Property/newgraphics/top_line_right.gif
bgcolor=#cccccc valign=top><img border=0 height=33
src=“file:///E|/tomcat/webapps/Property/newgraphics/sag_logo.gif” width=135>


  <img border=0 height=14
src=“file:///E|/tomcat/webapps/Property/newgraphics/space.gif” width=136>
  <img border=0 height=12
src=“file:///E|/tomcat/webapps/Property/newgraphics/space.gif” width=136>
<img
border=0 height=12 src=“file:///E|/tomcat/webapps/Property/newgraphics/space.gif” width=144>















<td align=center background=file:///E|/tomcat/webapps/Property/newgraphics/bgleft_line.gif
bgcolor=#cccccc height=20 width=150>











<td align=left background=file:///E|/tomcat/webapps/Property/newgraphics/button2.gif bgcolor=#cccccc
height=25 valign=center width=150>

 





<td background=file:///E|/tomcat/webapps/Property/newgraphics/bgleft_line.gif bgcolor=#cccccc height=190
width=150>


<td background=file:///E|/tomcat/webapps/Property/newgraphics/unten_rund.gif height=20 valign=top
width=150>   


 

 



 





























<bdm:form module=“bdProp” document=“login”>
<bdm:if condition=“empty” document=“login” select=“/users/userid”>
<%throw new Exception(); %>
</bdm:if>

Hello <bdm:display select=“/users/userid”/>



Welcome to Property Scout. You can browse through all available properties,
add your own offers or request for a property you are interested in. Here is the object you have choosen as your favorite:



</bdm:form>


<table bgcolor=#cccccc border=0 cellpadding=0 cellspacing=0
width=“100%”>
Property
Scout Registration













powered by Tamino X-Application

</bdm:form>

</bdm:module>



and I get the following error:

Error: 500
Location: /bookshop/home5.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile E:\tomcat\work\DEFAULT\bookshop\home5_1.java:238: Statement not reached.
out.write(“\r\n \t \t”);
^
1 error

at org.apache.tomcat.facade.JasperLiaison.javac(JspInterceptor.java:898)
at org.apache.tomcat.facade.JasperLiaison.processJspFile(JspInterceptor.java:733)
at org.apache.tomcat.facade.JspInterceptor.requestMap(JspInterceptor.java:506)
at org.apache.tomcat.core.ContextManager.processRequest(ContextManager.java:968)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:875)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:484)

please help me
thanks

You Tomcat version is 3.3, isn’t it? You you get a similar error with 3.3.1 or 4.0.4?

If so, could you please post the java file generated by Tomcat, home5_1.java?


Michael

Software AG Germany, Darmstadt

Dear developer
I send the java file
home5_1.java (31.1 KB)

Thank you, but what about your Tomcat version?

Michael

Software AG Germany, Darmstadt

We think the problem is the fragment

<BR> <bdm:if condition="empty" document="login" select="/users/userid"><BR><%throw new Exception(); %><BR></bdm:if><BR></pre><BR><BR>in your JSP page. Tomcat translates this into the following Java code:<BR><pre class="ip-ubbcode-code-pre"><BR>    out.write("\r\n                      ");<BR>    throw new Exception(); <BR>    out.write("\r\n               \t \t");<BR></pre><BR><BR>If Java compiles this code, it complains that the last line cannot be reached. Looks like the line breaks cause this problem. <BR><BR>Could you please change your jsp page to <BR><pre class="ip-ubbcode-code-pre"><BR> <bdm:if condition="empty" document="login" select="/users/userid"><%throw new Exception();%></bdm:if><BR>



and try again? If the bdm:if body contains no line breaks, it should work.

Michael and Thorsten

Software AG Germany, Darmstadt