Yansheng,
Two questions for you....
1.) Is sortField a property in your form-bean?
2.) If yes to question 1, are you using a
DynaActionForm for your form-bean?
- Billy -
On Thu, 10 Jul 2003 14:01:59 -0400, Chris Winters wrote:
>
> Yansheng Lin wrote:
> > 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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]