struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dakota Jack <dakota.j...@gmail.com>
Subject Re: Struts <html:select> usage question
Date Fri, 31 Dec 2004 17:53:12 GMT
Yes.  Use JSTL instead.

Jack


On Fri, 31 Dec 2004 15:29:45 +0100, Axel Gross
<kamikaze+resu-sturts@iaeste.at> wrote:
> hi there!
> 
> the el libs use the jsp 2.0 expression language (${} instead of <%= %> )
> If you don't have a servlet container which supports that by itself, you can
> use the el-tags to use it at least inside of the struts tags.
> 
> hth,
> axel
> 
> On 2004-12-31 at 13:23:19 +0200, dsarris wrote:
> > On Fri, 31 Dec 2004 11:26:47 +0200, dsarris <chipix@gmail.com> wrote:
> > > On Thu, 30 Dec 2004 09:23:28 -0700, Wendy Smoak <java@wendysmoak.com>
wrote:
> > > > From: "dsarris" <chipix@gmail.com>
> > > > > I am trying to use the <html:select> tag with the
> > > > > <html:optionscollection> tag.
> > > > > Do I have to put the collection property inside the form bean of
the
> > > > > form that contains the <html:select>?
> > > >
> > > > The docs say if you leave off the 'name' attribute, the framework will
look
> > > > to the enclosing form bean.  So use 'name' to tell it which bean to use.
> > > >
> > > > Is there a reason to use <html:optionsCollection> over <html:options
> > > > collection="..."> ?  Just curious, I use the second one:
> > > >
> > > > <html-el:select property="type">
> > > >     <html-el:options collection="contactTypes" property="key"
> > > > labelProperty="value"/>
> > > > </html-el:select>
> > > > (Where contactTypes is a Map sitting in Application scope.)
> > > >
> > > > --
> > > > Wendy Smoak
> > >
> > > I managed to fixed it using the name attribute. Thank you.
> > >
> > > However, where is a distribution of the strus-el library? I am using
> > > struts 1.2.4 and I have not found it!
> > > Why is better to use the struts-el?
> > >
> > > --
> > > Dimitris Sarris
> > >
> > I found them in the contrib directory ;-).
> > However, I have not found documentation regarding the struts-el extention yet.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 


-- 
------------------------------

"You can lead a horse to water but you cannot make it float on its back."

~Dakota Jack~

"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

-----------------------------------------------

"This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose, or take any action based
on this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation."

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message