Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 82374 invoked from network); 24 Mar 2000 15:21:22 -0000 Received: from isdn-gw.spcie.de (HELO mail-server.spcie.de) (193.141.159.86) by locus.apache.org with SMTP; 24 Mar 2000 15:21:22 -0000 Received: by mail-server with Internet Mail Service (5.5.2650.21) id ; Fri, 24 Mar 2000 16:21:05 +0100 Message-ID: <67F4908872D1D211A38000902727A6C223E532@mail-server> From: Christian Mack To: "'tomcat-user@jakarta.apache.org'" Subject: RE: Invalid escape character? Date: Fri, 24 Mar 2000 16:20:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi Darryl I just looked at it. Perhaps the Readme.txt is wrong. Did you try "jdbc:inetdae://MANTRA?database=pubs" ? Tschau Christian > -----Original Message----- > From: Darryl Stoflet [mailto:dstoflet@calweb.com] > Sent: Friday, March 24, 2000 4:02 PM > To: tomcat-user@jakarta.apache.org > Subject: Re: Invalid escape character? > > > Christian, > > Thanks, but.. I am using the Sprinta JDBC 2.0 Driver and > that is the correct syntax for the jdbc url for there driver. I've > tested this standalone and it works fine. > > I am a little suprised no one else has run into this > because its a huge problem. Any character such as '?' or '*' > as the value within a setProperty is escaped with a single > backslash by the jsp parser. > > /Darryl > > Christian Mack wrote: > > > > Hi Darryl > > > > I don't know your JDBC-driver. > > But your JDBC URL doesn't look right. > > Normally you have > > > "jdbc:://:/?paramete > r=xxx¶2=yy > > yy" > > > > In your JDBC URL is no "://host:port" part. > > The parser seems to use "inetdae:MANTRA?database=pubs" as > > . > > > > So you should check your JDBC URL syntax. > > > > Tschau > > Christian > > > > > -----Original Message----- > > > From: Darryl Stoflet [mailto:dstoflet@calweb.com] > > > Sent: Friday, March 24, 2000 4:43 AM > > > To: tomcat-user@jakarta.apache.org > > > Subject: Re: Invalid escape character? > > > > > > > > > Resending this cause I didn't get a response the 1st time. > > > > > > Running Tomcat 3.1 built from source today. The > following jsp > > > fragment: > > > > > > > > value="jdbc:inetdae:MANTRA?database=pubs" /> > > > > > > is converted to: > > > > > > JspRuntimeLibrary.introspecthelper(pageContext.findAttribute(" > > > dbbean"),"url","jdbc:inetdae:MANTRA\?database=pubs",null,null, false); > > > > > > during the JSP compilation process. Notice that the '?' is escaped > > > with a singe backslash. This then fails during the compile do to > > > the invalid escape char. The error is below. What can I do so to > > > use characters like ? and * within the value attribute? Or is > > > this a bug? > > > > > > Has anyone else enountered this? Any help would be appreciated. > > > > > > > > > > > > Internal Servlet Error: > > > > > > org.apache.jasper.JasperException: Unable to compile class for > > > JSPwork\localhost_8080%2Fexamples\_0002fAuthorList_0002ejspAut > > > horList_jsp_6.java:95: > > > Invalid escape character. > > > > > > JspRuntimeLibrary.introspecthelper(pageContext.findAttribute(" > > > dbbean"), > > > "url","jdbc:inetdae:MANTRA\?database=pubs",null,null, false); > > > > > > ^ > > > 1 error > > > > > > at > > > org.apache.jasper.compiler.Compiler.compile(Compiler.java:240) > > > at > > > org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:412) > > > at > > > org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfN > > > ecessary(JspServlet.java:147) > > > at > > > org.apache.jasper.runtime.JspServlet$JspServletWrapper.service > > > (JspServlet.java:159) > > > at > > > org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet > > > .java:259) > > > at > > > org.apache.jasper.runtime.JspServlet.service(JspServlet.java:367) > > > at > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:865) > > > at > > > org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra > > > pper.java:390) > > > at > > > > org.apache.tomcat.core.ContextManager.service(ContextManager.java:529) > > > at > > > org.apache.tomcat.service.http.HttpConnectionHandler.processCo > > > nnection(HttpConnectionHandler.java:146) > > > at > > > org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd > > > point.java:334) > > > at java.lang.Thread.run(Thread.java:479) > > > > > > > > > -- > > > Darryl Stoflet > > > > > > -------------------------------------------------------------- > > > ------------ > > > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > > > For additional commmands, email: > tomcat-user-help@jakarta.apache.org > > > > > > > > -------------------------------------------------------------- > ------------ > > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commmands, email: tomcat-user-help@jakarta.apache.org > > -- > Darryl Stoflet > http://dstoflet.calweb.com > > -------------------------------------------------------------- > ------------ > To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org > For additional commmands, email: tomcat-user-help@jakarta.apache.org >