Re: OGNL in struts tag

2020-02-23 Thread Lukasz Lenart
Ach. my bad, I just checked how "name" is resolved in "UIBean" instead of analysing it into deep and I messed up things with "value" attribute, my explanation below niedz., 23 lut 2020 o 23:06 John Bush napisał(a): > > This works because of %{} and "a" was pushed onto the top of ValueStac

Re: OGNL in struts tag

2020-02-23 Thread John Bush
I understand the don't mix EL and Struts tags - and the use of 'top' in the valueStack. I don't understand why the following first two don't provide like displaying HTML input tags. Also why doesn't OGNL treat the third as a property of "a" and call the getter for formcolumnName. Code   

Re: OGNL in struts tag

2020-02-23 Thread Lukasz Lenart
pt., 21 lut 2020 o 04:05 M Huzaifah napisał(a): > > > > the jsp has error: > > Struts Problem Report > > Struts has detected an unhandled exception: > > Messages: > /pages/common/genericform/genericMain.jsp (line: 165, column: 24) According > to TLD or attribute directive in tag file, attr

Re: OGNL in struts tag

2020-02-20 Thread M Huzaifah
Dear Lucas, Sorry if i am wrong about that. let me clarify in here. let say i have pojo : public class FormColumnKey { private Integer formcolumnFormId; private String formcolumnName; //sette-getter } in action class, i have list of clolumn: private List displayColumnList; and then,

Re: OGNL in struts tag

2020-02-20 Thread Lukasz Lenart
wt., 18 lut 2020 o 17:04 M Huzaifah napisał(a): > Thank you Lucas, my goal is render the struts tag based on list of column > name that i've set before. So i have to iterate the list of column using > jstl than put the "name" on attribut name in struts tag. From here, i > think i miss understandi

Re: OGNL in struts tag

2020-02-18 Thread M Huzaifah
Dear Lucas, Thank you Lucas, my goal is render the struts tag based on list of column name that i've set before. So i have to iterate the list of column using jstl than put the "name" on attribut name in struts tag. From here, i think i miss understanding about struts tag. I use struts 2.5x that

Re: OGNL in struts tag

2020-02-18 Thread Prasanth
Guessing you are trying to create dynamic names for the text fields. If you have dynamic names how are you going to get the values into your action? You could probably have an array of text fields where the names of text fields are like mytext[columnName1], mytext[columnName2]  etc. You can the

Re: OGNL in struts tag

2020-02-18 Thread Lukasz Lenart
wt., 18 lut 2020 o 05:22 M Huzaifah napisał(a): > I've looking for solution how to create struts2 tag could generate > dynamically. This is my code: > > > > You shouldn't mix Struts and non-Struts tags, this is a bad idea. Why don't you use here? https://struts.apache.org/tag-developers/

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Paweł Wielgus
Hi Thomás, aren't you testing old voulnerable version? If so, try the new one. -- Pozdrawiam, Paweł Wielgus. tel: +48 604 603 546 2017-03-13 10:54 GMT+01:00 Tamás Barta : > Lukasz, I don't write it to blame you. I very appreciate your work. > > I just write to this list because it seems to me

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Lukasz Lenart
2017-03-13 10:54 GMT+01:00 Tamás Barta : > Lukasz, I don't write it to blame you. I very appreciate your work. > > I just write to this list because it seems to me that these OGNL > expressions are evaluated before my code is executed and I wonder if it can > be disabled anyhow. > Can I turn off th

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Tamás Barta
Lukasz, I don't write it to blame you. I very appreciate your work. I just write to this list because it seems to me that these OGNL expressions are evaluated before my code is executed and I wonder if it can be disabled anyhow. Can I turn off these auto-evaluated thinks if I don't need them at al

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Lukasz Lenart
2017-03-13 10:43 GMT+01:00 Tamás Barta : > Interesting, I don't do such things. I write down the stack trace from > where it is executed (in 2.5.2). > This is the interesting part, there is no my code there. > > StrutsPrepareAndExecuteFilter:100 // boolean handled > = execute.

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Tamás Barta
Interesting, I don't do such things. I write down the stack trace from where it is executed (in 2.5.2). This is the interesting part, there is no my code there. StrutsPrepareAndExecuteFilter:100 // boolean handled = execute.executeStaticResourceRequest(request, response); ->

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Lukasz Lenart
2017-03-13 9:50 GMT+01:00 Tamás Barta : > I mean I never want a http header or parameter be handled as OGNL > expression and got evaluated. I would like it to be retrieved as it is. For > security purpose. As I said, Struts doesn't evaluate incoming params as OGNL expressions, but when you use suc

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Tamás Barta
I mean I never want a http header or parameter be handled as OGNL expression and got evaluated. I would like it to be retrieved as it is. For security purpose. On Mon, Mar 13, 2017 at 9:44 AM, Lukasz Lenart wrote: > 2017-03-13 9:41 GMT+01:00 Tamás Barta : > > Hi, > > > > Is there any way to disa

Re: OGNL expressions in headers and parameters

2017-03-13 Thread Lukasz Lenart
2017-03-13 9:41 GMT+01:00 Tamás Barta : > Hi, > > Is there any way to disable evaluating OGNL expressions in HTTP headers and > request parameters? There is no direct evaluation of request parameters nor headers. The problem is that those values are often used by developers in JSPs or in some othe

Re: ognl exploit

2017-03-08 Thread Jim Spellman
Ah looks like all I need to do is upgrade. I missed the release note on this... Jim On Wed, Mar 8, 2017 at 5:04 PM, Jim Spellman wrote: > Is there a way to turn off ognl, so to prevent this exploit? > https://github.com/rapid7/metasploit-framework/issues/8064 > > I found someone trying to break

Re: OGNL upgrade in 2.3.28 breaks expressions

2016-04-06 Thread Lukasz Lenart
Hi, It's due to fixed OGNL version which properly supports JavaBean Specifications now. You can revert to prior version of OGNL to keep the old behaviour (security fixes weren't related to OGNL) See those issues https://issues.apache.org/jira/browse/WW-3909 https://issues.apache.org/jira/browse/W

