Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Servlet Interest »

Re: communicate servlet from jsp

Sireesha Beeram

2004-06-16

Replies:

To send the call to the servlet page:

1.In your jsp page, put
<FORM action="aa" method="post">-->"aa" servlet's doPost() method will be
called. From here you can direct the call to different places

or
2. You can include java beans in the jsp page using->
<jsp:usebean id="bean" class="bb"..>
and you can call methods on this included bean
${bean.property}

You can also check:
http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html

hope this is what you are asking for..





>From: Shiva Kumar <shivjuluru@(protected)>
>Reply-To: "A mailing list for discussion about Sun Microsystem's Java
>      Servlet API Technology." <SERVLET-INTEREST@(protected)>
>To: SERVLET-INTEREST@(protected)
>Subject: communicate servlet from jsp
>Date: Wed, 16 Jun 2004 01:29:22 -0600
>
>hi all,
>
>my servlet has some methods,and it has deployed in webserver .i want to
>call that servlet methods from a jsp page.
>plz help me how to call servlet methods from a jsp.
>the path is like this.webapps is webserver root folder.
>individual jsp files and servlets are working fine.
>
>webapps--->*.jsp
>webapps-->WEB-INF-->web.xml   (description of all servlets)
>webapps-->WEB-INF-->classes-->*.class   (servlet classes)
>
>
>
>thanks in advance
>shiva kumar
>
>___________________________________________________________________________
>To unsubscribe, send email to listserv@(protected)
>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

_________________________________________________________________
Getting married? Find great tips, tools and the latest trends at MSN Life
Events. http://lifeevents.msn.com/category.aspx?cid=married

___________________________________________________________________________
To unsubscribe, send email to listserv@(protected)
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
©2008 junlu.com - Jax Systems, LLC, U.S.A.