Peter and Matt are both correct if your form-bean is a DynaActionForm. If you are using a bean that you created yourself then 'formbeanname.sortField' should work for you. ${sortField} alone won't get it done since JSTL doesn't know where to look for this property...
Hope that helps... - Billy - On Thu, 10 Jul 2003 14:18:27 -0400, "Sgarlata Matt" wrote: > > Actually I think you have to do > > <c:out value="${formbeanname.map.sortField}"/> > > Matt > ----- Original Message ----- > From: "Peter Smith" <[EMAIL PROTECTED]> > To: "Tag Libraries Users List" > <[EMAIL PROTECTED]> > Sent: Thursday, July 10, 2003 2:15 PM > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]