Thank you both Craig and Karr, I now have enough ammunition to talk to JRUN support -Dan
----- Original Message ----- From: "Craig R. McClanahan" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, November 14, 2002 3:03 PM Subject: Re: How stable is Struts-el? > > > On Thu, 14 Nov 2002, Dan Tran wrote: > > > Date: Thu, 14 Nov 2002 14:46:46 -0800 > > From: Dan Tran <[EMAIL PROTECTED]> > > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > To: Struts Users Mailing List <[EMAIL PROTECTED]> > > Subject: Re: How stable is Struts-el? > > > > How does JRUN4 know how to map to the correct call? > > > > Is it via the .tld file? > > > > Only indirectly. The TLD specifies the name of the attribute, which is > supposed to correspond to the name of a JavaBeans property of the tag > handler class. In turn, Java introspection is utilized (according to the > JavaBeans spec) to determine the name of the getter and setter methods for > the property name in question. The default pattern for a pattern is to > use getFoo() and setFoo() for a property named "foo" -- but this can be > overridden by a BeanInfo class to call any method you want. > > A common programming mistake is to assume that the property setter name is > "set" plus the property name. Applications that make this assumption are > violating the JavaBeans spec. For more info: > > http://java.sun.com/products/javabeans/ > > > -Dan > > Craig > > > > > > ----- Original Message ----- > > From: "Karr, David" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Thursday, November 14, 2002 2:22 PM > > Subject: RE: How stable is Struts-el? > > > > > > If it generated a call to "setDisabled()" instead of "setDisabledExpr()" > > then JRun is broken. There is a BeanInfo class that makes the setter for > > the "disabled" property to be "setDisabledExpr()". > > > > > -----Original Message----- > > > From: Dan Tran [mailto:danttran@;hotmail.com] > > > Sent: Thursday, November 14, 2002 2:08 PM > > > To: Struts Users Mailing List > > > Subject: How stable is Struts-el? > > > > > > > > > Hi, > > > > > > > > > Struts-el chokes at html tag under JRUN4 > > > > > > for example int button example > > > > > > <error-snippet> > > > Translator.CompilationFailedExceptionCompiler errors: > > > Found 6 semantic errors compiling > > > "C:/JRun4/servers/default/SERVER-INF/temp/strutsel-exercise-ta > > > glib.war-21233 > > > 01204/WEB-INF/jsp/jrun__html2dbutton2ejsp10.java": > > > > > > 101. _tag3.setDisabled(__constantTable.getString(3)); > > > <---------------------------------------------> > > > *** Error: No match was found for method > > > "setDisabled(java.lang.String)". > > > </error-snippet> > > > > > > > > > > > > When I look into the source of button-el it only has > > > "disabledExpr" property > > > rather than "disabled" property. > > > Is it a JRUN bug? or struts-el which works fine under Tomcat4. > > > > > > Any help is appreciated > > > > > > -Dan > > > > > > > > > -- > > > To unsubscribe, e-mail: > > > <mailto:struts-user-unsubscribe@;jakarta.apache.org> > > > For additional commands, e-mail: > > > <mailto:struts-user-help@;jakarta.apache.org> > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:struts-user-unsubscribe@;jakarta.apache.org> > > For additional commands, e-mail: > > <mailto:struts-user-help@;jakarta.apache.org> > > > > -- > > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> > > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> > > > > > > > -- > To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

