Another valid choice: Use the alternative property notation syntax:
<s:form beanclass="${actionBean['class']}">
This way, you don't need to use any clever workarounds. It has the same
meaning like the well known dot notation, just that it does not use the
(newly reserved?) keyword "class" for referencing the getClass() method.
Merry christmas,
Marcus
Am 25.12.2012 10:22, schrieb Iwao AVE!:
> Good choice. It may be the right solution :)
> Merry Christmas to you too!
>
>
>
> 2012/12/25 - <[email protected] <mailto:[email protected]>>
>
> I have used second option, and it worked.
>
> Thanks a lot. Merry Christmas !
>
>
>
> 2012/12/25 Iwao AVE! <[email protected] <mailto:[email protected]>>:
> > Hi,
> >
> > You have two options.
> >
> > 1. Set the system property org.apache.el.parser.
> SKIP_IDENTIFIER_CHECK to
> > true.
> > See https://issues.apache.org/bugzilla/show_bug.cgi?id=49217 for
> details.
> >
> > 2. Define a custom getter in your base action bean and use it in EL.
> > public String getBeanClass() {
> > return this.getClass().getName();
> > }
> > ${actionBean.beanClass}
> >
> > Regards,
> > Iwao
> >
> > 2012/12/25 - <[email protected] <mailto:[email protected]>>
> >>
> >> Hi,
> >> I have a strange error on my stripes form. I follow by stripes
> book
> >> and make my form like <s:form bean class="${action Bean.class}"> to
> >> using the same JSP for more than one action bean.
> >> And I have error on my jsp:
> >> org.apache.jasper.JasperException "${actionBean.class}" contains
> >> invalid expression(s): javax.el.ELException: Failed to parse the
> >> expression [${actionBean.class}]
> >>
> >> Whats I doing wrong? Any suggestion?
> >> Thanks.
> >
>
------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users