Mantis - Resin
Viewing Issue Advanced Details
1545 minor always 01-08-07 13:38 04-05-07 15:33
ferg  
ferg  
urgent  
closed 3.0.22  
fixed  
none    
none 3.1.1  
0001545: jsp custom tag and jstl
(rep by Bill Au)

We are having problem with resin 3.0.22 and JSTL.

We have the following line of code in our JSP :
<rbf:get-pages paginator="${paginator}" numPages="5" var="pages"/>

This custom tag is defined as:
    <tag>
        <name>get-pages</name>
        <tag-class>cnwk.forums.tld.GetPages</tag-class>
        <attribute>
            <name>paginator</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
            <name>numPages</name>
            <required>false</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>
        <attribute>
            <name>var</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
        </attribute>
    </tag>

We are getting the following exception:
[13:14:14.338] javax.servlet.ServletException: javax.servlet.jsp.JspException:
ServletException in '/tiles/search-results/search-results.jsp':
/tiles/search-results/search-results.jsp:58: expected `<%= ... %>' at
`${paginator}' for tag attribute setter
`setPaginator(com.jivesoftware.forum.action.util.Paginator)'. Tag attributes
which can't be converted from strings must use a runtime attribute expression.


It seems that things will work if we change the tld uri from
  http://java.sun.com/jstl/core [^]
to the newer version at
  http://java.sun.com/jsp/jstl/core [^]

But then we discovered that it would only work on Linux, but not on a PC.
On a PC we had to disable fast-jstl in order to get things to work.

I think the uri "http://java.sun.com/jsp/jstl/core" [^] is for JSTL 1.1.
Is that supported with Resin 3.0.22? The features list on your web site
has JSTL 1.01 listed. Are there any knows issues with fast-jstl and JSTL
1.1? I am asking because while I was researching this problem I came
this link that claims fast-jstl in resin 3.0.21 conflicts with JSTL 1.1:
http://isun.blog.sohu.com/23338962.html [^] (it is in chinese)

I still don't understand why fast-jstl causes problem on PC but not Linux.
I am going to go over the config file on both to see if I spot anything.

We also went back an checked earlier version of 3.0.X. This problem first
appears in 3.0.19.

There are no notes attached to this issue.