struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Nenning <Christoph.Nenn...@lex-com.net>
Subject Antwort: How to retrieve cascaded value from value stack ?
Date Tue, 27 May 2014 08:18:13 GMT
> i have variable named as var1 in value stack. I can get the value of 
var1
> in my jsp as
> 
>   <s:property value ="var1"/>
> 
> Say its value is childVariable.
> 
> 
> Now value stack has further stored the value of childVariable. I need to
> retrieve the value of childVariable from value stack.
> 
> Something like this but that does not work.
> 
>       <s:property value = '<s:property value ="var1"/>'/>
> 
> Any help ?


That means the value of var1 is another OGNL expression ?

Your action could provide a getter to valueStack. So you could use 
valueStack's method to pass an expression stored in a variable.



Regards,
Christoph

This Email was scanned by Sophos Anti Virus

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message