TIA,
Since you are specifiying /servlet in your path, you are able to still
access the servlet. That will work for any servlets that don't have entries
in the web.xml file.
As for your other point, JSP's are a better way to output the html.  They
get compiled into servlets automatically by the container when accessed the
first time. The restriction with them is that they cannot be used to render
binary output. In order to do that, you will need a servlet. An example of
this is a servlet that outputs an image or PDF file rather than HTML.

Regards,

Richard

At 03:27 PM 3/13/2002 +0700, you wrote:
>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

===========================================================================
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