Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001403 [Resin] major always 10-11-06 10:51 10-24-06 13:55
Reporter Plat View Status public  
Assigned To ferg
Priority normal Resolution fixed  
Status closed   Product Version 3.0.22
Summary 0001403: JSP tag file attributes map to private variables with underscores
Description This might be related to bug 0001389, but I'm not sure.

Basically, I've got tag files such as:

--- test.tag ---
<%@tag %>
<%@attribute name="message" type="java.lang.String" required="true" description="Message to show" %>
<%= message %>
----

When Resin 3.0.14 creates _test__tag.java based on this .tag file, it declares:

  private java.lang.String message;

...and the above code works.

However, 3.0.21, 3.0-snap (9/20/2006), and possibly other versions instead declare:

  private java.lang.String _message;

(Note the underscore), which causes my scriptlet code above to break, since that "message" symbol cannot be found in the new class.
Additional Information I'm not sure whether I've just been misusing the feature (i.e. that I should never expect "message" to exist at all, and instead use pageContext to retrieve all my values) or what. Thanks for your help!
Attached Files

- Relationships

- Notes
(0001553)
ferg
10-24-06 13:55

jsp/184v

The underscore has been removed.

Technically, though, this is not a bug.
 

- Issue History
Date Modified Username Field Change
10-11-06 10:51 Plat New Issue
10-11-06 10:52 Plat Issue Monitored: Plat
10-24-06 13:55 ferg Note Added: 0001553
10-24-06 13:55 ferg Assigned To  => ferg
10-24-06 13:55 ferg Status new => closed
10-24-06 13:55 ferg Resolution open => fixed
10-24-06 13:55 ferg Fixed in Version  => 3.1.0


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed.
27 unique queries executed.
Powered by Mantis Bugtracker