Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Joseph Ottinger
I meant for all three expression languages :) On Sat, 28 Dec 2002, Patrick Lightbody wrote: > Sure: > > assuming the ValueStack has a single object in there called "action": > > "name" -> action.getName() > "person.name" -> action.getPerson().getName() > "map["blah"]" -> action.getMap().get("blah

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Patrick Lightbody
Sure: assuming the ValueStack has a single object in there called "action": "name" -> action.getName() "person.name" -> action.getPerson().getName() "map["blah"]" -> action.getMap().get("blah") -Pat - Original Message - From: "Joseph Ottinger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Patrick Lightbody
Good point, I'll look in to that more. "map['blah']" doesn't work, so this could be a problem indeed. I'll ping the Ognl list and get back to you guys. -Pat - Original Message - From: "Rickard Öberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 9:37 AM Sub

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Joseph Ottinger
I guess I'd like to see the actual expression used: (calls "foo.getBar()," or...) On Sat, 28 Dec 2002, [ISO-8859-1] Rickard Öberg wrote: > Patrick Lightbody wrote: > > You can find more about the syntax at www.ognl.org, but here are some > > examples compared to WebWork: > > > > Ognl -- WebWork

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Rickard Öberg
Patrick Lightbody wrote: You can find more about the syntax at www.ognl.org, but here are some examples compared to WebWork: Ognl -- WebWork "name" -- "name" :) "person.name" -- "person/name" "map["blah"]" -- "map['blah']" How does this work in JSP's? isn't going to work

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Patrick Lightbody
You can find more about the syntax at www.ognl.org, but here are some examples compared to WebWork: Ognl -- WebWork "name" -- "name" :) "person.name" -- "person/name" "map["blah"]" -- "map['blah']" "array[0]" -- "array[0]" -- "../name" That's about it! Haven't figured ou

Re: [OS-webwork] How to get the action name?

2002-12-28 Thread Patrick Lightbody
ActionContext.getContext().getName should return what you are looking for. - Original Message - From: "Joseph Ottinger" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 28, 2002 8:05 AM Subject: Re: [OS-webwork] How to get the action name? > Jack, I've asked for this

Re: [OS-webwork] How to get the action name?

2002-12-28 Thread Joseph Ottinger
Jack, I've asked for this myself before. I'd still like to see it put in place - maybe XWork will do it? - but for now, you'll have to add some custom code in order to get this done. (Maybe I'll write a patch.) However... I'm not sure your problem as explained needs the solution you're asking for.

[OS-webwork] How to get the action name?

2002-12-28 Thread Jack Dawson
I'm just learning Webwork, and so far I think it's great. I have one problem though, for which I couldn't find any answer from the documentation nor this list. So I hope someone could be able to help me out here: I have a java action class MyJavaAction.java (of course I have others too but they

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Joseph Ottinger
Can someone make a list comparing the three? That way we can see what each one gives us. I'm sure Maurice would have preferred JSTL's EL, and when JSP 2.0 comes out, most people will expect the standard as well. On Sat, 28 Dec 2002, Patrick Lightbody wrote: > So the current XWork code uses the ex

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Robert Nicholson
Where specially in the findValue is the bottleneck? I was expecting to see this implemented with JavaCC but I don't know if that produces anything that's quicker. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://

Re: [OS-webwork] XWork in CVS

2002-12-28 Thread Patrick Lightbody
Rickard, I haven't done any decent benchmarks, but I did run some very simple tests, and after Ognl's expressions were cached and the first few action requests were sent through, I was getting responses in the ~5-10ms range. Things could probably be speed up even more, especially in the area of act

Re: [OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Rickard Öberg
Patrick Lightbody wrote: So the current XWork code uses the existing WW expression language as is, only using Ognl for setting/getting properties as well as type conversion. I was playing with making an OgnlValueStack and it's literally 10 lines of code and MUCH faster. I was thinking that between

[OS-webwork] Ognl as replacement for WW EL

2002-12-28 Thread Patrick Lightbody
So the current XWork code uses the existing WW expression language as is, only using Ognl for setting/getting properties as well as type conversion. I was playing with making an OgnlValueStack and it's literally 10 lines of code and MUCH faster. I was thinking that between JSTL and Ognl, the need f

Re: [OS-webwork] XWork in CVS

2002-12-28 Thread Rickard Öberg
Patrick Lightbody wrote: OK, as you may have seen, XWork is in the sandbox CVS module. I'd like you all to take a look at it and let me know what you think. The main changes are: I'll take a closer look at it soonish. One Q though: do you have any thoughts on performance? In the old WW there

Re: [OS-webwork] XWork Status

2002-12-28 Thread Rickard Öberg
Erik Beeson wrote: The view releated stuff consists of all the features available in JSP available in velocity, cleaned up taglibs, and Tea support. Are people expecting anything else? I guess the most important idea is to put all features into plain JavaBeans so that they can be used from any