Hi I as trying a sample application as in HFJS book chapter 3.
I have a form.html which says action="SelectBeer.do"
and the web.xml mapping is like:
<
servlet>
<servlet-name>CH3 Beer</servlet-name>
<servlet-class>com.example.web.SelectBeer<servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>CH3 Beer</servlet-name>
<url-pattern>/SelectBeer.do</url-pattern>
</servlet-mapping>
NOw this works fine when my form is submitted.
But I want to have a virtual URL in the DD as well as the URL in addressbar.I tried to change the DD and action with "/virtual/mydir/SelectBeer.do" at both the places ie. form.html and DD url-pattern,but it did not work.It gave 404 error.
How can I change the URl
pattern to anything virtual and still call the s
ame servlet?