Or if you are using a DynaActionForm like Billy asked, it would be:

<c:out value="${formbeanname.map.sortField}"/>

Peter
-- 
Peter Smith
Software Engineer
InfoNow Corporation

> From: Peter Smith <[EMAIL PROTECTED]>
> Reply-To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
> Date: Thu, 10 Jul 2003 12:15:04 -0600
> To: Tag Libraries Users List <[EMAIL PROTECTED]>
> Subject: Re: How come <c:out> didn't regonize variable?
> 
> The sortField looks like a property of your html:form.  Thus it exists in
> the form bean, not in scope by itself.  So to use c:out, you would need to
> do this:
> 
> <c:out value="${formbeanname.sortField}"/>
> 
> Hope this helps, 
> 
> Peter 
> -- 
> Peter Smith
> Software Engineer
> InfoNow Corporation
> 
>> From: "Yansheng Lin" <[EMAIL PROTECTED]>
>> Reply-To: "Tag Libraries Users List" <[EMAIL PROTECTED]>
>> Date: Thu, 10 Jul 2003 11:42:41 -0600
>> To: <[EMAIL PROTECTED]>
>> Subject: How come <c:out> didn't regonize variable?
>> 
>> 
>> I have a simple <c:out> statement in my jsp file:
>> 
>>            <html:hidden property="sortField"/>
>>            <c:out value="${sortField}" default="nothing"/>
>> 
>> The output source is:
>> 
>> <input type="hidden" name="sortField" value="service_provider">
>>            nothing
>> 
>> As you can see, the struts tag <html:hidden> rendered the value, but <c:out>
>> didn't.  I am new to JSTL, so I have no clue why this didn't work.
>> 
>> 
>> ---------------------------------------------------------------------
>> 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]

Reply via email to