This appears to be fixed in Sun's 1.4.2. A quick test failed with 1.4.1_06-b01 but passed with 1.4.2_03-b02.
Quoting "P. Daniell" <[EMAIL PROTECTED]>: > The problem is neither with Struts nor Torque but rather with the > reflection > API, which exhibits strange behavior when asked to deal with classes named > "Component." Strangely enough, I found a thread on the struts-user thread > > http://www.mail-archive.com/[EMAIL PROTECTED]/msg60817.html > > dealing with the same problem. Everything behaves properly when the class > is > renamed Komponent. > > PD > > ----- Original Message ----- > From: "Kris Schneider" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Monday, January 26, 2004 3:14 PM > Subject: Re: Torque and Struts problem > > > > My email's acting flaky, sorry if this gets posted twice: > > > > What happens with this instead of JSTL: > > > > <jsp:useBean id="comptest" > > scope="request" > > type="org.ttemplating.internal.dataobjects.Component"/> > > <jsp:getProperty name="comptest" property="name"/> > > > > Paul Daniell wrote: > > > > > From: "Kris Schneider" <[EMAIL PROTECTED]> > > > > > >>I suppose this could be a classloader issue. Are all your Struts, > Torque, > > > > > > and > > > > > >>JSTL JAR files colocated? > > > > > > > > > Yes. I am using Struts 1.1 rc1, Torque 3.0.2, and JSTL 1.0. > > > > > > > > > > > > > > >>Quoting Paul Daniell <[EMAIL PROTECTED]>: > > >> > > >> > > >>>I've encountered a strange problem with Struts when used with Torque. > I > > >>>retrieve an object using the following: > > >>> > > >>>ArrayList list = (ArrayList)ComponentPeer.doSelect(new Criteria()); > > >>>request.setAttribute("components", list); > > >>>Component c = (Component)list.get(0); > > >>>request.setAttribute("comptest", c); > > >>>System.out.println(c.getName()); > > >>> > > >>>In the logs this will appropriately print the name of the object "c". > > >>>However, when I invoke the following JSP > > >>>... > > >>><html><body> > > >>><c:out value="${comptest.name}"/> > > >>></body></html> > > >>> > > >>> > > >>>I get the following Exception: > > >>> > > >>>HTTP ERROR: 500 An error occurred while evaluating custom action > > > > > > attribute > > > > > >>>"value" with value "${comptest.name}": An error occurred while getting > > >>>property "name" from an instance of class > > >>>org.ttemplating.internal.dataobjects.Component > > >>>(java.lang.IllegalArgumentException: object is not an instance of > > > > > > declaring > > > > > >>>class) > > >>> > > >>>Any advice appreciated. > > >>>Paul > > >> > > >>-- > > >>Kris Schneider <mailto:[EMAIL PROTECTED]> > > >>D.O.Tech <http://www.dotech.com/> > > > > -- > > Kris Schneider <mailto:[EMAIL PROTECTED]> > > D.O.Tech <http://www.dotech.com/> -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

