tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kc.baltz" <kc.ba...@inforonics.com>
Subject RE: servlet invoking
Date Thu, 25 May 2000 15:45:57 GMT
> K.C.
> 
> What would the "action" attribute look like on a form tag for 
> this same
> example.?
> 
> <form name=foo action="?" >
> 
> Hugh W. O'Brien
> Java Enterprise Developer @ Intelis
> 

If you wanted the target(action) of your form to be the ChatServlet, then
you would have action="/ChatServlet", just like the mapping in
<servlet-mapping>.

Of course you could also have action="http://yourhost/chat/ChatServlet", but
that would violate the design intent of Web Apps.  

K.C.

Mime
View raw message