Try it!  I think you will find that it works with most implmentations
since
they tend to generate servlets from the jsp's.  The Servlets can include
functions
like your example.

-----Original Message-----
From: Peter Barraud [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:05 PM
To: [EMAIL PROTECTED]
Subject: writing a function in JSP


Is it possible to write a java/servlets function is a jsp page
for example: can I write a function something like this:
<%
public String getName()
        {
        return "YourName";
        }
%>
Thanx
Peter
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Mark
Galbreath
Sent: 24 April, 2001 8:04 AM
To: [EMAIL PROTECTED]
Subject: Hey, Jason!


Two questions:

1.  Reading both editions, I can't really tell who (Will or you) wrote
what.
Any hints on that?  Not that's it's important, just cool to know.

2.  On page 59 of the 2d Edition (footnote): would you publish the code
here
that you wrote to do that?

Cheers!
Mark

________________________________________________________________________
___
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