You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Binaghi Mauro <ma...@vtin.it> on 2003/04/01 18:09:21 UTC

A question

Hi
I have the "user.name" property in my "ApplicationResource.properties" file.
Can I take its value with the following instrucition in my JSP page?

<bean:define id="varName">
	<bean:message key="<%= request.getParameter("httpParameter") %>.name"/>
</bean:define>

Of course, I call my JSP with this URI "/myPage.jsp?httpParameter=user"

Thx
Mauro

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


RE: A question

Posted by Robert Taylor <rt...@mulework.com>.
You will have to do something like this:

<%
String key = request.getParameter("httpParameter") + ".name";
%>
<bean:define id="varName">
	<bean:message key="<%=key%>.name"/>
</bean:define>

robert
-----Original Message-----
From: Binaghi Mauro [mailto:mauro.binaghi@vtin.it]
Sent: Tuesday, April 01, 2003 11:09 AM
To: Struts Users Mailing List
Subject: A <bean:define> question
Importance: High


Hi
I have the "user.name" property in my "ApplicationResource.properties" file.
Can I take its value with the following instrucition in my JSP page?

<bean:define id="varName">
	<bean:message key="<%= request.getParameter("httpParameter") %>.name"/>
</bean:define>

Of course, I call my JSP with this URI "/myPage.jsp?httpParameter=user"

Thx
Mauro

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org