1 Reply Latest reply on Oct 7, 2002 8:18 PM by Joel Vogt

    Wanted: web.xml file for JSP

    Siegfried Heintze Newbie

      Someone kindly posted a minimal JSP serveral months ago that worked great with jboss-3.1.0alpha_tomcat-4.0.4 but jboss-3.0.0_tomcat-4.0.3 complains: Internal Error: /WEB-INF/web.xml not found.

      My minimal servlet works and it has a web.xml file. What does the web.xml file look like for a minimal JSP?
      Thanks,
      Siegfried
      =====================================================

      Here is my source file:
      <%@ page import="java.text.*,
      java.util.*"%>



      <%

      /**
      * Begin commands to execute this file using JBoss with bash
      * echo "JBOSS_HOME = $JBOSS_HOME"
      * jar -cvfM hello.war hello.jsp
      * if [ ! -d META-INF ]
      * then
      * mkdir meta-inf
      * fi
      * cat <META-INF/application.xml
      * <?xml version="1.0" encoding="ISO-8859-1"?>
      *
      * <display-name>hello</display-name>
      *
      *
      * <web-uri>hello.war</web-uri>
      * <context-root>/hello</context-root>
      *
      *
      *
      * EOF
      * jar -cvfM hello.ear hello.war META-INF
      * echo "cp hello.ear `expr $JBOSS_HOME : '\\([^\\\\]*\\)\\\\'`/`expr $JBOSS_HOME : '[^\\\\]*\\\\\\(.*\\)'`/server/default/deploy"
      * cp hello.ear "`expr $JBOSS_HOME : '\\([^\\\\]*\\)\\\\'`/`expr $JBOSS_HOME : '[^\\\\]*\\\\\\(.*\\)'`/server/default/deploy"
      * IEXPLORE.exe http://10.0.0.4:8080/hello/hello.jsp
      * End commands to execute this file using JBoss with bash
      */

      Date d = new Date();
      String today = DateFormat.getDateInstance().format(d);
      %>
      Hello There!
      This is a test of the hello java server page.
      The date today is:
      <%= today %>