If you're trying to call something from a JSP, it's preferable and
easier to place the logic in a bean and then use the bean in the JSP.

To execute Servlet code you actually have to use the dispatcher or gain
a handle on the servlet to call the method which is messy to do from
within a JSP.

>>> [EMAIL PROTECTED] 06/28/05 10:08 AM >>>
The only methods of a servlet that are practical to call from a JSP are
static methods.

________________________________

From: A mailing list for discussion about Sun Microsystem's Java
Servlet API Technology. on behalf of shashi kanth
Sent: Tue 06/28/2005 7:18 AM
To: SERVLET-INTEREST@JAVA.SUN.COM
Subject: Re: How do I call method of servlet from jsp




Hi All,
    How do I call method(other than Life-Cycle methods) of servlet from
jsp?
-Thanx
Shashi



 <http://clients.rediff.com/signature/track_sig.asp>
___________________________________________________________________________
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

___________________________________________________________________________
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