Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

c:out question

 
Fernando Dominguez
Ranch Hand
Posts: 106
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