On Tue, 10 Sep 2002, Hao Ding wrote:

> 1. In Chapter 2 of JSTL in action, it says most of standard JSP core 
> tags , ,such as <jsp:include> <jsp:useBean> <jsp:setProperty>, are 
> rarely needed  when using JSTL. How can these functions be realized 
> using JSTL  tags?

<jsp:include> is effectively replaced by <c:import>; <jsp:useBean> and
scripting variables are, with a few exceptions, superceded by JSTL's
expression language; and <jsp:setProperty>'s function is handled using
<c:set target="..." property="..." />

> 2. Are only "getting" methods in the bean cleasses can be called by EL ? 
> How can call general functions (non-getting functions) of back-end java 
> code from JSP page using JSTL?

You cannot; such functions need to be called by Java code, either in the
page, in a Java-based component such as a servlet or a filter, or in a
bean itself, wrapped by bean-style accessor methods.

In JSP 2.0, you'll also be able to define expression-language functions in
the TLD; this will let you access back-end methods as long as you've
declared them accessible.

-- 
Shawn Bayern
"JSTL in Action"   http://www.jstlbook.com


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to