OK, try setting a bean to the value of the message and then output the value of the bean, something like this:
<bean:define id="msg"> <bean:message key="login.format.test"/> </bean:define> <html:hidden property="methodToCall" value="<%=msg%>"/> Or, you can use the struts-el taglibs this way: <c:set var="msg"> <bean:message key="login.format.test"/> </c:set> <html-el:hidden property="methodToCall" value="${msg}"/> If you are using a container that supports JSP 2.0, you can use "html" not "html-el" in the above version. -ed On 10/12/05, starki78 <[EMAIL PROTECTED]> wrote: > ---------- Initial Header ----------- > > From : "Ed Griebel" [EMAIL PROTECTED] > To : "Struts Users Mailing List" user@struts.apache.org > Cc : > Date : Wed, 12 Oct 2005 09:31:02 -0400 > Subject : Re: Example not working: Fill the value of a hidden field from a > props-file > > > Oh thank you but this is not working, > I get an compile-error. It must have this structure <html:hidden/> > > Any ideas? > Thanks Starki > > > > > > You can't nest tags like that. Try this instead: > > <html:hidden property="methodToCall"> > > <bean:message key="login.format.test"/> > > </html:hidden> > > > > On 10/12/05, starki78 <[EMAIL PROTECTED]> wrote: > > > Hi, my goal is to dynamically > > > set the value of a hidden field from a Ressources- > > > File: > > > <html:hidden property="methodToCall" value='<bean:message > > > key="login.format.test"/>' /> > > > > > > After submit I get: > > > "<bean:message key="login.test.submit"/>" > > > > > > Can you please tell me where the error is? > > > > > > Thanks a lot > > > Starki > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]