struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <david.k...@attws.com>
Subject RE: using logic:iterate to load html:link
Date Tue, 31 Dec 2002 16:43:09 GMT
It's not part of "struts.jar", but it is part of the Struts
distribution.  If you download the newly released 1.1b3 release, you'll
find it in the "contrib/struts-el" directory.

There is a "README.txt" file in that directory that provides some very
basic information.  There is also a small amount of documentation on
Struts-EL in the Struts User Guide.

You should also read the JSTL specification, available from Sun at
<http://java.sun.com/products/jsp/jstl/>.

Once you're familiar with Struts and the JSTL, there's not much more I
can tell you.  Struts-EL is just a pure integration of the Struts tag
library with the JSTL expression language evaluation engine.

> -----Original Message-----
> From: pqin@shareowner.com [mailto:pqin@shareowner.com]
> 
> Everybody is talking about struts-el. Is it part of 
> struts.jar? where can I
> find the doc for it?
> 
> -----Original Message-----
> From: Karr, David [mailto:david.karr@attws.com] 
> 
> You can do this with the Struts-EL library, which is part of 
> the Struts
> distribution.  Using this, your tag could look like this:
> 
>   <html-el:link forward='${menuOpt["forward"]}'
> target='${menuOpt["target"]}'/>
> 
> The Struts-EL library uses the JSTL expression language engine for
> evaluating attribute values.  Struts-EL requires a Servlet 
> 2.3-compliant
> container.
> 
> > -----Original Message-----
> > From: Steven Dahlin [mailto:sdahlin@cableone.net]
> > 
> > for my menu options I would like to load a dynamic list of 
> > menu options which will be read by the jsp file.  The java 
> > code will load a vector with the menu options like this:
> > 
> > Vector        vecMenuOpts    = new Vector();
> > Hashtable   htblMenuOpt     = new Hashtable();
> > 
> > htblMenuOpt.put( "forward", "forwardindicator" );
> > htblMenuOpt.put( "target", "_top" );
> > htblMenuOpt.put( "description", "labeltoshow" );
> > 
> > vecMenuOpts.add( htblMenuOpt );
> > 
> > ... add other menu options and then write it in a bean to the 
> > session ...
> > 
> > The Jsp would look like this:
> > 
> > <logic:iterate id="menuOpt" name="vecMenuOpts">
> >     <html:link  
> >          ... here is where I need to load the forward and target >
> >        <bean:write name=menuOpt" property="description"/>
> >     </html:link>
> > </logic:iterate>
> > 
> > I would like to do this without having to use scriptlets.  Is 
> > there a way to do this?

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


Mime
View raw message