This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "c:out question" Watch "c:out question" New topic

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='${}'/>

Now I want to put that value into a hidden field

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

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

Anu Korah

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="${}" />

Brent Sterling
Ranch Hand

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

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

- Brent
I agree. Here's the link:
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 ?