[prev in list] [next in list] [prev in thread] [next in thread]
List: struts-user
Subject: RE: using logic:iterate to load html:link
From: "Karr, David" <david.karr () attws ! com>
Date: 2002-12-31 16:43:09
[Download RAW message or body]
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>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic