DO NOT REPLY [Bug 6695] - bean:define behavior ( Tei Component )

2002-03-04 Thread bugzilla

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695

bean:define behavior ( Tei Component )





--- Additional Comments From [EMAIL PROTECTED]  2002-03-04 12:48 ---
The proble comes from the name parameter.
If I user an rtexprvalue ( like name=%=SomeConstantInJAVA% ) I get the 
exception, if I put there the value ( like name=VAlueOfConstant ), program 
compiles well.
I attach here my micro-test program.
%-- Micro test program for bean:define ClassCastException --%
%@ taglib uri=/WEB-INF/struts-bean.tld   prefix=bean   %
%! // Some dummy Constant
  public static final String KEY = SomeUserKey ;
%
html
body
%-- this compiles --%
bean:define id=_role_ name=SomeUserKey 
property=roles.defaultRole.roleName /
%-- this does not compile --%
bean:define id=_role_ name=%=KEY% 
property=roles.defaultRole.roleName /
/body
/html

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 6695] - bean:define behavior ( Tei Component )

2002-03-04 Thread bugzilla

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695

bean:define behavior ( Tei Component )

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2002-03-04 13:07 ---
I thik I have identified and solved the problem 
name is a parameter which can be evaluated at run-rime, so its value can be
different from String.
I suggest the following change to the Tei Module for bean:define

RCS file: /home/cvspublic/jakarta-
struts/src/share/org/apache/struts/taglib/bean/DefineTei.java,v
retrieving revision 1.7
diff -r1.7 DefineTei.java
88c88,89
 String name = data.getAttributeString(name);
---
 // name is a run-time evaluated expression so it must be Object, not String
 Object name = data.getAttribute(name);

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 6695] - bean:define behavior ( Tei Component )

2002-03-04 Thread bugzilla

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695

bean:define behavior ( Tei Component )





--- Additional Comments From [EMAIL PROTECTED]  2002-03-04 15:48 ---
This bug is for Tomcat users only - Resin compile this sample for a penny. I 
fix problem and change class type for local variable in 
DefineTei.getVariableInfo() method from String to Object so all is ok now.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 6695] - bean:define behavior ( Tei Component )

2002-03-03 Thread bugzilla

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695

bean:define behavior ( Tei Component )





--- Additional Comments From [EMAIL PROTECTED]  2002-03-03 22:40 ---
I have just tryed build of march 1st. Problem still exists.
The problem happens while performing jsp compilation (I have tried both using
JB6 and Tomcat directly using ant ), i use Tomcat 3.2.2.
No change has been posted to DefineTei ( on Feb 22nd Version the problem is 
solved symply reverting that module back to version 1.6 ).
NOTE : where are .tld modules in CVS repository ?

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 6695] - bean:define behavior ( Tei Component )

2002-03-03 Thread bugzilla

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695

bean:define behavior ( Tei Component )





--- Additional Comments From [EMAIL PROTECTED]  2002-03-03 23:15 ---
So far, I have been unable to reproduce this problem. When I pasted the exact 
code that you are using into a test page, I get a compilation error because the 
constant name (it.unimaticaspa.uninique.logon.Constants.USER_KEY) is not 
defined. However, if I replace that with one that is defined, it compiles 
successfully.

Could you post the exact stack trace you are getting, as well as the definition 
of the constant you are using? That might help me track this down.

The .tld files are not checked in to CVS. They are generated by the build 
process from the coresponding XML files in the doc/userGuide directory.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




DO NOT REPLY [Bug 6695] - bean:define behavior ( Tei Component )

2002-02-26 Thread bugzilla

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6695

bean:define behavior ( Tei Component )





--- Additional Comments From [EMAIL PROTECTED]  2002-02-26 22:49 ---
Sorry I hit return by mistake, cancel the incomplete html: line.
I have taken the module
'src/share/org/apache/struts/taglib/bean/DefineTei.java' back to previous 
version ( 1.6 ) and everything is now OK.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]