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.
The 'html' form tags for Struts pull their values (in this case for 'sortField') from the form bean in scope. If you reference that form bean in your JSTL expression (usually by whatever name you've given it in your '<action>' declaration) it should output the same thing.
Chris
-- Chris Winters ([EMAIL PROTECTED]) Senior Software Architect
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
