you can find it here: www.jokeoftheyear.com ;o)

Regards,

Frk.

-----Message d'origine-----
De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Date: mardi 31 décembre 2002 17:22
À: [EMAIL PROTECTED]
Objet: RE: using logic:iterate to load html:link


Everybody is talking about struts-el. Is it part of struts.jar? where can I
find the doc for it?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-----Original Message-----
From: Karr, David [mailto:[EMAIL PROTECTED]] 
Sent: December 31, 2002 11:02 AM
To: Struts Users Mailing List
Subject: RE: using logic:iterate to load html:link

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:[EMAIL PROTECTED]]
> 
> 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:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

This mail has originated outside your organization,
either from an external partner or the Global Internet. 
Keep this in mind if you answer this message.

This e-mail is intended only for the above addressee. It may contain
privileged information. If you are not the addressee you must not copy,
distribute, disclose or use any of the information in it. If you have
received it in error please delete it and immediately notify the sender.
Security Notice: all e-mail, sent to or from this address, may be
accessed by someone other than the recipient, for system management and
security reasons. This access is controlled under Regulation of
Investigatory Powers Act 2000, Lawful Business Practises.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to