This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:out question

 
Fernando Dominguez
Ranch Hand
Posts: 104
Debian Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you just use this?

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

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic