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:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to