Re: #request scope

2008-01-31 Thread Musachy Barroso
btw #parameters['model.parentId'] will return an array, not just one value, so #parameters['model.parentId'][0] will give you the value you are looking for. musachy On Jan 31, 2008 2:07 PM, Laurie Harper <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > --- [EMAIL PROTECTED] wrote: > >> Yeah, t

Re: #request scope

2008-01-31 Thread Martin Gainty
n" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, January 31, 2008 2:22 PM Subject: Re: #request scope > --- Laurie Harper <[EMAIL PROTECTED]> wrote: > > Dave Newton wrote: > > > --- [EMAIL PROTECTED] wrote:

Re: #request scope

2008-01-31 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > Dave Newton wrote: > > --- [EMAIL PROTECTED] wrote: > >> Yeah, that's what I thought too! I'm passing the parameter via: > >> > >> > >> > >> > >> > >> and the tag outputs the > >> number to the t

Re: #request scope

2008-01-31 Thread Laurie Harper
Dave Newton wrote: --- [EMAIL PROTECTED] wrote: Yeah, that's what I thought too! I'm passing the parameter via: and the tag outputs the number to the top of the page just fine. Do you have a "model" property in your action? In fact,

Re: #request scope

2008-01-31 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Yeah, that's what I thought too! I'm passing the parameter via: > > > > > > and the tag outputs the > number to the top of the page just fine. Do you have a "model" property in your action? > In fact, if I

Re: #request scope

2008-01-30 Thread stanlick
Yeah, that's what I thought too! I'm passing the parameter via: and the tag outputs the number to the top of the page just fine. In fact, if I use #parameters.model.parentId I get nothing. The problem is that I don't get anything from the

Re: #request scope

2008-01-30 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Parameters and it contains the value immediately before entering the > iterator, as I am printing it out. Seems goofy to have to set a var just > to use it in the loop two lines later. #request is attributes. #parameters is parameters. I can't dupe the issue with a

Re: #request scope

2008-01-30 Thread stanlick
Parameters and it contains the value immediately before entering the iterator, as I am printing it out. Seems goofy to have to set a var just to use it in the loop two lines later. On Jan 29, 2008 5:10 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- stanlick <[EMAIL PROTECTED]> wrote: > > I hav

Re: #request scope

2008-01-29 Thread Dave Newton
--- WongTseng <[EMAIL PROTECTED]> wrote: > in S2, inside iteration, the item object is push onto the VS, so just > remove the pound key. Accessing a request attribute, however, still requires the "#" because it's a named value on the stack, not simply a pushed action or the current object of an it

Re: #request scope

2008-01-29 Thread WongTseng
in S2, inside iteration, the item object is push onto the VS, so just remove the pound key. -- Best Regards Wong Tseng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: #request scope

2008-01-29 Thread Dave Newton
--- stanlick <[EMAIL PROTECTED]> wrote: > I have a weird situation where I am losing a request > parameter inside a loop! > [...] > Doesn't "#request" retrieve request *attributes*? Dave - To unsubscribe, e-mail: [EMAIL PROTE

Re: request scope & paging

2006-05-04 Thread Rob Manthey
Dave Newton wrote: >Kyle W. Cartmell wrote: > > >>I understand the concept behind this, but does anyone actually use >>this in production code? Seems more trouble than it's worth since the >>user could simply start multiple sessions. >> >> > >How? Isn't that browser-dependent? > >And no, I w

Re: request scope & paging

2006-05-03 Thread Michael Jouravlev
On 5/3/06, Y. Thomas Gan <[EMAIL PROTECTED]> wrote: Dave Newton wrote: > Kyle W. Cartmell wrote: > >> I understand the concept behind this, but does anyone actually use >> this in production code? Seems more trouble than it's worth since the >> user could simply start multiple sessions. >> > > Ho

Re: request scope & paging

2006-05-03 Thread Y. Thomas Gan
Dave Newton wrote: Kyle W. Cartmell wrote: I understand the concept behind this, but does anyone actually use this in production code? Seems more trouble than it's worth since the user could simply start multiple sessions. How? Isn't that browser-dependent? And OS dependent too. On

Re: request scope & paging

2006-05-03 Thread Dave Newton
Kyle W. Cartmell wrote: > I understand the concept behind this, but does anyone actually use > this in production code? Seems more trouble than it's worth since the > user could simply start multiple sessions. How? Isn't that browser-dependent? And no, I wouldn't bother dealing with this use-case

Re: request scope & paging

2006-05-03 Thread Kyle W. Cartmell
I understand the concept behind this, but does anyone actually use this in production code? Seems more trouble than it's worth since the user could simply start multiple sessions. Michael Jouravlev wrote: On 5/3/06, Y. Thomas Gan <[EMAIL PROTECTED]> wrote: Is there a way in struts to chain a

Re: request scope & paging

2006-05-03 Thread Michael Jouravlev
On 5/3/06, Y. Thomas Gan <[EMAIL PROTECTED]> wrote: Is there a way in struts to chain a series of requests (paging through a list) and pass data through request scope? In my scenario, I keep the a result list in session, but this prevents me from opening two windows (same session) and paging thro