RE: OGNL error --- Unexpected Exception caught setting ... on 'class.........

2015-08-26 Thread fea jabi
publisherDescSelect', function(event, data) { var ui = event.originalEvent.ui;var message = ui.item.value; if(ui.item.key) { message = '( '+ ui.item.key +' ) '+message; } $('#topics').html(''+message+''); }); > From: mgai...

RE: OGNL error --- Unexpected Exception caught setting ... on 'class.........

2015-08-26 Thread Martin Gainty
> From: zy...@hotmail.com > To: user@struts.apache.org > Subject: OGNL error --- Unexpected Exception caught setting ... on > 'class. > Date: Wed, 26 Aug 2015 19:42:36 -0400 > > Have a Publisher class with attributes > Publisher --->class > name > code > > Action class > private Str

Re: OGNL making me nutty

2015-03-27 Thread Lukasz Lenart
It's a conversion/validation error that's why Struts is looking for "input" result - Struts cannot convert incoming String into BigDecimal Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2015-03-27 0:05 GMT+01:00 Ellson, Jared : > Hi All, > > I have a simple struts action class cal

Re: OGNL making me nutty

2015-03-26 Thread Kiran Badi
Please check if the html of view layer has if any incomplete tags. Sometimes due to incomplete tags it never reaches action On Thursday, March 26, 2015, Ellson, Jared wrote: > Yes: > > public String action() throws Exception { > > > On Thu, Mar 26, 2015 at 5:41 PM, Ken McWilliams > > wrote: > >

Re: OGNL making me nutty

2015-03-26 Thread Ellson, Jared
Yes: public String action() throws Exception { On Thu, Mar 26, 2015 at 5:41 PM, Ken McWilliams wrote: > Is there a method in gov.usbr.mechdb.struts.GovernorAction class called > "action" which takes nothing and returns a String? > > On Thu, Mar 26, 2015 at 5:05 PM, Ellson, Jared wrote: > > >

Re: OGNL making me nutty

2015-03-26 Thread Ken McWilliams
Is there a method in gov.usbr.mechdb.struts.GovernorAction class called "action" which takes nothing and returns a String? On Thu, Mar 26, 2015 at 5:05 PM, Ellson, Jared wrote: > Hi All, > > I have a simple struts action class calling setters on a simple JPA object > and for some reason the sett

Re: OGNL Static Method call wrapper

2015-01-22 Thread Lukasz Lenart
2015-01-19 14:02 GMT+01:00 Alireza Fattahi : > As the OGNL static method will be disabled soon ... we could use a wrapper to > call those static methods > Do you think it is a good idea to add a method ActionSupport for calling the > static methods > > So instead of @foo.bar@isValidAmount(amount)

Re: OGNL Static Method call wrapper

2015-01-19 Thread Alireza Fattahi
envocation in action and JSPs ?!  ~Regards, ~~Alireza Fattahi From: Martin Gainty To: Struts Users Mailing List Sent: Monday, 19 January 2015, 17:00 Subject: RE: OGNL Static Method call wrapper No *Unless* you configure app to implement max heap  -Xmx2048M -XX:PermSize=2048M

RE: OGNL Static Method call wrapper

2015-01-19 Thread Martin Gainty
No *Unless* you configure app to implement max heap -Xmx2048M -XX:PermSize=2048M -XX:MaxPermSize=2048m dont declare any entity Static anything .statics are notorious for parking in Permgen where of course the accumulation of other statics will eventually cause OOM http://stackoverflow.com/quest

Re: OGNL is used to call action's methods

2014-12-16 Thread Lukasz Lenart
2014-12-16 14:54 GMT+01:00 Alireza Fattahi : > Yes I am using the convention plugin !!Well, will this be fixed, or we should > try the suggested workaround ?! ~Regards, > ~~Alireza Fattahi It's going to be fixed but please check the workaround to confirm. Regards -- Łukasz + 48 606 323 122 htt

Re: OGNL is used to call action's methods

2014-12-16 Thread Alireza Fattahi
Yes I am using the convention plugin !!Well, will this be fixed, or we should try the suggested workaround ?! ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Tuesday, 16 December 2014, 11:02 Subject: Re: OGNL is used to call action's methods

Re: OGNL is used to call action's methods

2014-12-15 Thread Lukasz Lenart
some sample codes > or a sample application. ~Regards, > ~~Alireza Fattahi > From: Lukasz Lenart > To: Struts Users Mailing List > Sent: Monday, 15 December 2014, 17:04 > Subject: Re: OGNL is used to call action's methods > > 2014-12-15 13:59 GMT+01:00 Alireza

Re: OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
. Hope I could describe what I mean ;) If you like I can send some sample codes or a sample application. ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, 15 December 2014, 17:04 Subject: Re: OGNL is used to call action's methods 2014-

Re: OGNL is used to call action's methods

2014-12-15 Thread Lukasz Lenart
2014-12-15 13:59 GMT+01:00 Alireza Fattahi : > I checked and it was no same method name. Do you suggest I check other places > too ~Regards, > ~~Alireza Fattahi Check inheritance tree - it was known problem Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ -

Re: OGNL is used to call action's methods

2014-12-15 Thread Alireza Fattahi
I checked and it was no same method name. Do you suggest I check other places too ~Regards, ~~Alireza Fattahi From: Lukasz Lenart To: Struts Users Mailing List Sent: Monday, 15 December 2014, 15:51 Subject: Re: OGNL is used to call action's methods 2014-12-15 13:17 GMT+

Re: OGNL is used to call action's methods

2014-12-15 Thread Lukasz Lenart
2014-12-15 13:17 GMT+01:00 Alireza Fattahi : > I used below strategy for error manager: > All actions can throw exception.There is a Error Manager Interceptor which > catch all exceptions and convert them to a json message and return it. > try {return invocation.invoke();

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
Hi again, I was thinking about this again a few minutes ago and thought maybe using an object that implements Map is not the solution, maybe if I use a List implementation, then OGNL will not interpret ".value" as get("value") since you can't do that to a List. Indeed getValue() was called using a

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread Christoph Nenning
> Result is > > During get > > >> getIndex() > >> getIndex() > >> getFieldMap() > my...@1.get(1) > my...@2.get(1) > my...@3.get(value) > >> getIndex() > >> getIndex() > > Ok, getValue() isn't called, I can work with this, I can make all my keys > numbers, if I detect a non-number I just route t

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
My case is logically like this Imagine these data structure gamer: userId gameConsole type game: gameId gameName A game is associated to a gameConsole There are 2 types of gamers, for a type = CASUAL gamer, there are no games associated for a type = AVERAGE gamer, you can have games asscociated

RE: OGNL WARNING

2013-06-28 Thread Martin Gainty
em Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. > Date: Fri, 28 Jun 2013 15:42:56 +0530 > Subject: Re: OGNL WARNING > From: sreekanth.n...@egovernments.o

Re: OGNL WARNING

2013-06-28 Thread Sreekanth S. Nair
As i replied in the jira, we are heavily depends on "bang" syntax, how can we fix this... changing all ! is literally impossible now, since we have hundreds of action urls are in "bang" style. -- Thanks & Regards Srikanth Software Developer eGovernments Foundation

RE: OGNL WARNING

2013-06-28 Thread Martin Gainty
Using the "bang" syntax, any alias method on an Action can be called from the action, submit, or button tags. Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht de

Re: OGNL WARNING

2013-06-28 Thread Sreekanth S. Nair
Updated in Jira https://issues.apache.org/jira/browse/WW-4132 -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 28, 2013 at 1:50 PM, Maurizio Cucchiara wrot

Re: OGNL WARNING

2013-06-28 Thread Maurizio Cucchiara
So, could you provide us some more details, maybe by filing an issue on jira [1] with a sample code. [1] https://issues.apache.org/jira/browse/WW Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/maur

Re: OGNL WARNING

2013-06-28 Thread Sreekanth S. Nair
Yes it was working -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 28, 2013 at 1:21 PM, Maurizio Cucchiara wrote: > Looks like the colon char is not an e

Re: OGNL WARNING

2013-06-28 Thread Maurizio Cucchiara
Looks like the colon char is not an expected input parameter. You talk about latest distro, did it works before with other distros? On 28 June 2013 09:43, Sreekanth S. Nair wrote: > action:documentManager!updateDocument > Twitter :http://www.twitter.com/m_cucchiara G+ :https://plu

Re: OGNL s:interator index problem

2013-06-27 Thread Antonios Gkogkakis
Hi John, If you copy pasted your code from your IDE, there is a typoit should be status, so that won't work, On 27 June 2013 06:54, wrote: > Did you get an exception in the logs? > Sent via BlackBerry from T-Mobile > > -Original Message- > From: john lee > Date: Wed, 26 Jun 2013 2

Re: OGNL s:interator index problem

2013-06-26 Thread jlmagc
Did you get an exception in the logs? Sent via BlackBerry from T-Mobile -Original Message- From: john lee Date: Wed, 26 Jun 2013 22:13:52 To: struts support Reply-To: "Struts Users Mailing List" Subject: OGNL s:interator index problem an class     class SearchInfo {    String i

Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-16 Thread Lukasz Lenart
> -Original Message- > From: Lukasz Lenart > Date: Fri, 10 May 2013 06:51:52 > To: Struts Users Mailing List > Reply-To: Struts Users Mailing List > Subject: Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14 > > Thanks Chris! > > There was a

Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-10 Thread CRANFORD, CHRIS
-1 out of bounds errors. Sent from my Verizon Wireless BlackBerry -Original Message- From: Lukasz Lenart Date: Fri, 10 May 2013 06:51:52 To: Struts Users Mailing List Reply-To: Struts Users Mailing List Subject: Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14 Thanks Chris! There

Re: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-09 Thread Lukasz Lenart
Thanks Chris! There was a security release between - 2.3.4.1 - have you tried it? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/5/8 CRANFORD, CHRIS : > After some final digging, this appears to only surface in devMode=true on > builds 2.3.12 and 2.3.14 regarding Parameters

RE: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-08 Thread CRANFORD, CHRIS
After some final digging, this appears to only surface in devMode=true on builds 2.3.12 and 2.3.14 regarding ParametersInterceptor.java:329. If this was related to the security fix for parameter names, wouldn't the exception/problem occur in both devMode and non-devMode? I'm confused as to wha

RE: OGNL Exception after upgrading from 2.3.4 to 2.3.14

2013-05-08 Thread CRANFORD, CHRIS
I should note that the setItems() method and List variable are on the model object exposed by the ModelDriven<> interface. -Original Message- From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Wednesday, May 08, 2013 9:25 AM To: Struts Users Mailing List Subject: OGNL Excepti

Re: OGNL error in log - Error setting expression

2012-07-27 Thread Miguel Almeida
Answering my own question: apparently you need to define a name property for the submit tag. Thanks to http://www.coderanch.com/t/487063/Struts/Internationalization Miguel On Fri, 2012-07-27 at 18:33 +0100, Miguel Almeida wrote: > I noticed some OGNL warnings in my log that I show below [1].

Re: OGNL context lookup

2011-08-11 Thread Steven Yang
so what you want is dynamically finding values on top of the OGNL stack? I am pretty sure its not possible directly through existing tags. But if write your own method which is like public Object getValueFromStack(String key) { return stack.findValue(key) } (havent gone to check how exactly to

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Dave Newton
(Or struts.xml, the preferred mechanism AFAIK). On Thursday, July 21, 2011, Jason Pyeron wrote: >> -Original Message- >> From: Asleson, Ryan >> Sent: Thursday, July 21, 2011 8:37 >> To: user@struts.apache.org >> Subject: [struts-user] OGNL Problems During Struts2 Upgrade >> >> >> Hello, >

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Asleson, Ryan
I enabled static method access by adding this to struts.xml: Thanks to the direction I found here under the "Accessing static properties" section: http://struts.apache.org/2.2.3/docs/ognl-basics.html And it now works!!! Thank you On Jul 21, 2011, at 7:42 AM, Asleson, Ryan wrote: How

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Asleson, Ryan
How do I enable static method access? Is that through OGNL or Struts2? I don't know why the default formatting tags aren't being used. Probably because the app uses a custom content management system but I don't know. There are over 100 files that use this method for formatting dates and I r

Re: OGNL Problems During Struts2 Upgrade

2011-07-21 Thread Dave Newton
Did you enable static method access? The default may have changed. (Is there a reason the default formatting tags aren't being used? Or the JSTL format tags?) Dave On Thursday, July 21, 2011, Asleson, Ryan wrote: > > Hello, > > We are attempting to upgrade our application from Struts2 version 2.

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
2011/6/7 Stephen Ince : > Thanx a lot Lukask! That was quick. Please test it if you can, thanks in advance! Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
Thanx a lot Lukask! That was quick. Steve - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 7:40 AM Subject: Re: ognl and getText for s:textfield/placeholder Ok, solved, please wait a bit, SNAPSHOT version

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
> > Steve > https://issues.apache.org/jira/browse/WW-3644 > > - Original Message - From: "Lukasz Lenart" > > To: "Struts Users Mailing List" > Sent: Tuesday, June 07, 2011 7:07 AM > Subject: Re: ognl and getText for s:textfield/placeholder >

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
Lukasz, I reported the issue. Thx again for you time. Steve https://issues.apache.org/jira/browse/WW-3644 - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 7:07 AM Subject: Re: ognl and getText for s:t

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
quot; > > To: "Struts Users Mailing List" > Sent: Tuesday, June 07, 2011 6:57 AM > Subject: Re: ognl and getText for s:textfield/placeholder > > > It isn't supported, but it can be, I think. Could you register an > issue ? It's not only related to Dojo t

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
Sure. Can you point to the where I should report the issue? placeHolder will be an issue for HTML5 and anyone wanting to use resource keys. Steve - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 6:57 AM S

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
placeholder='%{getText("placeHolder.Username")}' id="j_username" > name="j_username" cssStyle="width:180px" /> > > Steve > - Original Message - From: "Lukasz Lenart" > > To: "Struts Users Mail

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Stephen Ince
e - Original Message - From: "Lukasz Lenart" To: "Struts Users Mailing List" Sent: Tuesday, June 07, 2011 5:57 AM Subject: Re: ognl and getText for s:textfield/placeholder 2011/6/7 Stephen Ince : placeholder="%{getText('placeHolder.Username')}

Re: ognl and getText for s:textfield/placeholder

2011-06-07 Thread Lukasz Lenart
2011/6/7 Stephen Ince : > placeholder="%{getText('placeHolder.Username')}" id="j_username" > name="j_username" cssStyle="width:180px" /> What is placeHolder, a bean or a resource key ? If bean: "%{getText(placeHolder.Username)}" If key: '%{getText("placeHolder.Username")}' Regards -- Łukasz

Re: OGNL map key reading

2010-11-19 Thread Emil Dombagolla
Thanks you very much for this solution , you saved me. first option works for me very well, thanks In advance. Emil On Thu, Nov 18, 2010 at 5:32 PM, Li Ying wrote: > try: > > invoke the [get] method on map: > > > or > reference property on map: > > > > or > iterator on values of map: > >

Re: OGNL map key reading

2010-11-19 Thread Emil Dombagolla
Thanks for the soultion, it s true, i can handle that way Emil On Wed, Nov 17, 2010 at 9:25 PM, Steven Yang wrote: > so currentPageHotelList[#stat.index] gives a Map? > > if ur using an iterator u can just do > <-- of course u can use "top" as well > but l like giving it a name > > > > On We

Re: OGNL map key reading

2010-11-18 Thread Li Ying
try: invoke the [get] method on map: or reference property on map: or iterator on values of map: or iterator on keys of map: - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands

Re: OGNL map key reading

2010-11-17 Thread Steven Yang
so currentPageHotelList[#stat.index] gives a Map? if ur using an iterator u can just do <-- of course u can use "top" as well but l like giving it a name On Wed, Nov 17, 2010 at 4:13 PM, Emil Dombagolla wrote: > Dear all, > > > > ---

Re: ognl and multdimensional lists

2010-10-20 Thread Dave Evans
Hello Li, I'm using struts 2. I'm not getting an IndexOutOfBoundsException, instead the list is populated with null values. Dave On Wed, Oct 13, 2010 at 7:20 PM, Li Ying wrote: > Hi Dave: > > What version of Struts are you using? > > A long time ago, i met the similar problem in Struts1. > > I

Re: ognl and multdimensional lists

2010-10-13 Thread Li Ying
Hi Dave: What version of Struts are you using? A long time ago, i met the similar problem in Struts1. I thought the parameter named "cellCosts[0][4].quota" should be translated into java code likes: action.getCellCosts().get(0).get(4).setQuota(value); And the method [get] throws a IndexOutOfB

RE: OGNL and init params

2010-10-07 Thread Altenhof, David Aron
: Re: OGNL and init params will it always be listed as *application*? or does that value change? On Thu, Oct 7, 2010 at 10:23 AM, Altenhof, David Aron wrote: > That did it ... thanks! > > -David > > -Original Message- > From: Maurizio Cucchiara [mailto:maurizio.c

Re: OGNL and init params

2010-10-07 Thread Ashlon Hill
t: Wednesday, October 06, 2010 9:49 PM > To: Struts Users Mailing List > Subject: Re: OGNL and init params > > You would be able to access through ognl or more simply inside your action. > ognl syntax, using implicit objects: > > > In order to get access inside your act

RE: OGNL and init params

2010-10-07 Thread Altenhof, David Aron
That did it ... thanks! -David -Original Message- From: Maurizio Cucchiara [mailto:maurizio.cucchi...@gmail.com] Sent: Wednesday, October 06, 2010 9:49 PM To: Struts Users Mailing List Subject: Re: OGNL and init params You would be able to access through ognl or more simply inside your

Re: OGNL and init params

2010-10-06 Thread Maurizio Cucchiara
You would be able to access through ognl or more simply inside your action. ognl syntax, using implicit objects: In order to get access inside your action, you have to implement ApplicationAware interface. Take a look at the bottom of this page http://struts.apache.org/2.0.14/docs/ognl-basics.h

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
On 7/29/10 11:23 PM, Zoran Avtarovski wrote: This sounds too easy, so I just want to clarify. From my action if I call findValue(myExpressionString) and it will use OGNL to evaluate the expression. Yes. To be more specific, ActionContext.getContext().getValueStack().findValue(yourExpressionStr

Re: OGNL Qurey

2010-07-29 Thread Zoran Avtarovski
Hi Dale, This sounds too easy, so I just want to clarify. From my action if I call findValue(myExpressionString) and it will use OGNL to evaluate the expression. That¹s fantastic and exactly what I was looking for. I¹ll try it this weekend. Z. > > On Thu, Jul 29, 2010 at 10:07 PM, Dale Newfiel

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
On Thu, Jul 29, 2010 at 10:07 PM, Dale Newfield wrote: > On 7/29/10 9:50 PM, Zoran Avtarovski wrote: >> >> What I want to know if there is a way for OGNL to evaluate the expression >> represented by the string through recursion? > > I see no reason you can't get a reference to the ValueStack objec

Re: OGNL Qurey

2010-07-29 Thread Dale Newfield
On 7/29/10 9:50 PM, Zoran Avtarovski wrote: What I want to know if there is a way for OGNL to evaluate the expression represented by the string through recursion? I see no reason you can't get a reference to the ValueStack object from within OGNL and call the findValue() method to make that ha

Re: OGNL to get list of keys

2010-07-01 Thread Dale Newfield
On 7/1/10 4:08 PM, Ken wrote: Adding 'var="header"' to the tag simply pushed a named object onto the stack. Am I missing something? Yes. Any use of an s:iterator always pushes the current item onto the top of the stack during each iteration of the body. You can refer to that as "top" if

Re: OGNL to get list of keys

2010-07-01 Thread Dale Newfield
On 7/1/10 3:51 PM, Ken wrote: This produced the desired effect: (added var="header" to iterator tag) If you have var="header" in the iterator, the appropriate way to reference that value within the iterator is "%{#header}"

Re: OGNL to get list of keys

2010-07-01 Thread Ken
This produced the desired effect: (added var="header" to iterator tag) On Thu, 2010-07-01 at 12:47 -0600, Ken wrote: > In my jsp I have: > > > > > > Where list,

Re: ognl: calling action method inside iterator tag

2010-06-01 Thread Grant Lewis
on seulement et n'aura > pas n'importe quel effet légalement obligatoire. Étant donné que les email > peuvent facilement être sujets à la manipulation, nous ne pouvons accepter > aucune responsabilité pour le contenu fourni. > > > > > > > Date: Fri, 28

RE: ognl: calling action method inside iterator tag

2010-05-28 Thread Martin Gainty
tion, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Fri, 28 May 2010 09:13:04 -0400 > Subject: Re: ognl: calling action method inside iterator tag > From: ukchuckt...@gmail.com > To: user@struts.apache.org > > Odd, I tried it a number of times

Re: ognl: calling action method inside iterator tag

2010-05-28 Thread Grant Lewis
Odd, I tried it a number of times without success. I even dumped the value stack and the object in question was on the stack but the method was never called in the iterator tag. Maybe it was the method name getErrorCount that was causing the problem, not sure. The code I got working is below. It's

Re: ognl: calling action method inside iterator tag

2010-05-25 Thread Paweł Wielgus
Hi, yes it is possible, struts will look for such a method up the way on stack, so simply < s:property value="getMyMethod" /> should work. Best greetings, Paweł Wielgus. 2010/5/22 Grant Lewis : > Wondering if it's possible (struts 2.1.8.1)? From my testing it > doesn't appear possible to to call

Re: ognl syntax to populate maps

2010-05-06 Thread Dave Evans
It was not, and now is, and the rankMap.get(id) is now returning a String. Thanks so much. Dave On Thu, May 6, 2010 at 6:36 PM, Dale Newfield wrote: > On 5/6/10 8:38 PM, Dave Evans wrote: >> >> My action has a rankMap property with a getter and setter. > > And is setRankMap()'s argument Map? > >

Re: ognl syntax to populate maps

2010-05-06 Thread Dale Newfield
On 5/6/10 8:38 PM, Dave Evans wrote: My action has a rankMap property with a getter and setter. And is setRankMap()'s argument Map? -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e

Re: ognl can't handle converting from string to float?

2010-02-11 Thread BlackKnight
Hi, Cimballi, I find it out, it's a bug of xwork 2.1.2, not ognl~~. The converstion failed in xwork2, Acctually , xwork guys has already noticed this and have it fixed since xwork2.1.3. Xwork2.1.3. Changlong : http://jira.opensymphony.com/secure/ReleaseNote.jspa?p

Re: ognl can't handle converting from string to float?

2010-02-10 Thread Cimballi
Frankie, here it works also with "0.0" entered in the UI. Cimballi On Wed, Feb 10, 2010 at 11:32 AM, BlackKnight wrote: > Hi Cimballi, > > >  Have you tried to set latitude = 0f (in java class) or  0.0 in the web > textfield and then submit the form? > >  I debuged the source code and I believe

Re: ognl can't handle converting from string to float?

2010-02-10 Thread BlackKnight
Hi Cimballi, Have you tried to set latitude = 0f (in java class) or 0.0 in the web textfield and then submit the form? I debuged the source code and I believe there is a bug in ongl when handling float value 0, Of course when the value is not 0f, ognl can handle converition from str

Re: ognl can't handle converting from string to float?

2010-02-09 Thread Cimballi
I have a working case with this declaration : private Float latitude; and getXxx setXxx. And in the JSP : Using Struts 2.1.8.1 Cimballi 2010/2/9 BlackKnight : > Hi, > > Just curious, > > Lib Version: > ognl 2.6.11/Struts2.1.6, > > Initial setting: > I have a float variable utm1 in my java mod

Re: ognl method lookup failure

2009-12-15 Thread Dale Newfield
Musachy Barroso wrote: I would suggest Thank you. After all my frustrations my bug was a typo in an EL expression. Argh. -Dale - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Re: ognl method lookup failure

2009-12-13 Thread Dale Newfield
Musachy Barroso wrote: I would suggest to put a breakpoint in XWorkMethodAccessor.callMethod and see why it is not finding it. Thanks for the nudge. I finally got a more detailed message ("Method "isUserSubscribedViaBulletin" failed for object mumble.model.CommunityClassified) which has as i

RE: ognl method lookup failure

2009-12-12 Thread Martin Gainty
"+sec_exp.getMessage()); } %> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html#getMethod%28java.lang.String,%20java.lang.Class hth Martin Gainty __ standard caveats apply > Date: Sat, 12 Dec 2009 16:51:30 -0800 >

Re: ognl method lookup failure

2009-12-12 Thread Musachy Barroso
I would suggest to put a breakpoint in XWorkMethodAccessor.callMethod and see why it is not finding it. musachy On Sat, Dec 12, 2009 at 1:44 PM, Dale Newfield wrote: > Often when I'm stumped writing a detailed "help!" message leads me to the > bug and I never have to send it.  This time I was no

RE: OGNL expression help

2009-11-17 Thread Neil Aggarwal
> Doesn't help unfortunately as the > length of the string > in characters is not the same as the space required to > display it in full! Have you tried adding 2 or 3 to the length value? Neil -- Neil Aggarwal, (281)846-8957, http://UnmeteredVPS.net Host your struts app on a CentOS VP

Re: OGNL expression help

2009-11-17 Thread RogerV
Chris Pratt wrote: > > Like Neil suggested, use "attrib.length()" The extra parens cause OGNL to > call getAttrib().length() rather than getAttrib().getLength(). > (*Chris*) > Thanks, that does work in that the textfield re-sizes according to the length of the string. Doesn't help unfortun

RE: OGNL expression help

2009-11-16 Thread Neil Aggarwal
> Extending String? String is final so it isn't doable ;-) I did not check that. I see someone posted a better solution than this but I guess if someone wanted to have a getLength() for a String, they could write a container class that holds a String and then implement all the methods to call

  1   2   3   >