Richard,

My web.xml is blank, it only contains <web-app></web-app>, but i can still
invoke the servlet using http://server/servlet/HelloServlet.
I'm using orion 1.52.

Btw, I can not imagine how to write servlet when we need hundreds of html
code, not only outputing "hello world".

TIA.

At 08:25 PM 3/12/2002 -0800, Richard wrote:
>TIA,
>How you reference your servlet depends on the mapping entry in the web.xml
>file in the WEB-INF directory.
>
>ex:
>     <servlet>
>         <servlet-name>helloServlet</servlet-name>
>         <servlet-class>HelloServlet</servlet-class>
>     </servlet>
>With this mapping you would reference it with helloServlet
>
>As to your second question, the user can't invoke it because the 1)
>application server won't let the user access the file since it's not mapped
>2) since the bean doesn't extend the servlet class, the user doesn't have a
>way to access the class anyway. The user also shouldn't know that the bean
>even exists.
>
>Regards,
>
>Richard

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to