try this: <bean:define id="var" > <bean:message key="title.from.ressources" /> </bean:define>
<% String var2 = var %> <!-- or what ever you want --> There is certainly a way of doing it with jstl, nut i don't know it now. Mehdi ----- Original Message ----- From: "AMIR-TAHMASSEB Marc" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 05, 2003 2:15 PM Subject: RE: using ApplicationResources in jsp... because i have to put it on an array of String and then i use this array in the code by a generic code. > -----Message d'origine----- > De : Jimmy Emmanual [mailto:[EMAIL PROTECTED] > Envoyé : vendredi 5 décembre 2003 15:10 > À : 'Struts Users Mailing List' > Objet : RE: using ApplicationResources in jsp... > > > why do you need to? why not just: > > <html:html> > <body> > <bean:message key="title.from.ressources"/> > </body> > </html:html> > > > -----Original Message----- > From: AMIR-TAHMASSEB Marc [mailto:[EMAIL PROTECTED] > Sent: Friday, December 05, 2003 9:07 AM > To: Struts Users Mailing List > Subject: RE: using ApplicationResources in jsp... > > > because i need to get the value of my property inside a <% ... %> > > > -----Message d'origine----- > > De : Hunziker Dennis [mailto:[EMAIL PROTECTED] > > Envoyé : vendredi 5 décembre 2003 15:03 > > À : 'Struts Users Mailing List' > > Objet : RE: using ApplicationResources in jsp... > > > > > > why not try the following: > > <bean:message key="title.from.ressources"/> > > > > -----Original Message----- > > From: AMIR-TAHMASSEB Marc > [mailto:[EMAIL PROTECTED] > > Sent: Freitag, 5. Dezember 2003 15:01 > > To: [EMAIL PROTECTED] > > Subject: using ApplicationResources in jsp... > > > > > > Hi, > > i wonder to know if it's possible to use a property in > > ApplciationResources > > in the jsp code. > > > > I want to do something like this : > > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > > <%@ page language="java" %> > > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > > <%@ taglib uri="/WEB-INF/struts-template.tld" prefix="template" %> > > <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> > > <% > > String title = title.from.ressources; // i don't know how > > to access it ! > > %> > > <html:html> > > <body> > > <%=title%> > > </body> > > </html:html> > > > > > > > > -- > > Marc AMIR-TAHMASSEB > > [EMAIL PROTECTED] > > <mailto:[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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]