You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Darryl Smith <ds...@nesmi.com> on 2004/07/09 17:21:30 UTC
LookupDispatchAction and html:image
Has anyone got the two to work together?
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: LookupDispatchAction and html:image
Posted by Ron Grabowski <ro...@yahoo.com>.
--- Darryl Smith <ds...@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
RE: LookupDispatchAction and html:image
Posted by Robert Taylor <rt...@mulework.com>.
This may help, although its a modification of DispatchAction not LookupDispatchAction
http://issues.apache.org/bugzilla/show_bug.cgi?id=19925
robert
> -----Original Message-----
> From: Darryl Smith [mailto:dsmith@nesmi.com]
> Sent: Friday, July 09, 2004 11:22 AM
> To: Struts Users Mailing List
> Subject: LookupDispatchAction and html:image
>
>
> Has anyone got the two to work together?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org