RE: OGNL runtime viewer

2008-03-26 Thread stanlick

Wes -- 

I have a situation where the ParametersInterceptor cannot set a value on my
action on account of an invalid method signature.  I know all about this,
but I'm bewildered at what *is* happening!  It appears to be setting the
value someplace {valuestack?} because my subsequent page is revealing the
correct data selected from the s:select/ control.  Is there a way I can
issue a find() against the valuestack using the OGNL viewer?

Scott




Wesley Wannemacher wrote:
 
 Scott,
 
 Using the OGNL console is like working interactively with perl or
 python, you just issue commands in OGNL and they will be evaluated and
 printed in the console. Here is a quick sample session -
 
 Welcome to the OGNL console!
 :- #request
 [EMAIL PROTECTED],
 __cleanup_recursion_counter=1, decorator=none}
 
 :- execute()
 success
 
 :- input()
 input
 
 :- noMethod()
 null
 
 :- #session
 {__sitemesh__robot=false,
 org.apache.struts2.interceptor.debugging.VALUE_STACK=com.opensymphony.xw
 [EMAIL PROTECTED]
 
 :- #application
 {org.apache.myfaces.config.RuntimeConfig=org.apache.myfaces.config.Runti
 [EMAIL PROTECTED], 
 [snip]
 
  
 -Original Message-
 From: stanlick [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 26, 2007 11:29 AM
 To: user@struts.apache.org
 Subject: Re: OGNL runtime viewer
 
 
 Does *anyone* know where I can find the list of commands 
 understood by the OGNL console?
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/OGNL-runtime-viewer-tp12865906p16313828.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL runtime viewer

2008-03-26 Thread Musachy Barroso
If you are on 2.1 you can use the context browser to navigate the
context. I think the value stack object is in the context, but I don't
remember the key and don't have the code at hand now.

musachy

On Wed, Mar 26, 2008 at 3:21 PM, stanlick [EMAIL PROTECTED] wrote:

  Wes --

  I have a situation where the ParametersInterceptor cannot set a value on my
  action on account of an invalid method signature.  I know all about this,
  but I'm bewildered at what *is* happening!  It appears to be setting the
  value someplace {valuestack?} because my subsequent page is revealing the
  correct data selected from the s:select/ control.  Is there a way I can
  issue a find() against the valuestack using the OGNL viewer?

  Scott




  Wesley Wannemacher wrote:
  
   Scott,
  
   Using the OGNL console is like working interactively with perl or
   python, you just issue commands in OGNL and they will be evaluated and
   printed in the console. Here is a quick sample session -
  
   Welcome to the OGNL console!
   :- #request
   [EMAIL PROTECTED],
   __cleanup_recursion_counter=1, decorator=none}
  
   :- execute()
   success
  
   :- input()
   input
  
   :- noMethod()
   null
  
   :- #session
   {__sitemesh__robot=false,
   org.apache.struts2.interceptor.debugging.VALUE_STACK=com.opensymphony.xw
   [EMAIL PROTECTED]
  
   :- #application
   {org.apache.myfaces.config.RuntimeConfig=org.apache.myfaces.config.Runti
   [EMAIL PROTECTED],
   [snip]
  
  
   -Original Message-
   From: stanlick [mailto:[EMAIL PROTECTED]
   Sent: Wednesday, September 26, 2007 11:29 AM
   To: user@struts.apache.org
   Subject: Re: OGNL runtime viewer
  
  
   Does *anyone* know where I can find the list of commands
   understood by the OGNL console?
  
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  

  --
  View this message in context: 
 http://www.nabble.com/OGNL-runtime-viewer-tp12865906p16313828.html
  Sent from the Struts - User mailing list archive at Nabble.com.


  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]





-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL runtime viewer

2008-03-26 Thread stanlick
2.0.11

On Wed, Mar 26, 2008 at 4:00 PM, Musachy Barroso [EMAIL PROTECTED] wrote:

 If you are on 2.1 you can use the context browser to navigate the
 context. I think the value stack object is in the context, but I don't
 remember the key and don't have the code at hand now.

 musachy

 On Wed, Mar 26, 2008 at 3:21 PM, stanlick [EMAIL PROTECTED] wrote:
 
   Wes --
 
   I have a situation where the ParametersInterceptor cannot set a value
 on my
   action on account of an invalid method signature.  I know all about
 this,
   but I'm bewildered at what *is* happening!  It appears to be setting
 the
   value someplace {valuestack?} because my subsequent page is revealing
 the
   correct data selected from the s:select/ control.  Is there a way I
 can
   issue a find() against the valuestack using the OGNL viewer?
 
   Scott
 
 
 
 
   Wesley Wannemacher wrote:
   
Scott,
   
Using the OGNL console is like working interactively with perl or
python, you just issue commands in OGNL and they will be evaluated
 and
printed in the console. Here is a quick sample session -
   
Welcome to the OGNL console!
:- #request
[EMAIL PROTECTED]
 ,
__cleanup_recursion_counter=1, decorator=none}
   
:- execute()
success
   
:- input()
input
   
:- noMethod()
null
   
:- #session
{__sitemesh__robot=false,
   
 org.apache.struts2.interceptor.debugging.VALUE_STACK=com.opensymphony.xw
[EMAIL PROTECTED]
   
:- #application
{
 org.apache.myfaces.config.RuntimeConfig=org.apache.myfaces.config.Runti
[EMAIL PROTECTED],
[snip]
   
   
-Original Message-
From: stanlick [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 26, 2007 11:29 AM
To: user@struts.apache.org
Subject: Re: OGNL runtime viewer
   
   
Does *anyone* know where I can find the list of commands
understood by the OGNL console?
   
   
   
   
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
 
   --
   View this message in context:
 http://www.nabble.com/OGNL-runtime-viewer-tp12865906p16313828.html
   Sent from the Struts - User mailing list archive at Nabble.com.
 
 
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 --
 Hey you! Would you help me to carry the stone? Pink Floyd

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Scott
[EMAIL PROTECTED]


Re: OGNL runtime viewer

2007-09-26 Thread stanlick

Does *anyone* know where I can find the list of commands understood by the
OGNL console?



Musachy Barroso wrote:
 
 by the way, there is a new option to the debug interceptor. If you set
 debug=browser (by default the root object will be #context, which can
 be changed setting object=value) you will be able to browse the
 values in the context. (again, 2.1 only)
 
 musachy
 
 On 9/24/07, Wesley Wannemacher [EMAIL PROTECTED] wrote:
 Scott,

 Are you looking for the debug console?

 Try adding ?debug=console to your request.

 -Wes

  -Original Message-
  From: stanlick [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 24, 2007 2:55 PM
  To: user@struts.apache.org
  Subject: OGNL runtime viewer
 
 
  I remember a J1 session on WebWork a couple years back where
  a command window was opened and commands were being entered
  to set/get values from the value stack as pages were
  transitioned.  Does anyone know if this utility is still
  available in S2?  It would sure be handy to have visual
  access to the value stack during development.
 
  Scott
  --
  View this message in context:
  http://www.nabble.com/OGNL-runtime-viewer-tf4511060.html#a12865906
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Hey you! Would you help me to carry the stone? Pink Floyd
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/RE%3A-OGNL-runtime-viewer-tf4511098.html#a12903415
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OGNL runtime viewer

2007-09-26 Thread Wesley Wannemacher
Scott,

Using the OGNL console is like working interactively with perl or
python, you just issue commands in OGNL and they will be evaluated and
printed in the console. Here is a quick sample session -

Welcome to the OGNL console!
:- #request
[EMAIL PROTECTED],
__cleanup_recursion_counter=1, decorator=none}

:- execute()
success

:- input()
input

:- noMethod()
null

:- #session
{__sitemesh__robot=false,
org.apache.struts2.interceptor.debugging.VALUE_STACK=com.opensymphony.xw
[EMAIL PROTECTED]

:- #application
{org.apache.myfaces.config.RuntimeConfig=org.apache.myfaces.config.Runti
[EMAIL PROTECTED], 
[snip]

 
 -Original Message-
 From: stanlick [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 26, 2007 11:29 AM
 To: user@struts.apache.org
 Subject: Re: OGNL runtime viewer
 
 
 Does *anyone* know where I can find the list of commands 
 understood by the OGNL console?
 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL runtime viewer

2007-09-26 Thread Dave Newton
--- stanlick [EMAIL PROTECTED] wrote:
 Does *anyone* know where I can find the list of
 commands understood by the OGNL console?

AFAIK it's just evaluating against the OGNL stack.

d.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OGNL runtime viewer

2007-09-26 Thread stanlick

Thanks Wes -- 

That's the ticket!  I suppose I can assign values in the console as well? 
Is it so exciting when we can change memory isn't it?  I feel like a kid
again.

Scott



Wesley Wannemacher wrote:
 
 Scott,
 
 Using the OGNL console is like working interactively with perl or
 python, you just issue commands in OGNL and they will be evaluated and
 printed in the console. Here is a quick sample session -
 
 Welcome to the OGNL console!
 :- #request
 [EMAIL PROTECTED],
 __cleanup_recursion_counter=1, decorator=none}
 
 :- execute()
 success
 
 :- input()
 input
 
 :- noMethod()
 null
 
 :- #session
 {__sitemesh__robot=false,
 org.apache.struts2.interceptor.debugging.VALUE_STACK=com.opensymphony.xw
 [EMAIL PROTECTED]
 
 :- #application
 {org.apache.myfaces.config.RuntimeConfig=org.apache.myfaces.config.Runti
 [EMAIL PROTECTED], 
 [snip]
 
  
 -Original Message-
 From: stanlick [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 26, 2007 11:29 AM
 To: user@struts.apache.org
 Subject: Re: OGNL runtime viewer
 
 
 Does *anyone* know where I can find the list of commands 
 understood by the OGNL console?
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/RE%3A-OGNL-runtime-viewer-tf4511098.html#a12908365
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL runtime viewer

2007-09-25 Thread stanlick
I have the console popup, however, it is readonly and I'm not actually clear
on the command structure I would use if I *could* enter commands!

On 9/24/07, Wesley Wannemacher [EMAIL PROTECTED] wrote:

 Scott,

 Are you looking for the debug console?

 Try adding ?debug=console to your request.

 -Wes

  -Original Message-
  From: stanlick [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 24, 2007 2:55 PM
  To: user@struts.apache.org
  Subject: OGNL runtime viewer
 
 
  I remember a J1 session on WebWork a couple years back where
  a command window was opened and commands were being entered
  to set/get values from the value stack as pages were
  transitioned.  Does anyone know if this utility is still
  available in S2?  It would sure be handy to have visual
  access to the value stack during development.
 
  Scott
  --
  View this message in context:
  http://www.nabble.com/OGNL-runtime-viewer-tf4511060.html#a12865906
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Scott
[EMAIL PROTECTED]


Re: OGNL runtime viewer

2007-09-24 Thread Dave Newton
http://struts.apache.org/2.x/docs/debugginginterceptor.html
http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.html

--- stanlick [EMAIL PROTECTED] wrote:

 
 I remember a J1 session on WebWork a couple years
 back where a command window
 was opened and commands were being entered to
 set/get values from the value
 stack as pages were transitioned.  Does anyone know
 if this utility is still
 available in S2?  It would sure be handy to have
 visual access to the value
 stack during development.
 
 Scott
 -- 
 View this message in context:

http://www.nabble.com/OGNL-runtime-viewer-tf4511060.html#a12865906
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: OGNL runtime viewer

2007-09-24 Thread Wesley Wannemacher
Scott, 

Are you looking for the debug console?

Try adding ?debug=console to your request.

-Wes 

 -Original Message-
 From: stanlick [mailto:[EMAIL PROTECTED] 
 Sent: Monday, September 24, 2007 2:55 PM
 To: user@struts.apache.org
 Subject: OGNL runtime viewer
 
 
 I remember a J1 session on WebWork a couple years back where 
 a command window was opened and commands were being entered 
 to set/get values from the value stack as pages were 
 transitioned.  Does anyone know if this utility is still 
 available in S2?  It would sure be handy to have visual 
 access to the value stack during development.
 
 Scott
 --
 View this message in context: 
 http://www.nabble.com/OGNL-runtime-viewer-tf4511060.html#a12865906
 Sent from the Struts - User mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL runtime viewer

2007-09-24 Thread Musachy Barroso
by the way, there is a new option to the debug interceptor. If you set
debug=browser (by default the root object will be #context, which can
be changed setting object=value) you will be able to browse the
values in the context. (again, 2.1 only)

musachy

On 9/24/07, Wesley Wannemacher [EMAIL PROTECTED] wrote:
 Scott,

 Are you looking for the debug console?

 Try adding ?debug=console to your request.

 -Wes

  -Original Message-
  From: stanlick [mailto:[EMAIL PROTECTED]
  Sent: Monday, September 24, 2007 2:55 PM
  To: user@struts.apache.org
  Subject: OGNL runtime viewer
 
 
  I remember a J1 session on WebWork a couple years back where
  a command window was opened and commands were being entered
  to set/get values from the value stack as pages were
  transitioned.  Does anyone know if this utility is still
  available in S2?  It would sure be handy to have visual
  access to the value stack during development.
 
  Scott
  --
  View this message in context:
  http://www.nabble.com/OGNL-runtime-viewer-tf4511060.html#a12865906
  Sent from the Struts - User mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: OGNL runtime viewer

2007-09-24 Thread stanlick

We are getting warm!  I am now seeing the Welcome to the OGNL console! window
but do not see any way to enter commands.  Come to think of it, I'm not sure
what command I would send it if it were input capable!

Scott



newton.dave wrote:
 
 http://struts.apache.org/2.x/docs/debugginginterceptor.html
 http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/debugging/DebuggingInterceptor.html
 
 --- stanlick [EMAIL PROTECTED] wrote:
 
 
 I remember a J1 session on WebWork a couple years
 back where a command window
 was opened and commands were being entered to
 set/get values from the value
 stack as pages were transitioned.  Does anyone know
 if this utility is still
 available in S2?  It would sure be handy to have
 visual access to the value
 stack during development.
 
 Scott
 -- 
 View this message in context:

 http://www.nabble.com/OGNL-runtime-viewer-tf4511060.html#a12865906
 Sent from the Struts - User mailing list archive at
 Nabble.com.
 
 

 -
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/OGNL-runtime-viewer-tf4511060.html#a12867039
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]