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.
One small correction to the problem.
If I modify the servlet, and create a different war file,
with jsp referring to the same servlet name and deploy the war
package under a different name, the jsp still passes the data to the old Servlet