Re: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-20 Thread QM
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-20 Thread Williams, Mark L CIV NSWC-PC
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==
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">

  MySQL Test App
  
  DB Connection
  jdbc/TestDB
  javax.sql.DataSource
  Container
  

==extract ends here===

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



smime.p7s
Description: S/MIME cryptographic signature


Re: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-20 Thread QM
On Fri, Aug 20, 2004 at 05:11:09PM -0400, Williams, Mark L CIV NSWC-PC wrote:
: 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...
: ===extract starts here==
: 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">
: 

Long story short: XML tags are like parentheses or curly braces in code;
they must balance.

What you have here is the equivalent of

{
{

}

aka, no closing "}"

Take out the second "" tag.
If you're too short on time to learn XML, invest in a validation tool.
A free one comes with Expat, something like "xmlwf."

-QM

-- 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-20 Thread Januski, Ken
I just noticed that this is the syntax given on
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-how
to.html, complete with the double  tags so I wouldn't be surprised
if a number of people run into this problem.



-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 5:15 PM
To: Tomcat Users List
Subject: Re: JSTL / MYSQL JDBC / TOMCAT 5


On Fri, Aug 20, 2004 at 05:11:09PM -0400, Williams, Mark L CIV NSWC-PC
wrote:
: 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...
: ===extract starts here==
: 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">
: 

Long story short: XML tags are like parentheses or curly braces in code;
they must balance.

What you have here is the equivalent of

{
{

}

aka, no closing "}"

Take out the second "" tag.
If you're too short on time to learn XML, invest in a validation tool.
A free one comes with Expat, something like "xmlwf."

-QM

-- 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-23 Thread Williams, Mark L CIV NSWC-PC
Thanks, that worked. I also appreciate the reference to the XML
validator.

That said, are there any observations about the feasibility of using
Swing for building GUIs to be used via browser? I find too many
unexpected browser peculiarities when trying to do anything too
complicated (probably just me, but...) and would like to use something
more definitively controlled (or more predictable in operation). All my
users will be using MS Internet Explorer, typically v5.5. Googling gives
several old articles on needing plug-ins and the like; any more current
experiences available? If Swing is not practical, how are folks handling
this kind of issue?

TIA...
Mark

-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Friday, August 20, 2004 16:15
To: Tomcat Users List
Subject: Re: JSTL / MYSQL JDBC / TOMCAT 5


On Fri, Aug 20, 2004 at 05:11:09PM -0400, Williams, Mark L CIV NSWC-PC
wrote:
: 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...
: ===extract starts here==
: 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">
: 

Long story short: XML tags are like parentheses or curly braces in code;
they must balance.

What you have here is the equivalent of

{
{

}

aka, no closing "}"

Take out the second "" tag.
If you're too short on time to learn XML, invest in a validation tool.
A free one comes with Expat, something like "xmlwf."

-QM

-- 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



smime.p7s
Description: S/MIME cryptographic signature


Re: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-23 Thread QM
On Mon, Aug 23, 2004 at 09:09:45AM -0400, Williams, Mark L CIV NSWC-PC wrote:
: That said, are there any observations about the feasibility of using
: Swing for building GUIs to be used via browser?

Using the web as a conduit for applets (Swing apps) defeats the purpose
of the web's "thin-client" design. ;) If you want a web-based app, aim
for thin technologies -- that is, server-side computations and resources
-- and you can save yourself some headaches.


: I find too many
: unexpected browser peculiarities when trying to do anything too
: complicated (probably just me, but...) and would like to use something
: more definitively controlled (or more predictable in operation). All my
: users will be using MS Internet Explorer, typically v5.5.

If you have control over the deployment environment then you can go
whole-hog with browser-specific markup and javascript.  Many companies
do this internally and it simplifies testing, deployment, etc.

-QM


-- 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: JSTL / MYSQL JDBC / TOMCAT 5

2004-08-24 Thread Williams, Mark L CIV NSWC-PC
Again, I appreciate the feedback. We are working in a rather controlled
environment these days and it turns out that the Java plug-in won't go,
so the whole applet idea looks to be a non-starter anyway. Live and
learn. (or not, I guess...)

VR/
Mark



-Original Message-
From: QM [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 24, 2004 1:08
To: Tomcat Users List
Subject: Re: JSTL / MYSQL JDBC / TOMCAT 5


On Mon, Aug 23, 2004 at 09:09:45AM -0400, Williams, Mark L CIV NSWC-PC
wrote:
: That said, are there any observations about the feasibility of using
: Swing for building GUIs to be used via browser?

Using the web as a conduit for applets (Swing apps) defeats the purpose
of the web's "thin-client" design. ;) If you want a web-based app, aim
for thin technologies -- that is, server-side computations and resources
-- and you can save yourself some headaches.


: I find too many
: unexpected browser peculiarities when trying to do anything too
: complicated (probably just me, but...) and would like to use something
: more definitively controlled (or more predictable in operation). All
my
: users will be using MS Internet Explorer, typically v5.5.

If you have control over the deployment environment then you can go
whole-hog with browser-specific markup and javascript.  Many companies
do this internally and it simplifies testing, deployment, etc.

-QM


-- 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



smime.p7s
Description: S/MIME cryptographic signature