It is not working because JSTL think that you are trying to call a function. To make it work you will need to define this function in a TLD file and use the namespace to call it.

Take a look at <TOMCAT>\webapps\jsp-examples\jsp2\el\functions.jsp

HTH
--Shaul


Pat Quinn wrote:


I want to pass uniqueKey as a parameter to the getValue method on my action form, i dont want to render the uniqueKey value i want to render the return value from the getValue(String) method call


From: Pady Srinivasan <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: RE: EL Tag Libraries
Date: Wed, 24 Mar 2004 08:57:41 -0500


Why not use <c:out value="${uniqueKey}" /> instead of <c:out value="${myForm.value(${uniqueKey})}" /> ???


This works for me:


<c:set var="testVar" value="Hello " />
<c:set var="testVar1" value="World" />
<c:set var="hello">
<c:out value="${testVar}" />-<c:out value="${testVar1}" />
</c:set>
<c:out value="${hello}" />



Thanks

-- pady
[EMAIL PROTECTED]


-----Original Message----- From: Pat Quinn [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:11 AM To: [EMAIL PROTECTED] Subject: EL Tag Libraries

Hi Guys,

I have an action form with a get method (i.e. getValue(String)) which takes
a string value, its working fine when i render the data in a text field.


E.g.

<c:set var="uniqueKey">
    <c:out value="${CustomerTO.id}"/>-<c:out
value="${CustomerTO.orderNo}"/>
</c:set>


<html-el:text name="myForm" property="value(${uniqueKey})"/>




Now i want to render the data as a label on screen i've tried using the
<C:out/> tag lib but i cant get it to work

e.g.

<c:out value="${myForm.value(${uniqueKey})}"/>

and <c:out value="${myForm.value(uniqueKey)}"/>


Any ideas how i might do this?


_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


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


______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________

______________________________________________________________________
This email has been scanned by the Heroix e-mail Security System
______________________________________________________________________

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


_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



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



***********************************************
This Mail Was Scanned By Mail-seCure System in Matrix Herzeliya
***********************************************






***********************************************
This Mail Was Scanned By Mail-seCure System in Matrix Herzeliya
***********************************************


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



Reply via email to