You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lukas Hazlehurst <lu...@intelligenz.co.nz> on 2004/04/20 08:44:58 UTC

Getting the form bean on a page for use in a core tag

Hello,

I apologise if I've missed something obvious somewhere, but I'm trying
to use a property of my form bean in a core tag, and I'm just missing
how to refer to the form bean easily, since the constant name has full
stops in it which I presume will muck up the el expression.

I've been looking thru my list archives and I can't seem to find any
reference to the problem which probably means I'm missing the point
somewhere, but any help would be appreciated.

Lukas 


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


Re: Getting the form bean on a page for use in a core tag

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Lukas -- IIRC, you can use the name of the form as specified in the 
action mapping.
Suppose you have a mapping of:
<action path="/Foo" name="FooForm" .../>

Then you can use JSTL on the forwared to by the action:

<c:out value="${FooForm.bar}"/>

Lukas Hazlehurst wrote:
> Hello,
> 
> I apologise if I've missed something obvious somewhere, but I'm trying
> to use a property of my form bean in a core tag, and I'm just missing
> how to refer to the form bean easily, since the constant name has full
> stops in it which I presume will muck up the el expression.
> 
> I've been looking thru my list archives and I can't seem to find any
> reference to the problem which probably means I'm missing the point
> somewhere, but any help would be appreciated.
> 
> Lukas 


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


Re: Getting the form bean on a page for use in a core tag

Posted by Daniel Henrique Alves Lima <em...@yahoo.com.br>.
    Lukas, i don't know if i understand your question, but:
Can you use <bean:define> to "access and rename" your bean so you can 
use it in a el expression ?

Lukas Hazlehurst wrote:

>Hello,
>
>I apologise if I've missed something obvious somewhere, but I'm trying
>to use a property of my form bean in a core tag, and I'm just missing
>how to refer to the form bean easily, since the constant name has full
>stops in it which I presume will muck up the el expression.
>
>I've been looking thru my list archives and I can't seem to find any
>reference to the problem which probably means I'm missing the point
>somewhere, but any help would be appreciated.
>
>Lukas 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>For additional commands, e-mail: user-help@struts.apache.org
>
>  
>



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