All four scopes *were* checked. However, remember that your property is encapsuled within the formbean class. Therefore, it is not actually in any of the scopes directly. As for it being enclosed by the html:form tags, don't confuse JSTL with Struts. Struts will automagically get properties from the formbean without having to declare it. JSTL, however, does not and should not follow that same behavior as it is not written to follow the Struts framework. -Tim
-----Original Message----- From: Yansheng Lin [mailto:[EMAIL PROTECTED] Sent: Thursday, July 10, 2003 2:41 PM To: 'Tag Libraries Users List' Subject: RE: How come <c:out> didn't regonize variable? Thanks! I got it to work by adding the formBeanName in front. I thought if I didn't specify anything in front, all four scopes(page, request, session, and application) would be looked up, and for sure if would find the 'sortField' var, especial the <c:out> is enclosed in a <html:form>. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 10, 2003 12:24 PM To: [EMAIL PROTECTED] Subject: Re: How come <c:out> didn't regonize variable? 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] --------------------------------------------------------------------- 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]