jQuery in Action, 3rd edition
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 Java Interview Guide this week in the Jobs Discussion 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: 104

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

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

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: http://aspose.com/file-tools
subject: c:out question
jQuery in Action, 3rd edition