[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: Re: Accessing Map of Map in struts 2.3.1.2
From: vEnkaTa mohAna rAo SriperumbUdUru <mohanaraosv () gmail ! com>
Date: 2012-04-14 20:35:58
Message-ID: CACgVPMxHx+9NbF=VhuHybaCBWHkc7=ch_Hka=Zpfc_wWCCVUJA () mail ! gmail ! com
[Download RAW message or body]
Put your project in development mode. struts.devMode = true
and use <s:debug/> tag, It will display the objects available in the
current. This will confirms that whether you getting proper data are not.
or append your url with
http://localhost:8080/MyProject/IloveStruts2Action?debug=xml
OGNL interactive console is there. But it's never worked for me.
http://struts.1045723.n5.nabble.com/OGNL-runtime-viewer-td3477295.html
If you are getting proper data then you have to play with OGNL.
On Sun, Apr 15, 2012 at 1:23 AM, Niral Trivedi <niral22@gmail.com> wrote:
> yes. i m accessing map. But I was just browsing struts site and found that
> article so wondering whether this could be related to my issue as this link
> also states that some OGNL security issue fixed.
>
> On Sat, Apr 14, 2012 at 3:51 PM, Dave Newton <davelnewton@gmail.com>
> wrote:
>
> > No, that's related to static methods; I thought you were accessing a map.
> >
> > On Sat, Apr 14, 2012 at 3:49 PM, Niral Trivedi <niral22@gmail.com>
> wrote:
> >
> > > I do not see anything in logs.
> > >
> > > Also, I find this link
> > >
> > >
> >
> https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-2 \
> 1x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-RefactorusageofstaticmethodsviaOGNL
>
> > > but in my case it's not a static method. and the internal link from
> here
> > to
> > > jira issue couldn't open.
> > >
> > > So, is this related to my issue ?
> > >
> > > 2012/4/14 Łukasz Lenart <lukasz.lenart@googlemail.com>
> > >
> > > > 2012/4/14 Niral Trivedi <niral22@gmail.com>:
> > > > > Am I missing something here ? Is there a different way to access
> Map
> > of
> > > > Map
> > > > > with latest version ?
> > > >
> > > > It can be a side effect of security changes to OGNL and Struts2, do
> > > > you see anything unusual in logs ? Try to increase log level to
> Debug.
> > > >
> > > >
> > > > Regards
> > > > --
> > > > Łukasz http://www.lenart.org.pl/
> > > > mobile +48 606 323 122, office +27 11 0838747
> > > > Warszawa JUG conference - Confitura http://confitura.pl/
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > > For additional commands, e-mail: user-help@struts.apache.org
> > > >
> > > >
> > >
> >
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic