Hi Gayathri,

You can't directly access a server-side Java object from the
client-side. If you are just trying to map a sevlet to a URI it is
possible. Read up about the web.xml file for your web application.

    <servlet>
       <servlet-name>aName</servlet-name>
       <servlet-class>com.packagename.TestServlet</servlet-class>
    </servlet>
    <servlet-mapping>
         <servlet-name>aName</servlet-name>
         <url-pattern>/testServlet</url-pattern>
    </servlet-mapping>

You could then browse to '/testServlet' and you'd see the output of the
servlet.

Jayson Falkner
[EMAIL PROTECTED]

Gayathri Palicherla wrote:

> I like to know is there a way to call servlet directly from the browser.
> instead of calling servlet from html form action, i like to call servlet from browser
> specifying class name in the URL, then display html/jsp page. Can i Do this?????????
>
> Thanks,
> Gayathri.
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
> .
>
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to