Oh, I see.
I'm so appreicate what you have provided.
Thank you!
2007/5/16, J.Enrique Ruiz-Valenciano <[EMAIL PROTECTED]>:
I think that you are confused, JSTL is not needed in order to use EL:
http://java.sun.com/products/jsp/jstl/
http://java.sun.com/products/jsp/syntax/2.0/syntaxref207.html#1010522
On the other side, in the JSP 2.1 specification the JSTL has been
aligned with EL.
To use EL in your JSP pages, you must to use the JSP 2.0 specification:
http://jcp.org/en/jsr/detail?id=152
Example of a web.xml JSP 2.0 compliant:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<display-name>...</display-name>
...
</web-app>
> 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]