EL Error with action bean class jsp

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

EL Error with action bean class jsp

steam
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: EL Error with action bean class jsp

Iwao AVE!
Hi,

You have two options.

1. Set the system property org.apache.el.parser. SKIP_IDENTIFIER_CHECK to true.

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 - <[hidden email]>
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: EL Error with action bean class jsp

steam
I have used second option, and it worked.

Thanks a lot. Merry Christmas !



2012/12/25 Iwao AVE! <[hidden email]>:

> 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 - <[hidden email]>
>>
>> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: EL Error with action bean class jsp

Iwao AVE!
Good choice. It may be the right solution :)
Merry Christmas to you too!



2012/12/25 - <[hidden email]>
I have used second option, and it worked.

Thanks a lot. Merry Christmas !



2012/12/25 Iwao AVE! <[hidden email]>:
> 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 - <[hidden email]>
>>
>> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users


------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: EL Error with action bean class jsp

Marcus Kraßmann-2
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 - <[hidden email]>
I have used second option, and it worked.

Thanks a lot. Merry Christmas !



2012/12/25 Iwao AVE! <[hidden email]>:
> 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 - <[hidden email]>
>>
>> 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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users
Reply | Threaded
Open this post in threaded view
|

Re: EL Error with action bean class jsp

steam
Thanks Marcus, its interest choice.
Merry Christmas and Happy New Year !


2012/12/25 Marcus Kraßmann <[hidden email]>:

> 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 - <[hidden email]>
>>
>> I have used second option, and it worked.
>>
>> Thanks a lot. Merry Christmas !
>>
>>
>>
>> 2012/12/25 Iwao AVE! <[hidden email]>:
>> > 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 - <[hidden email]>
>> >>
>> >> 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
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/stripes-users
>

------------------------------------------------------------------------------
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
[hidden email]
https://lists.sourceforge.net/lists/listinfo/stripes-users