struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ron Grabowski <rongrabow...@yahoo.com>
Subject Re: LookupDispatchAction and html:image
Date Fri, 09 Jul 2004 16:48:37 GMT
--- Darryl Smith <dsmith@nesmi.com> wrote:
> Has anyone got the two to work together?
> 

In my ApplicationResources.properties file, I have entries such as:

 lookupDispatchParameter=action
 button.signin=Sign In
 button.image.signin=/images/standardButtons2/signin.gif

My header.jsp file makes this Javascript function available on every
page:

 function set(f, v) {
  f.<bean:message key="lookupDispatchParameter"/>.value = v;
 }

I include this at the top of each form:

 <input 
 type='hidden' 
 name='<bean:message key="lookupDispatchParameter"/>' value="">

And my buttons look like this:

 <input 
 type='image'
 src='<html-el:rewrite page="${buttonImageSignin}"/>'
 onclick="set(this.form,'<c:out value="${buttonSignin}"/>');"/>






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


Mime
View raw message