Hi!

I think Weblogic is following the JSP spec but Tomcat is more permissive :)
Try replacing <type>java.lang.Boolean</type> with <type>boolean</type>

Cheers,
Taras


On Wed, Dec 10, 2008 at 6:16 PM, phil darley
<[EMAIL PROTECTED]>wrote:

> I've made the change, the weblogic.servlet.jsp.StandardTagLib class
> successfully parses that tag and then falls over when parsing
> net.sourceforge.stripes.tag.UseActionBeanTag's 'validate' property.
> It's moaning that the implementation class uses primitive boolean
> whereas the TLD states it's java.lang.Boolean. Parse error:
>
> Parsing of JSP File '/index.jsp' failed: /index.jsp(1): Error in using
> tag library uri='http://stripes.sourceforge.net/stripes-dynattr.tld'
> prefix='stripes': type mismatch for property 'validate', for Tag class
> 'net.sourceforge.stripes.tag.UseActionBeanTag': tld says
> java.lang.Boolean, implementation type is boolean
> probably occurred due to an error in /index.jsp line 1:
> <%@ taglib prefix="stripes"
> uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%>
>
> Now I can't think of a way to reference primitive boolean in the TLD xml:
>
>  <attribute>
>            <description>
>                Determines whether validation is run on this
> ActionBean. False by default.
>            </description>
>
>  
> <name>validate</name><required>false</required><rtexprvalue>true</rtexprvalue>
>            <type>java.lang.Boolean</type> <--need to reference primitive
> here
>  </attribute>
>
> So the only workaround I can think of is to change the src to take a
> Boolean parameter, however I'm reluctant to to do that as I think it's
> not addressing the root problem.
>
> It seems that the 1.4 complier is not capable of casting the object
> datatypes implicitly whereas the 1.5 complier is. Does this make
> sense? Has anybody managed to get Stripe tags working in 1.4 or had a
> similar issue?
>
> Cheers,
> Phil
>
>
>
> On Tue, Dec 9, 2008 at 7:29 PM, phil darley
> <[EMAIL PROTECTED]> wrote:
> > Hi Tim,
> >
> > I've just made the assumption it will fix it. I will make the changes
> > and get back to you with the results.
> >
> > Cheers,
> > Phil
> >
> > On Tue, Dec 9, 2008 at 5:47 PM, Tim Fennell <[EMAIL PROTECTED]> wrote:
> >> Does changing the TLD fix the problem?  If it does, it sounds to me
> >> like a minor bug that we should just fix in the TLD and be done with.
> >> -t
> >>
> >> On Dec 9, 2008, at 11:50 AM, phil darley wrote:
> >>
> >>> Hi,
> >>>
> >>> I'm attempting to get stripes to run on a 1.4 jee application server,
> >>> specifically Weblogic 8.1 with service pack 6.
> >>>
> >>> - Stripes: 1.5
> >>> - Retrotranslator: backport-util-concurrent-3.1.jar,
> >>> retrotranslator-runtime-1.2.7.jar &
> >>> retrotranslator-transformer-1.2.7.jar
> >>> - Ant: 1.7.0
> >>> - JDK: I am using the default jdk for web modules, this is either
> >>> sun's jdk (142_11) or  BEA JRockit(R) JDK 1.4.2_10
> >>>
> >>> I have followed the instructions on
> >>> http://www.stripesframework.org/display/stripes/Java+1.4+and+Stripes,
> >>> including removing 1.5 code from the .tld files. I am creating my
> >>> build using the Ant Tasks provided by retrotranslator Jar.
> >>>
> >>> The application deploys and the following error is displayed when
> >>> requesting index.jsp :
> >>>
> >>> Parsing of JSP File '/index.jsp' failed:
> >>> ________________________________
> >>> /index.jsp(1): Error in using tag library
> >>> uri='http://stripes.sourceforge.net/stripes-dynattr.tld'
> >>> prefix='stripes': type mismatch for property 'value', for Tag class
> >>> 'net.sourceforge.stripes.tag.InputImageTag': tld says
> >>> java.lang.Object, implementation type is java.lang.String
> >>> probably occurred due to an error in /index.jsp line 1:
> >>> <%@ taglib prefix="stripes"
> >>> uri="http://stripes.sourceforge.net/stripes-dynattr.tld"%>
> >>>
> >>> Okay so the problem is that in stripes-dynattr.tld the Java datatype
> >>> specified for the value property of class InputImageTag is
> >>> java.lang.Object, the datatype in the implemented class (and
> >>> interface) in the stripes jar is java.lang.String. The Jrockit or Sun
> >>> Servlet complier does not like this. Anybody know why when this
> >>> clearly works deployed to a 1.5 environment? Obviously one fix would
> >>> be to modify the .tld file to state the datatype specified for the
> >>> value property of class InputImageTag to 'java.lang.String' but I
> >>> don't believe I should have to!
> >>>
> >>> Does anybody understand what is happening here?
> >>>
> >>> Thanks in advance,
> >>> Phillip Darley
> >>>
> >>>
> ------------------------------------------------------------------------------
> >>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> >>> Nevada.
> >>> The future of the web can't happen without you.  Join us at MIX09 to
> >>> help
> >>> pave the way to the Next Web now. Learn more and register at
> >>>
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >>> _______________________________________________
> >>> Stripes-users mailing list
> >>> [email protected]
> >>> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >>
> >>
> >>
> ------------------------------------------------------------------------------
> >> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas,
> Nevada.
> >> The future of the web can't happen without you.  Join us at MIX09 to
> help
> >> pave the way to the Next Web now. Learn more and register at
> >>
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> >> _______________________________________________
> >> Stripes-users mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/stripes-users
> >>
> >
>
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
>
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Stripes-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to