tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Williams, Mark L CIV NSWC-PC" <mark.l.willi...@navy.mil>
Subject RE: JSTL / MYSQL JDBC / TOMCAT 5
Date Fri, 20 Aug 2004 21:11:09 GMT
I see that must be where the problem is. I had trouble with the sample
web.xml entries... TOMCAT wouldn't start the DBTest app with the example
as-is, so I commented out the part that caused the immediate heartburn
and that has the 2.4 spec in it.

Here's the extract from the example. Would anyone like to tell me how to
fix it (if I leave it as-is, not only is there no XML tag at the top,
but I get a "XML document structures must start and end within the same
entity." error)? I'll learn it some day, but if I had leisure, I
wouldn't be asking for help...

And if it's really wrong, should someone fix the documentation? Or is it
just not a cut-and-paste candidate?

TIA,
Mark

===============extract starts here==============
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
    version="2.4">
<web-app>
  <description>MySQL Test App</description>
  <resource-ref>
      <description>DB Connection</description>
      <res-ref-name>jdbc/TestDB</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
  </resource-ref>
</web-app>
==============extract ends here===================

-----Original Message-----
From: QM [mailto:qm300@brandxdev.net]
Sent: Friday, August 20, 2004 15:49
To: Tomcat Users List
Subject: Re: JSTL / MYSQL JDBC / TOMCAT 5


On Fri, Aug 20, 2004 at 03:29:42PM -0400, Williams, Mark L CIV NSWC-PC
wrote:
: Foo ${row.foo}
: Bar ${row.bar}
: 
: Verbatim.
: [snip]
: Any suggestions on what to try next (other than give up and go to
: regular servlets) would be greatly appreciated.

Well, I'd usually vote for a servlet/JSP page controller setup ;) but I
may be able to help you:

What's the doctype declaration in your web.xml?

You must specify servlet spec 2.4 to have the JSTL functionality you
desire.  I don't have the exact syntax on me, but you can find examples
all over the web.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


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


Mime
View raw message