struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Request parameters need corresponding getters/setters in action?
Date Thu, 27 Mar 2014 20:49:08 GMT
2014-03-27 21:41 GMT+01:00 Manuel López Blasi <lopezblasi@conicet.gov.ar>:
> Hello everybody,
>
> i'm in the process or migrating our application from struts 2.8.1 to the
> latest 2.3.16.1 Ga.
> After some intense debugging and researching i have come to the conclusion
> that request parameters passed thru url are required
> to have corresponding setter mothod (dunno if getter too) in targeted action
> class.
>
> I have and url  like this:
> http://localhost:8080/sigerh_5_4/view/licencia/usuario/listarTramite_input.action?pantallaOrigen=Licencia&idMenu=27&idModulo=5&idGrupo=4
>
> the params would be:
> pantallaOrigen=Licencia
> &idMenu=27
> &idModulo=5
> &idGrupo=4
>
> whenever i click the link i get following exception:
> "
> INFO: 2014-03-27 17:29:32,673 ERROR .logging.commons.CommonsLogger error
> (L:34 ) -Developer Notification (set struts.devMode to false to disable this
> message):
> Unexpected Exception caught setting 'pantallaOrigen' on 'class
> ar.gov.conicet.apps.sigerh.presentation.usuario.CListarTramiteAction: Error
> setting expression 'pantallaOrigen' with value ['Licencia', ]
> "

As you can notice is simple 'Developer Notification' which you can
ignore - it informs you that maybe you made a typo in setter/parameter
name. It's reported only in devMode.

> Another issue with latest release(s): i have noticed that datetimepicker
> isn't shown anymore, as if it were broken.
>
> I checked out struts2 jira issue:
>
> https://issues.apache.org/jira/browse/WW-4254
>
> and grabbign some info from there i managed to modify some files from
> struts2-core-2.3.16.1.jar ,
> i changed some paths in
> controlheader.ftl
> controlheader-core.ftl
> basically applying the same fixes that were performed in that issue.
> Prior to that the jsp crashed in the same way described in the jira ticket.
> The changes i made fixed it  and no exception or warning is shown in the log
> anymore. I have dev mode set to true and debug level set to very high level
> showing everything.
>
> Anybody can comment on this two issues? Any quick fix/solution would be
> highly appreciated.

It's due to new theme inheritance mechanism and will be solved with
upcoming 2.3.17 version.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message