on top of that, you can use the the struts "set" tag to set stuff in
any of the contexts. Scriptlets are evil.

musachy

On Tue, Oct 13, 2009 at 9:41 AM, Dale Newfield <d...@newfield.org> wrote:
> Alex Siman wrote:
>>
>> Thanx you Dave for your advice!
>
> Sure, Alix.
>
>> I switched off the JSTL-EL (as it was recomended in Struts2 wiki)
>
> Can you please point me to that?  Seems quite strange to me...
>
>> so I wrote another working code:
>
> snippets of java inside your .jsp seems like a step back about 8 years to
> me...
>
>> P.S. What did you mean by this?:
>>
>>        "The answer is easier if this .tag file contains no recursive
>> calls."
>
> If the location you're stashing the value in order to get to it from OGNL is
> not related to the call structure, then recursive calls will overwrite the
> values set by the parent.  My example shoved the values into the request.
>  Yours is putting them in the jspContext, but I believe that's also a shared
> jspContext for all the code that's generating that specific output.
>
> If you call <myTagDir:myTag />, within it set a passed value in a larger
> scope, then make a recursive call also to <myTagDir:myTag />, when that
> recursive call returns that larger scope will still contain the value passed
> into the the recursive call and *not* the value passed into the initial tag
> (and promoted to that larger scope location prior to the recursive call).
>
> -Dale
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to