I had never done that before. Writing the web.xml as a total newbie to web app dev was a matter of guessing, copying and pasting...
It ran well at first, but JSTL slapped me... ;-)
Again, thanks a lot for your help!
Karsten
Michael Duffy wrote:
Hi Karsten,
I took a look at your app and I know exactly why you're having all the problems you are: your web.xml file is not correct. It doesn't match the DTD, so the parser is throwing exceptions before you ever try to process a page. I've attached the corrected web.xml.
Once I corrected the problems I was able to use JSTL with your stuff in Tomcat.
You can find out about these things from the Tomcat logs. I'd get into the habit of looking there first when you run into problems.
I'd also recommend a good JSTL book before going much
further. I like Shawn Bayern's "JSTL In Action" by
Manning, but there are others out there.
Good luck. - MOD
__________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com
------------------------------------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app> <display-name>TV Dieburg Blue Demons</display-name> <description>TV Dieburg Blue Demons</description>
<!-- Context description --> <context-param> <param-name>webmaster</param-name> <param-value>[EMAIL PROTECTED]</param-value> <description>The email address of the website administrator.</description> </context-param>
<!-- Servlet descriptions --> <servlet> <servlet-name>front-controller</servlet-name> <description>The front controller in the MVC architecture used in this application</description> <servlet-class>de.bluedemons.servlet.MainServletFC</servlet-class> <!-- Load this servlet at server startup time --> <load-on-startup>5</load-on-startup> </servlet>
<!-- Servlet mappings --> <servlet-mapping> <servlet-name>front-controller</servlet-name> <url-pattern>/MainServletFC</url-pattern> </servlet-mapping>
<!-- Session config --> <session-config> <session-timeout>30</session-timeout> </session-config>
</web-app>
------------------------------------------------------------------------
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
