This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes c:out question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "c:out question" Watch "c:out question" New topic
Author

c:out question

Fernando Dominguez
Ranch Hand

Joined: Sep 01, 2006
Posts: 102

Hello, I want to put into hidden field a value.
I'm showing that value before with <c ut value='${MostrarConsultaForm.email}'/>

Now I want to put that value into a hidden field

<html:hidden name="EnviarRespuestaForm" property="email" value="<c ut value='${MostrarConsultaForm.email}'/>" />

But I get <<c ut value='${MostrarConsultaForm.email}'/>> instead of the value

why?
Anu Korah
Greenhorn

Joined: Jun 28, 2006
Posts: 5
You cannot embed a struts or jstl tag within a struts tag.

You can achieve the same with the strut EL tag like this:

<html-el:hidden name="EnviarRespuestaForm" property="email" value="${MostrarConsultaForm.email}" />

-Anu
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Could you just use this?

<html:hidden name="MostrarConsultaForm" property="email" />

- Brent
 
jQuery in Action, 2nd edition
 
subject: c:out question
 
Similar Threads
a difficult problem in JSTL
doubt in JSTL c:out
Wanting to Displaying Empty Data on Initial Search Page
JSTL forEach tag
howto use JSTL foreach to display list ?