Hi, Michael.
Thank you very much. Your help makes me be sure about that there are some
version problems with my JSTL.
It's strange, in my WEB-INF folder, there are two 'tld' files for core lib.
One is c-1.0.tld, and another is c.tld. The uri in the former is '
http://java.sun.com/jstl/core', and in the later one is the same as you. But
I have to refer to the former one, or it will not work. And when I want to
output a value, I have to use <c:out value="${...}">, but not refer to EL
directly.
It seems that the JSTL version I use is 1.0, but in MANIFEST.MF in jstl.jar,
it shows that it's 1.1 version. I'm trying to figure out the reason now.
Bob
--The content in MANIFEST.MF in jstl.jar--
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.1
Created-By: 1.4.2-38 ("Apple Computer, Inc.")
Specification-Title: JavaServer Pages Standard Tag Library (JSTL)
Specification-Version: 1.1
Implementation-Title: JavaServer Pages Standard Tag Library API Refere
nce Implementation
Implementation-Version: 1.1.2
Implementation-Vendor: Sun Microsystems, Inc.
Implementation-Vendor-Id: com.sun
Extension-Name: javax.servlet.jsp.jstl
2007/5/15, Michael Binette <[EMAIL PROTECTED]>:
Song Chao,
I have no problem with this. Here is an example of what I am using in
my JSP:
<portlet:actionURL var="changeComponentUrl">
<portlet:param name="componentIndex"
value="${componentListStatus.index}"/>
<portlet:param name="componentId" value="${component.id}"/>
</portlet:actionURL>
My taglib definition is:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
What scope is your item object in? That could be the problem?
--
Michael Binette
Song Chao wrote:
> Hi, all
> I found that it doesn't work when I pass values by EL to <portlet
> param >,
> such as
>
> <portlet:actionURL var="action_add_url">
> <portlet:param name="id" value="${item.id}" />
> </portlet:actionURL>
>
>
> How to solve this problem? Please show me some examples.
>
> Thanks.
>
> Bob Song
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]