Mantis - Resin
Viewing Issue Advanced Details
1403 major always 10-11-06 10:51 10-24-06 13:55
Plat  
ferg  
normal  
closed 3.0.22  
fixed  
none    
none 3.1.0  
0001403: JSP tag file attributes map to private variables with underscores
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.
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!

Notes
(0001553)
ferg   
10-24-06 13:55   
jsp/184v

The underscore has been removed.

Technically, though, this is not a bug.