1 Reply Latest reply on Jul 8, 2003 6:27 AM by el_que

    Servlets [servlets act beyond their package?]

    el_que Newbie

      Hi, I have a problem with using servlets with JBoss 4 DR2

      I make a war file, having a simple jsp page with a form that passes the data to a servlet.
      And it works just fine.

      However, if I create and deploy a new version of this war file,
      that has some modifications in the servlet, and deploy it,
      the jsp keeps referring to the old servlet. Do the servlets act beyond their context?

      Here is my web.xml file:
      <?xml version="1.0"?>
      <!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>
      test

      <servlet-name>HelloServlet2</servlet-name>
      <servlet-class>HelloServlet2</servlet-class>
      <init-param>
      <param-name>ContextName</param-name>
      <param-value>hs13</param-value>
      </init-param>

      <servlet-mapping>
      <servlet-name>HelloServlet2</servlet-name>
      <url-pattern>ihs2</url-pattern>
      </servlet-mapping>
      </web-app>

      Thanks in advance.