Write a taglib or put a getCaptchaPublicKey() method in the 
ActionForm, and use struts taglibs.

> -----Original Message-----
> From: laredotornado [mailto:laredotorn...@gmail.com] 
> Sent: Monday, July 27, 2009 11:51 AM
> To: user@struts.apache.org
> Subject: Cleaner way to create this page?
> 
> 
> Hi,
> 
> I'm using Struts 1.3.  I have this in my JSP page ...
> 
> <%
>       final RoutingEnginePropertiesMgr rePropMgr =
> RoutingEnginePropertiesMgr.getInstance(); 
>       if (rePropMgr.isUseCaptcha()) { 
> %>
>               <script type="text/javascript"
> src="https://api-secure.recaptcha.net/challenge?k=<%=
> rePropMgr.getCaptchaPublicKey() %>"></script>
> <%
>       }   // if 
> %>
> 
> Is there a cleaner way to write this that avoids using scriptlets?
> 
> Thanks for any advice, - Dave
> -- 
> View this message in context: 
> http://www.nabble.com/Cleaner-way-to-create-this-page--tp24683
147p24683147.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 
> 
Notice:  This e-mail message, together with any attachments, contains
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station,
New Jersey, USA 08889), and/or its affiliates (which may be known
outside the United States as Merck Frosst, Merck Sharp & Dohme or
MSD and in Japan, as Banyu - direct contact information for affiliates is
available at http://www.merck.com/contact/contacts.html) that may be
confidential, proprietary copyrighted and/or legally privileged. It is
intended solely for the use of the individual or entity named on this
message. If you are not the intended recipient, and have received this
message in error, please notify us immediately by reply e-mail and
then delete it from your system.


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

Reply via email to