You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2007/03/16 08:02:26 UTC

DO NOT REPLY [Bug 41856] New: - JSTL Tags does not work - ${TradeMap["\TradeList"]}" doesnt work

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41856>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41856

           Summary: JSTL Tags does not work  - ${TradeMap["\TradeList"]}"
                    doesnt work
           Product: Tomcat 5
           Version: 5.0.30
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: major
          Priority: P1
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: gopal.rkn@wipro.com


I am working on Tomcat 5.0.30  and working an application based on Spring 
framework. Os for development is Windows xp.

Some of the pages which uses JSTL References like the below does not work

Here you could understand the TradeMap is the model name set in the controller

and its value is a Map and one of the key inside the map is TradeList.

For your info the same application works in Websphere 5.x without any problems.

I have searched the newsgroups and forums thoroughly and they say to update 
the web.xml to give the namespace to web-app ,but nothing worked out.

Newsgroup also suggested that it could be that Jsp1.2 doesnt evaluate the 
expression language. Hoewever the coding is based on jsp1.2 and jstl1.0 and it 
works on websphere 5.x which supports servlet 2.3 and jsp1.2.

I tried in Tomcat 4.x and the result is the same error. I am running this from 
eclipse using eclipse sysdeo plugin for tomcat.


org.apache.jasper.JasperException: <h3>Validation error messages from 
TagLibraryValidator for c</h3><p>134: tag = 'forEach' / attribute = 'items': 
An error occurred while parsing custom action attribute "items" with 
value "${TradeMap["\TradeList"]}": Encountered ""\T", expected one of 
[<INTEGER_LITERAL>, <FLOATING_POINT_LITERAL>, 
<STRING_LITERAL>, "true", "false", "null", "(", "-", "not", "!", "empty", 
<IDENTIFIER>]</p>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41856] - JSTL Tags does not work - ${TradeMap["\TradeList"]}" doesnt work

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41856>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41856


gopal.rkn@wipro.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |critical




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 41856] - JSTL Tags does not work - ${TradeMap["\TradeList"]}" doesnt work

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41856>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41856


yoavs@computer.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME




------- Additional Comments From yoavs@computer.org  2007-03-25 08:01 -------
"It works in WebSphere" is not a good argument, as WebSphere is far more lax
than Tomcat in many areas of Specification implementation.  Tomcat's stricter,
for better or worse.  I would suggest four things:

- Confirm this is a bug by asking on the Tomcat users mailing list,
- Try to listen to the error message you quote and don't escape strings within
the parameter name map, i.e, in this case remove the leader backslash from \T
- Do your testing on the latest stable Tomcat 6.0.10, or at least 5.5.20, as 5.0
is ancient and unlikely to get bugs fixed in a timely manner,
- If you confirm that this a bug against the latest stable Tomcat release,
please reopen this issue and attach a test WAR file we can use to reproduce your
issue.

FWIW, I ran through the TagUnit
(http://today.java.net/pub/a/today/2004/08/30/TagUnitIntro.html) tests on 5.5.20
recently and they worked just fine for me, including map accessors.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org