Re: FW: how to use an images for submit, cancel button etc

2002-02-22 Thread Eddie Bush

nevermind - it's actually exposed through both taglibs.

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 3:39 PM
Subject: Re: FW: how to use an images for submit, cancel button etc


> Shouldn't html:image, then, be included as form:image rather than it's
> current place?
>
> It seems logical to me, but who am I to say.
>
> - Original Message -
> From: "KM" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, February 22, 2002 3:34 PM
> Subject: RE: FW: how to use an images for submit, cancel button etc
>
>
> > Gosh
> >
> > I was reading the details at
> >
> > img - Render an HTML img tag instead of
> >
> > image - Render an input tag of type "image"
> >
> > Thanks JC
> >
> > KM
> >
> >
> > --- "Jakkampudi, ChandraseKhar"
> > <[EMAIL PROTECTED]> wrote:
> > > Look at the TLD file or the documentation to find
> > > out what attributes are
> > > allowed for the html:image.
> > >
> > >
> > http://jakarta.apache.org/struts/struts-html.html#image
> > >
> > > From this, you can see that height and width are not
> > > supported attributes.
> > >
> > > Alternatives:
> > > 1. write your own patch to the tag to do this.
> > > 2. Use stylesheets (??)
> > >
> > > JC
> > >
> > >
> > > -Original Message-
> > > From: KM [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, February 22, 2002 3:21 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: FW: how to use an images for submit,
> > > cancel button etc
> > >
> > >
> > > Strange
> > > I took your suggestion and put both width and heigth
> > > in qoutes, it gave me an error saying
> > >
> > > Attribute height invalid according to the specified
> > > TLD
> > > and
> > > Attribute weight invalid according to the specified
> > > TLD
> > >
> > > So I took out both of them and it works. Wonder why?
> > > I
> > > am using struts 1.01.
> > >
> > > Any ideas?
> > >
> > > KM
> > >
> > >
> > >
> > >
> > > I removed height and width completely and it worked.
> > >
> > >
> > > --- "Jakkampudi, ChandraseKhar"
> > > <[EMAIL PROTECTED]> wrote:
> > > > Try putting your attributes in quotes as the error
> > > > message suggests.
> > > > width="88" height="24" etc
> > > >
> > > > JC
> > > >
> > > > -Original Message-
> > > > From: KM [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, February 22, 2002 3:06 PM
> > > > To: Struts Users Mailing List
> > > > Subject: Re: FW: how to use an images for submit,
> > > > cancel button etc
> > > >
> > > >
> > > > Ok here is the chronology
> > > >
> > > > The Code I posted was using buttons for cancel,
> > > > submit, reset , submit etc. I asked for help using
> > > > images instead of buttons. Someone suggested I use
> > > > something like for the cancel button(read image)
> > > >
> > > >  > > >  width=88 height=24 border=0 alt="Cancel"
> > > > name="Cancel"
> > > > property="org.apache.struts.taglib.html.CANCEL
> > > />
> > > >
> > > > I did this and I get the error below
> > > >
> > > > org.apache.jasper.compiler.ParseException:
> > > > /subscription.jsp(192,11) Attribute value should
> > > be
> > > > quoted
> > > >
> > > > Now this is where a guru suggested to use
> > > javascript
> > > > etc. So the issue of using image as a button is
> > > > still
> > > > there. The image is not getting displayed at all
> > > if
> > > > I
> > > > use the above code snippet.
> > > >
> > > > Any suggestions?
> > > >
> > > > KM
> > > >
> > > > --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > > > > Hmm.
> > > > >
> > > > > I'm actually a bit confu

Re: FW: how to use an images for submit, cancel button etc

2002-02-22 Thread Eddie Bush

Shouldn't html:image, then, be included as form:image rather than it's
current place?

It seems logical to me, but who am I to say.

- Original Message -
From: "KM" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, February 22, 2002 3:34 PM
Subject: RE: FW: how to use an images for submit, cancel button etc


> Gosh
>
> I was reading the details at
>
> img - Render an HTML img tag instead of
>
> image - Render an input tag of type "image"
>
> Thanks JC
>
> KM
>
>
> --- "Jakkampudi, ChandraseKhar"
> <[EMAIL PROTECTED]> wrote:
> > Look at the TLD file or the documentation to find
> > out what attributes are
> > allowed for the html:image.
> >
> >
> http://jakarta.apache.org/struts/struts-html.html#image
> >
> > From this, you can see that height and width are not
> > supported attributes.
> >
> > Alternatives:
> > 1. write your own patch to the tag to do this.
> > 2. Use stylesheets (??)
> >
> > JC
> >
> >
> > -----Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 3:21 PM
> > To: Struts Users Mailing List
> > Subject: RE: FW: how to use an images for submit,
> > cancel button etc
> >
> >
> > Strange
> > I took your suggestion and put both width and heigth
> > in qoutes, it gave me an error saying
> >
> > Attribute height invalid according to the specified
> > TLD
> > and
> > Attribute weight invalid according to the specified
> > TLD
> >
> > So I took out both of them and it works. Wonder why?
> > I
> > am using struts 1.01.
> >
> > Any ideas?
> >
> > KM
> >
> >
> >
> >
> > I removed height and width completely and it worked.
> >
> >
> > --- "Jakkampudi, ChandraseKhar"
> > <[EMAIL PROTECTED]> wrote:
> > > Try putting your attributes in quotes as the error
> > > message suggests.
> > > width="88" height="24" etc
> > >
> > > JC
> > >
> > > -Original Message-
> > > From: KM [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, February 22, 2002 3:06 PM
> > > To: Struts Users Mailing List
> > > Subject: Re: FW: how to use an images for submit,
> > > cancel button etc
> > >
> > >
> > > Ok here is the chronology
> > >
> > > The Code I posted was using buttons for cancel,
> > > submit, reset , submit etc. I asked for help using
> > > images instead of buttons. Someone suggested I use
> > > something like for the cancel button(read image)
> > >
> > >  > >  width=88 height=24 border=0 alt="Cancel"
> > > name="Cancel"
> > > property="org.apache.struts.taglib.html.CANCEL
> > />
> > >
> > > I did this and I get the error below
> > >
> > > org.apache.jasper.compiler.ParseException:
> > > /subscription.jsp(192,11) Attribute value should
> > be
> > > quoted
> > >
> > > Now this is where a guru suggested to use
> > javascript
> > > etc. So the issue of using image as a button is
> > > still
> > > there. The image is not getting displayed at all
> > if
> > > I
> > > use the above code snippet.
> > >
> > > Any suggestions?
> > >
> > > KM
> > >
> > > --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > > > Hmm.
> > > >
> > > > I'm actually a bit confused. I don't see any
> > > >  tags in the code
> > > > snippet you provided, conly  and
> > > > , which are
> > > > buttons.
> > > >
> > > > Can you send a bit more of the JSP?
> > > >
> > > > As far as the image submitting the form, I don't
> > > > know of any other way
> > > > without using JavaScript (not that it doesn't
> > > exist,
> > > > I'm just not aware of
> > > > it)
> > > >
> > > > John Mattos
> > > > Sr. Developer and Architect
> > > > iNDEMAND
> > > > 345 Hudson St. 16th Floor
> > > > New York, New York
> > > > 10014
> > > >
> > > > -Original Message-
> > > > From: KM [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, Febru

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread KM

Thanks for all the help guys


KM
--- "Pierce, Britt" <[EMAIL PROTECTED]> wrote:
> If you look into the code, an 'image' button
> inherits from the 'submit'
> button.  Therefore, an  tag
> submits the form to the
> server.  
> 
> Not sure how the code below works though...It's not
> how I would do these
> buttons...Not that I'm any less of a newbie to this
> then anybody else on
> this list...
> 
> Again, please read this, it explains how to use
> image buttons:
> 
>
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15597.html
> 
> 
> 
> 
> -Original Message-
> From: Mattos, John [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 2:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: FW: how to use an images for submit, cancel
> button etc 
> 
> 
> Hmm.
> 
> I'm actually a bit confused. I don't see any
>  tags in the code
> snippet you provided, conly  and
> , which are
> buttons.
> 
> Can you send a bit more of the JSP?
> 
> As far as the image submitting the form, I don't
> know of any other way
> without using JavaScript (not that it doesn't exist,
> I'm just not aware of
> it)
> 
> John Mattos
> Sr. Developer and Architect
> iNDEMAND
> 345 Hudson St. 16th Floor
> New York, New York
> 10014
> 
> -Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:33 PM
> To: [EMAIL PROTECTED]
> Subject: RE: how to use an images for submit, cancel
> button etc 
> 
> 
> Thanks for the tip Mattos, However javascript is not
> something the end client likes in this case, so
> trying
> to minimise using javascript. Any clue as to why the
> code I posted is not working?
> 
> Thanks for your time
> 
> KM
> --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > Could you do the following...
> > 
> > 
> >  > src="../images/onion.gif"
> > border="0"/>
> > 
> >  > src="../images/onionCancel.gif"
> > border="0"/>
> > 
> >  > src="../images/onionReset.gif" border="0"/>
> > 
> > 
> > 
> > Reset and submit work fine, but you need to
> > implement the cancel to do
> > whatever you need it to do.
> > 
> > Is that overly simplistic?
> > 
> > John Mattos
> > Sr. Developer and Architect
> > iNDEMAND
> > 345 Hudson St. 16th Floor
> > New York, New York
> > 10014
> > 
> > -Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 10:27 AM
> > To: Struts Users Mailing List
> > Subject: how to use an images for submit, cancel
> > button etc 
> > 
> > 
> > Hi
> > 
> > I am trying to develop a page where the user has
> to
> > select options from a drop down box and either
> > clicks
> > submit or cancel. The submit and cancel options
> are
> > images instead of a button
> > 
> > Following is my code
> > 
> > 
> > 
> > 
> >> property="action"
> >   scope="request" value="Create">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Delete">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Edit">
> > 
> >   
> > 
> >   
> > 
> > 
> >> property="action"
> >  scope="request"
> value="Delete">
> > 
> >   
> > 
> >   
> >    
> >   
> > 
> >   
> > 
> >   
> > 
> > here instead of the save, reset, cancel buttons I
> > would like to user save.gif, reset.gif, cancel.gif
> > etc
> > .How to set up struts to use this.. 
> > 
> > Any tips on how to do this is appreciated
> > 
> > KM
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> 
=== message truncated ===


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




RE: FW: how to use an images for submit, cancel button etc

2002-02-22 Thread KM

Gosh

I was reading the details at

img - Render an HTML img tag instead of

image - Render an input tag of type "image" 

Thanks JC

KM


--- "Jakkampudi, ChandraseKhar"
<[EMAIL PROTECTED]> wrote:
> Look at the TLD file or the documentation to find
> out what attributes are
> allowed for the html:image.
> 
>
http://jakarta.apache.org/struts/struts-html.html#image
> 
> From this, you can see that height and width are not
> supported attributes. 
> 
> Alternatives:
> 1. write your own patch to the tag to do this.
> 2. Use stylesheets (??)
> 
> JC
> 
> 
> -Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:21 PM
> To: Struts Users Mailing List
> Subject: RE: FW: how to use an images for submit,
> cancel button etc 
> 
> 
> Strange
> I took your suggestion and put both width and heigth
> in qoutes, it gave me an error saying
> 
> Attribute height invalid according to the specified
> TLD
> and
> Attribute weight invalid according to the specified
> TLD
> 
> So I took out both of them and it works. Wonder why?
> I
> am using struts 1.01.
> 
> Any ideas?
> 
> KM
> 
> 
> 
> 
> I removed height and width completely and it worked.
> 
> 
> --- "Jakkampudi, ChandraseKhar"
> <[EMAIL PROTECTED]> wrote:
> > Try putting your attributes in quotes as the error
> > message suggests.
> > width="88" height="24" etc
> > 
> > JC
> > 
> > -Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 3:06 PM
> > To: Struts Users Mailing List
> > Subject: Re: FW: how to use an images for submit,
> > cancel button etc 
> > 
> > 
> > Ok here is the chronology
> > 
> > The Code I posted was using buttons for cancel,
> > submit, reset , submit etc. I asked for help using
> > images instead of buttons. Someone suggested I use
> > something like for the cancel button(read image)
> > 
> >  >  width=88 height=24 border=0 alt="Cancel"
> > name="Cancel" 
> >  property="org.apache.struts.taglib.html.CANCEL
> />
> > 
> > I did this and I get the error below
> > 
> > org.apache.jasper.compiler.ParseException:
> > /subscription.jsp(192,11) Attribute value should
> be
> > quoted
> > 
> > Now this is where a guru suggested to use
> javascript
> > etc. So the issue of using image as a button is
> > still
> > there. The image is not getting displayed at all
> if
> > I
> > use the above code snippet.
> > 
> > Any suggestions?
> > 
> > KM
> > 
> > --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > > Hmm.
> > > 
> > > I'm actually a bit confused. I don't see any
> > >  tags in the code
> > > snippet you provided, conly  and
> > > , which are
> > > buttons.
> > > 
> > > Can you send a bit more of the JSP?
> > > 
> > > As far as the image submitting the form, I don't
> > > know of any other way
> > > without using JavaScript (not that it doesn't
> > exist,
> > > I'm just not aware of
> > > it)
> > > 
> > > John Mattos
> > > Sr. Developer and Architect
> > > iNDEMAND
> > > 345 Hudson St. 16th Floor
> > > New York, New York
> > > 10014
> > > 
> > > -Original Message-
> > > From: KM [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, February 22, 2002 3:33 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: RE: how to use an images for submit,
> > cancel
> > > button etc 
> > > 
> > > 
> > > Thanks for the tip Mattos, However javascript is
> > not
> > > something the end client likes in this case, so
> > > trying
> > > to minimise using javascript. Any clue as to why
> > the
> > > code I posted is not working?
> > > 
> > > Thanks for your time
> > > 
> > > KM
> > > --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > > > Could you do the following...
> > > > 
> > > > 
> > > >  > > > src="../images/onion.gif"
> > > > border="0"/>
> > > > 
> > > >  > > > src="../images/onionCancel.gif"
> > > > border="0"/>
> > > > 
> > > >  > &

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Pierce, Britt

If you look into the code, an 'image' button inherits from the 'submit'
button.  Therefore, an  tag submits the form to the
server.  

Not sure how the code below works though...It's not how I would do these
buttons...Not that I'm any less of a newbie to this then anybody else on
this list...

Again, please read this, it explains how to use image buttons:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15597.html




-Original Message-
From: Mattos, John [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 2:58 PM
To: '[EMAIL PROTECTED]'
Subject: FW: how to use an images for submit, cancel button etc 


Hmm.

I'm actually a bit confused. I don't see any  tags in the code
snippet you provided, conly  and , which are
buttons.

Can you send a bit more of the JSP?

As far as the image submitting the form, I don't know of any other way
without using JavaScript (not that it doesn't exist, I'm just not aware of
it)

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014

-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:33 PM
To: [EMAIL PROTECTED]
Subject: RE: how to use an images for submit, cancel button etc 


Thanks for the tip Mattos, However javascript is not
something the end client likes in this case, so trying
to minimise using javascript. Any clue as to why the
code I posted is not working?

Thanks for your time

KM
--- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> Could you do the following...
> 
> 
>  src="../images/onion.gif"
> border="0"/>
> 
>  src="../images/onionCancel.gif"
> border="0"/>
> 
>  src="../images/onionReset.gif" border="0"/>
> 
> 
> 
> Reset and submit work fine, but you need to
> implement the cancel to do
> whatever you need it to do.
> 
> Is that overly simplistic?
> 
> John Mattos
> Sr. Developer and Architect
> iNDEMAND
> 345 Hudson St. 16th Floor
> New York, New York
> 10014
> 
> -Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 10:27 AM
> To: Struts Users Mailing List
> Subject: how to use an images for submit, cancel
> button etc 
> 
> 
> Hi
> 
> I am trying to develop a page where the user has to
> select options from a drop down box and either
> clicks
> submit or cancel. The submit and cancel options are
> images instead of a button
> 
> Following is my code
> 
> 
> 
> 
>property="action"
>   scope="request" value="Create">
> 
>   
> 
>   
>property="action"
>   scope="request" value="Delete">
> 
>   
> 
>   
>property="action"
>   scope="request" value="Edit">
> 
>   
> 
>   
> 
> 
>property="action"
>  scope="request" value="Delete">
> 
>   
> 
>   
>    
>   
> 
>   
> 
>   
> 
> here instead of the save, reset, cancel buttons I
> would like to user save.gif, reset.gif, cancel.gif
> etc
> .How to set up struts to use this.. 
> 
> Any tips on how to do this is appreciated
> 
> KM
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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

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




RE: FW: how to use an images for submit, cancel button etc

2002-02-22 Thread Jakkampudi, ChandraseKhar

Look at the TLD file or the documentation to find out what attributes are
allowed for the html:image.

http://jakarta.apache.org/struts/struts-html.html#image

>From this, you can see that height and width are not supported attributes. 

Alternatives:
1. write your own patch to the tag to do this.
2. Use stylesheets (??)

JC


-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:21 PM
To: Struts Users Mailing List
Subject: RE: FW: how to use an images for submit, cancel button etc 


Strange
I took your suggestion and put both width and heigth
in qoutes, it gave me an error saying

Attribute height invalid according to the specified
TLD
and
Attribute weight invalid according to the specified
TLD

So I took out both of them and it works. Wonder why? I
am using struts 1.01.

Any ideas?

KM




I removed height and width completely and it worked.


--- "Jakkampudi, ChandraseKhar"
<[EMAIL PROTECTED]> wrote:
> Try putting your attributes in quotes as the error
> message suggests.
> width="88" height="24" etc
> 
> JC
> 
> -Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: Re: FW: how to use an images for submit,
> cancel button etc 
> 
> 
> Ok here is the chronology
> 
> The Code I posted was using buttons for cancel,
> submit, reset , submit etc. I asked for help using
> images instead of buttons. Someone suggested I use
> something like for the cancel button(read image)
> 
>   width=88 height=24 border=0 alt="Cancel"
> name="Cancel" 
>property="org.apache.struts.taglib.html.CANCEL />
> 
> I did this and I get the error below  
> 
> org.apache.jasper.compiler.ParseException:
> /subscription.jsp(192,11) Attribute value should be
> quoted
> 
> Now this is where a guru suggested to use javascript
> etc. So the issue of using image as a button is
> still
> there. The image is not getting displayed at all if
> I
> use the above code snippet.
> 
> Any suggestions?
> 
> KM
> 
> --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > Hmm.
> > 
> > I'm actually a bit confused. I don't see any
> >  tags in the code
> > snippet you provided, conly  and
> > , which are
> > buttons.
> > 
> > Can you send a bit more of the JSP?
> > 
> > As far as the image submitting the form, I don't
> > know of any other way
> > without using JavaScript (not that it doesn't
> exist,
> > I'm just not aware of
> > it)
> > 
> > John Mattos
> > Sr. Developer and Architect
> > iNDEMAND
> > 345 Hudson St. 16th Floor
> > New York, New York
> > 10014
> > 
> > -Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 3:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: how to use an images for submit,
> cancel
> > button etc 
> > 
> > 
> > Thanks for the tip Mattos, However javascript is
> not
> > something the end client likes in this case, so
> > trying
> > to minimise using javascript. Any clue as to why
> the
> > code I posted is not working?
> > 
> > Thanks for your time
> > 
> > KM
> > --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > > Could you do the following...
> > > 
> > > 
> > >  > > src="../images/onion.gif"
> > > border="0"/>
> > > 
> > >  > > src="../images/onionCancel.gif"
> > > border="0"/>
> > > 
> > >  > > src="../images/onionReset.gif" border="0"/>
> > > 
> > > 
> > > 
> > > Reset and submit work fine, but you need to
> > > implement the cancel to do
> > > whatever you need it to do.
> > > 
> > > Is that overly simplistic?
> > > 
> > > John Mattos
> > > Sr. Developer and Architect
> > > iNDEMAND
> > > 345 Hudson St. 16th Floor
> > > New York, New York
> > > 10014
> > > 
> > > -Original Message-
> > > From: KM [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, February 22, 2002 10:27 AM
> > > To: Struts Users Mailing List
> > > Subject: how to use an images for submit, cancel
> > > button etc 
> > > 
> > > 
> > > Hi
> > > 
> > > I am trying to develop a page where the user has
> > to
> > > select options fr

Re: how to use an images for submit, cancel button etc

2002-02-22 Thread Jim Crossley

I don't think you need the onclick events for  tags.  I
*think* they're all going to submit your form anyway.  So in your
action, you'll need to look at the request to see which button the
user pressed.  Image inputs are tricky though, because instead of just
their name (or value, I can't remember which), you get the X/Y
coordinate of the mouse click.  So your snippet becomes:







And your action class will have stuff like this:

  if (request.getParameter("submit.x") != null) {
  ... do submit stuff ...
  }
  if (request.getParameter("cancel.x") != null) {
  ... do cancel stuff ...
  }

Because "reset" is a client-side function, you still need the
javascript for that.  Of course, you could just as easily do it in the
action, but it wouldn't be a "true" html reset because of the server
hit. 

-- Jim

KM <[EMAIL PROTECTED]> writes:

> Thanks for the tip Mattos, However javascript is not
> something the end client likes in this case, so trying
> to minimise using javascript. Any clue as to why the
> code I posted is not working?
> 
> Thanks for your time
> 
> KM
> --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > Could you do the following...
> > 
> > 
> >  > src="../images/onion.gif"
> > border="0"/>
> > 
> >  > src="../images/onionCancel.gif"
> > border="0"/>
> > 
> >  > src="../images/onionReset.gif" border="0"/>
> > 
> > 
> > 
> > Reset and submit work fine, but you need to
> > implement the cancel to do
> > whatever you need it to do.
> > 
> > Is that overly simplistic?
> > 
> > John Mattos
> > Sr. Developer and Architect
> > iNDEMAND
> > 345 Hudson St. 16th Floor
> > New York, New York
> > 10014
> > 
> > -Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 10:27 AM
> > To: Struts Users Mailing List
> > Subject: how to use an images for submit, cancel
> > button etc 
> > 
> > 
> > Hi
> > 
> > I am trying to develop a page where the user has to
> > select options from a drop down box and either
> > clicks
> > submit or cancel. The submit and cancel options are
> > images instead of a button
> > 
> > Following is my code
> > 
> > 
> > 
> > 
> >> property="action"
> >   scope="request" value="Create">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Delete">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Edit">
> > 
> >   
> > 
> >   
> > 
> > 
> >> property="action"
> >  scope="request" value="Delete">
> > 
> >   
> > 
> >   
> >    
> >   
> > 
> >   
> > 
> >   
> > 
> > here instead of the save, reset, cancel buttons I
> > would like to user save.gif, reset.gif, cancel.gif
> > etc
> > .How to set up struts to use this.. 
> > 
> > Any tips on how to do this is appreciated
> > 
> > KM
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:  
> > <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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




RE: FW: how to use an images for submit, cancel button etc

2002-02-22 Thread KM

Strange
I took your suggestion and put both width and heigth
in qoutes, it gave me an error saying

Attribute height invalid according to the specified
TLD
and
Attribute weight invalid according to the specified
TLD

So I took out both of them and it works. Wonder why? I
am using struts 1.01.

Any ideas?

KM




I removed height and width completely and it worked.


--- "Jakkampudi, ChandraseKhar"
<[EMAIL PROTECTED]> wrote:
> Try putting your attributes in quotes as the error
> message suggests.
> width="88" height="24" etc
> 
> JC
> 
> -Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:06 PM
> To: Struts Users Mailing List
> Subject: Re: FW: how to use an images for submit,
> cancel button etc 
> 
> 
> Ok here is the chronology
> 
> The Code I posted was using buttons for cancel,
> submit, reset , submit etc. I asked for help using
> images instead of buttons. Someone suggested I use
> something like for the cancel button(read image)
> 
>   width=88 height=24 border=0 alt="Cancel"
> name="Cancel" 
>property="org.apache.struts.taglib.html.CANCEL />
> 
> I did this and I get the error below  
> 
> org.apache.jasper.compiler.ParseException:
> /subscription.jsp(192,11) Attribute value should be
> quoted
> 
> Now this is where a guru suggested to use javascript
> etc. So the issue of using image as a button is
> still
> there. The image is not getting displayed at all if
> I
> use the above code snippet.
> 
> Any suggestions?
> 
> KM
> 
> --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > Hmm.
> > 
> > I'm actually a bit confused. I don't see any
> >  tags in the code
> > snippet you provided, conly  and
> > , which are
> > buttons.
> > 
> > Can you send a bit more of the JSP?
> > 
> > As far as the image submitting the form, I don't
> > know of any other way
> > without using JavaScript (not that it doesn't
> exist,
> > I'm just not aware of
> > it)
> > 
> > John Mattos
> > Sr. Developer and Architect
> > iNDEMAND
> > 345 Hudson St. 16th Floor
> > New York, New York
> > 10014
> > 
> > -Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 3:33 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: how to use an images for submit,
> cancel
> > button etc 
> > 
> > 
> > Thanks for the tip Mattos, However javascript is
> not
> > something the end client likes in this case, so
> > trying
> > to minimise using javascript. Any clue as to why
> the
> > code I posted is not working?
> > 
> > Thanks for your time
> > 
> > KM
> > --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > > Could you do the following...
> > > 
> > > 
> > >  > > src="../images/onion.gif"
> > > border="0"/>
> > > 
> > >  > > src="../images/onionCancel.gif"
> > > border="0"/>
> > > 
> > >  > > src="../images/onionReset.gif" border="0"/>
> > > 
> > > 
> > > 
> > > Reset and submit work fine, but you need to
> > > implement the cancel to do
> > > whatever you need it to do.
> > > 
> > > Is that overly simplistic?
> > > 
> > > John Mattos
> > > Sr. Developer and Architect
> > > iNDEMAND
> > > 345 Hudson St. 16th Floor
> > > New York, New York
> > > 10014
> > > 
> > > -Original Message-
> > > From: KM [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, February 22, 2002 10:27 AM
> > > To: Struts Users Mailing List
> > > Subject: how to use an images for submit, cancel
> > > button etc 
> > > 
> > > 
> > > Hi
> > > 
> > > I am trying to develop a page where the user has
> > to
> > > select options from a drop down box and either
> > > clicks
> > > submit or cancel. The submit and cancel options
> > are
> > > images instead of a button
> > > 
> > > Following is my code
> > > 
> > > 
> > > 
> > > 
> > >> > property="action"
> > >   scope="request"
> value="Create">
> > > 
> > >   
> > > 
> > > 

RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Pierce, Britt

Read this:

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15597.html

-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:00 PM
To: [EMAIL PROTECTED]
Subject: RE: how to use an images for submit, cancel button etc 


Any more suggestions, anybody who used an image as a
button with an action defined? God why do the clients
need an image for a button? 

KM




   "Mattos, John"  wrote: Could you do the
following...border="0"/>border="0"/>src="../images/onionReset.gif"
border="0"/>Reset and submit work fine, but you need
to implement the cancel to dowhatever you need it to
do.Is that overly simplistic?John MattosSr. Developer
and ArchitectiNDEMAND345 Hudson St. 16th FloorNew
York, New York10014-Original Message-From: KM
[mailto:[EMAIL PROTECTED]]Sent: Friday, February 22,
2002 10:27 AMTo: Struts Users Mailing ListSubject: how
to use an images for submit, cancel button etc HiI am
trying to develop a page where the user has toselect
options from a drop down box and either clickssubmit
or cancel. The submit and cancel options areimages
instead of a buttonFollowing is my
codeproperty="action"scope="request"
value="Create">property="action"scope="request"
value="Delete">property="action"scope="request"
value="Edit">property="action"scope="request"
value="Delete"> here instead of the save, reset,
cancel buttons Iwould like to user save.gif,
reset.gif, cancel.gif etc.How to set up struts to use
this.. Any tips on how to do this is
appreciatedKM__Do
You Yahoo!?Yahoo! Sports - Coverage of the 2002
Olympic Gameshttp://sports.yahoo.com--To unsubscribe,
e-mail:For additional commands, e-mail:--To
unsubscribe, e-mail: For additional commands, e-mail: 

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




RE: FW: how to use an images for submit, cancel button etc

2002-02-22 Thread Jakkampudi, ChandraseKhar

Try putting your attributes in quotes as the error message suggests.
width="88" height="24" etc

JC

-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:06 PM
To: Struts Users Mailing List
Subject: Re: FW: how to use an images for submit, cancel button etc 


Ok here is the chronology

The Code I posted was using buttons for cancel,
submit, reset , submit etc. I asked for help using
images instead of buttons. Someone suggested I use
something like for the cancel button(read image)

 wrote:
> Hmm.
> 
> I'm actually a bit confused. I don't see any
>  tags in the code
> snippet you provided, conly  and
> , which are
> buttons.
> 
> Can you send a bit more of the JSP?
> 
> As far as the image submitting the form, I don't
> know of any other way
> without using JavaScript (not that it doesn't exist,
> I'm just not aware of
> it)
> 
> John Mattos
> Sr. Developer and Architect
> iNDEMAND
> 345 Hudson St. 16th Floor
> New York, New York
> 10014
> 
> -Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:33 PM
> To: [EMAIL PROTECTED]
> Subject: RE: how to use an images for submit, cancel
> button etc 
> 
> 
> Thanks for the tip Mattos, However javascript is not
> something the end client likes in this case, so
> trying
> to minimise using javascript. Any clue as to why the
> code I posted is not working?
> 
> Thanks for your time
> 
> KM
> --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > Could you do the following...
> > 
> > 
> >  > src="../images/onion.gif"
> > border="0"/>
> > 
> >  > src="../images/onionCancel.gif"
> > border="0"/>
> > 
> >  > src="../images/onionReset.gif" border="0"/>
> > 
> > 
> > 
> > Reset and submit work fine, but you need to
> > implement the cancel to do
> > whatever you need it to do.
> > 
> > Is that overly simplistic?
> > 
> > John Mattos
> > Sr. Developer and Architect
> > iNDEMAND
> > 345 Hudson St. 16th Floor
> > New York, New York
> > 10014
> > 
> > -Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 10:27 AM
> > To: Struts Users Mailing List
> > Subject: how to use an images for submit, cancel
> > button etc 
> > 
> > 
> > Hi
> > 
> > I am trying to develop a page where the user has
> to
> > select options from a drop down box and either
> > clicks
> > submit or cancel. The submit and cancel options
> are
> > images instead of a button
> > 
> > Following is my code
> > 
> > 
> > 
> > 
> >> property="action"
> >   scope="request" value="Create">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Delete">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Edit">
> > 
> >   
> > 
> >   
> > 
> > 
> >> property="action"
> >  scope="request"
> value="Delete">
> > 
> >   
> > 
> >   
> >    
> >   
> > 
> >   
> > 
> >   
> > 
> > here instead of the save, reset, cancel buttons I
> > would like to user save.gif, reset.gif, cancel.gif
> > etc
> > .How to set up struts to use this.. 
> > 
> > Any tips on how to do this is appreciated
> > 
> > KM
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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

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




Re: FW: how to use an images for submit, cancel button etc

2002-02-22 Thread KM

Ok here is the chronology

The Code I posted was using buttons for cancel,
submit, reset , submit etc. I asked for help using
images instead of buttons. Someone suggested I use
something like for the cancel button(read image)

 wrote:
> Hmm.
> 
> I'm actually a bit confused. I don't see any
>  tags in the code
> snippet you provided, conly  and
> , which are
> buttons.
> 
> Can you send a bit more of the JSP?
> 
> As far as the image submitting the form, I don't
> know of any other way
> without using JavaScript (not that it doesn't exist,
> I'm just not aware of
> it)
> 
> John Mattos
> Sr. Developer and Architect
> iNDEMAND
> 345 Hudson St. 16th Floor
> New York, New York
> 10014
> 
> -Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 3:33 PM
> To: [EMAIL PROTECTED]
> Subject: RE: how to use an images for submit, cancel
> button etc 
> 
> 
> Thanks for the tip Mattos, However javascript is not
> something the end client likes in this case, so
> trying
> to minimise using javascript. Any clue as to why the
> code I posted is not working?
> 
> Thanks for your time
> 
> KM
> --- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> > Could you do the following...
> > 
> > 
> >  > src="../images/onion.gif"
> > border="0"/>
> > 
> >  > src="../images/onionCancel.gif"
> > border="0"/>
> > 
> >  > src="../images/onionReset.gif" border="0"/>
> > 
> > 
> > 
> > Reset and submit work fine, but you need to
> > implement the cancel to do
> > whatever you need it to do.
> > 
> > Is that overly simplistic?
> > 
> > John Mattos
> > Sr. Developer and Architect
> > iNDEMAND
> > 345 Hudson St. 16th Floor
> > New York, New York
> > 10014
> > 
> > -Original Message-
> > From: KM [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 22, 2002 10:27 AM
> > To: Struts Users Mailing List
> > Subject: how to use an images for submit, cancel
> > button etc 
> > 
> > 
> > Hi
> > 
> > I am trying to develop a page where the user has
> to
> > select options from a drop down box and either
> > clicks
> > submit or cancel. The submit and cancel options
> are
> > images instead of a button
> > 
> > Following is my code
> > 
> > 
> > 
> > 
> >> property="action"
> >   scope="request" value="Create">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Delete">
> > 
> >   
> > 
> >   
> >> property="action"
> >   scope="request" value="Edit">
> > 
> >   
> > 
> >   
> > 
> > 
> >> property="action"
> >  scope="request"
> value="Delete">
> > 
> >   
> > 
> >   
> >    
> >   
> > 
> >   
> > 
> >   
> > 
> > here instead of the save, reset, cancel buttons I
> > would like to user save.gif, reset.gif, cancel.gif
> > etc
> > .How to set up struts to use this.. 
> > 
> > Any tips on how to do this is appreciated
> > 
> > KM
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - Coverage of the 2002 Olympic Games
> > http://sports.yahoo.com
> > 
> > --
> > To unsubscribe, e-mail:
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> > --
> > To unsubscribe, e-mail:  
> >
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Galbreath, Mark

Using images as buttons is quite common. You can do this easily with
java.awt.* or javax.swing.*.  You can even do it in HTML, but you won't get
the button "push" effect without JavaScript and alternate images.

Explain exactly what the requirement is.

Mark 

-Original Message-
From: KM
To: [EMAIL PROTECTED]
Sent: 2/22/02 3:59 PM
Subject: RE: how to use an images  for submit, cancel button etc

Any more suggestions, anybody who used an image as a
button with an action defined? God why do the clients
need an image for a button? 

KM




   "Mattos, John"  wrote: Could you do the
following...border="0"/>border="0"/>src="../images/onionReset.gif"
border="0"/>Reset and submit work fine, but you need
to implement the cancel to dowhatever you need it to
do.Is that overly simplistic?John MattosSr. Developer
and ArchitectiNDEMAND345 Hudson St. 16th FloorNew
York, New York10014-Original Message-From: KM
[mailto:[EMAIL PROTECTED]]Sent: Friday, February 22,
2002 10:27 AMTo: Struts Users Mailing ListSubject: how
to use an images for submit, cancel button etc HiI am
trying to develop a page where the user has toselect
options from a drop down box and either clickssubmit
or cancel. The submit and cancel options areimages
instead of a buttonFollowing is my
codeproperty="action"scope="request"
value="Create">property="action"scope="request"
value="Delete">property="action"scope="request"
value="Edit">property="action"scope="request"
value="Delete"> here instead of the save, reset,
cancel buttons Iwould like to user save.gif,
reset.gif, cancel.gif etc.How to set up struts to use
this.. Any tips on how to do this is
appreciatedKM__Do
You Yahoo!?Yahoo! Sports - Coverage of the 2002
Olympic Gameshttp://sports.yahoo.com--To unsubscribe,
e-mail:For additional commands, e-mail:--To
unsubscribe, e-mail: For additional commands, e-mail: 

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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

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




RE: how to use an images for submit, cancel button etc

2002-02-22 Thread KM

Any more suggestions, anybody who used an image as a
button with an action defined? God why do the clients
need an image for a button? 

KM




   "Mattos, John"  wrote: Could you do the
following...border="0"/>border="0"/>src="../images/onionReset.gif"
border="0"/>Reset and submit work fine, but you need
to implement the cancel to dowhatever you need it to
do.Is that overly simplistic?John MattosSr. Developer
and ArchitectiNDEMAND345 Hudson St. 16th FloorNew
York, New York10014-Original Message-From: KM
[mailto:[EMAIL PROTECTED]]Sent: Friday, February 22,
2002 10:27 AMTo: Struts Users Mailing ListSubject: how
to use an images for submit, cancel button etc HiI am
trying to develop a page where the user has toselect
options from a drop down box and either clickssubmit
or cancel. The submit and cancel options areimages
instead of a buttonFollowing is my
codeproperty="action"scope="request"
value="Create">property="action"scope="request"
value="Delete">property="action"scope="request"
value="Edit">property="action"scope="request"
value="Delete"> here instead of the save, reset,
cancel buttons Iwould like to user save.gif,
reset.gif, cancel.gif etc.How to set up struts to use
this.. Any tips on how to do this is
appreciatedKM__Do
You Yahoo!?Yahoo! Sports - Coverage of the 2002
Olympic Gameshttp://sports.yahoo.com--To unsubscribe,
e-mail:For additional commands, e-mail:--To
unsubscribe, e-mail: For additional commands, e-mail: 

__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




FW: how to use an images for submit, cancel button etc

2002-02-22 Thread Mattos, John

Hmm.

I'm actually a bit confused. I don't see any  tags in the code
snippet you provided, conly  and , which are
buttons.

Can you send a bit more of the JSP?

As far as the image submitting the form, I don't know of any other way
without using JavaScript (not that it doesn't exist, I'm just not aware of
it)

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014

-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 3:33 PM
To: [EMAIL PROTECTED]
Subject: RE: how to use an images for submit, cancel button etc 


Thanks for the tip Mattos, However javascript is not
something the end client likes in this case, so trying
to minimise using javascript. Any clue as to why the
code I posted is not working?

Thanks for your time

KM
--- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> Could you do the following...
> 
> 
>  src="../images/onion.gif"
> border="0"/>
> 
>  src="../images/onionCancel.gif"
> border="0"/>
> 
>  src="../images/onionReset.gif" border="0"/>
> 
> 
> 
> Reset and submit work fine, but you need to
> implement the cancel to do
> whatever you need it to do.
> 
> Is that overly simplistic?
> 
> John Mattos
> Sr. Developer and Architect
> iNDEMAND
> 345 Hudson St. 16th Floor
> New York, New York
> 10014
> 
> -----Original Message-
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 10:27 AM
> To: Struts Users Mailing List
> Subject: how to use an images for submit, cancel
> button etc 
> 
> 
> Hi
> 
> I am trying to develop a page where the user has to
> select options from a drop down box and either
> clicks
> submit or cancel. The submit and cancel options are
> images instead of a button
> 
> Following is my code
> 
> 
> 
> 
>property="action"
>   scope="request" value="Create">
> 
>   
> 
>   
>property="action"
>   scope="request" value="Delete">
> 
>   
> 
>   
>property="action"
>   scope="request" value="Edit">
> 
>   
> 
>   
> 
> 
>property="action"
>  scope="request" value="Delete">
> 
>   
> 
>   
>    
>   
> 
>   
> 
>   
> 
> here instead of the save, reset, cancel buttons I
> would like to user save.gif, reset.gif, cancel.gif
> etc
> .How to set up struts to use this.. 
> 
> Any tips on how to do this is appreciated
> 
> KM
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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

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




RE: how to use an images for submit, cancel button etc

2002-02-22 Thread KM

Thanks for the tip Mattos, However javascript is not
something the end client likes in this case, so trying
to minimise using javascript. Any clue as to why the
code I posted is not working?

Thanks for your time

KM
--- "Mattos, John" <[EMAIL PROTECTED]> wrote:
> Could you do the following...
> 
> 
>  src="../images/onion.gif"
> border="0"/>
> 
>  src="../images/onionCancel.gif"
> border="0"/>
> 
>  src="../images/onionReset.gif" border="0"/>
> 
> 
> 
> Reset and submit work fine, but you need to
> implement the cancel to do
> whatever you need it to do.
> 
> Is that overly simplistic?
> 
> John Mattos
> Sr. Developer and Architect
> iNDEMAND
> 345 Hudson St. 16th Floor
> New York, New York
> 10014
> 
> -Original Message-----
> From: KM [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 22, 2002 10:27 AM
> To: Struts Users Mailing List
> Subject: how to use an images for submit, cancel
> button etc 
> 
> 
> Hi
> 
> I am trying to develop a page where the user has to
> select options from a drop down box and either
> clicks
> submit or cancel. The submit and cancel options are
> images instead of a button
> 
> Following is my code
> 
> 
> 
> 
>property="action"
>   scope="request" value="Create">
> 
>   
> 
>   
>property="action"
>   scope="request" value="Delete">
> 
>   
> 
>   
>property="action"
>   scope="request" value="Edit">
> 
>   
> 
>   
> 
> 
>property="action"
>  scope="request" value="Delete">
> 
>   
> 
>   
>    
>   
> 
>   
> 
>   
> 
> here instead of the save, reset, cancel buttons I
> would like to user save.gif, reset.gif, cancel.gif
> etc
> .How to set up struts to use this.. 
> 
> Any tips on how to do this is appreciated
> 
> KM
> 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Mattos, John

Could you do the following...










Reset and submit work fine, but you need to implement the cancel to do
whatever you need it to do.

Is that overly simplistic?

John Mattos
Sr. Developer and Architect
iNDEMAND
345 Hudson St. 16th Floor
New York, New York
10014

-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 10:27 AM
To: Struts Users Mailing List
Subject: how to use an images for submit, cancel button etc 


Hi

I am trying to develop a page where the user has to
select options from a drop down box and either clicks
submit or cancel. The submit and cancel options are
images instead of a button

Following is my code




  

  

  
  

  

  
  

  

  


  

  

  
   
  

  

  

here instead of the save, reset, cancel buttons I
would like to user save.gif, reset.gif, cancel.gif etc
.How to set up struts to use this.. 

Any tips on how to do this is appreciated

KM



__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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

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




RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Boyalla, Raveendra

Hi


How can I code for onBlur event of a Text tag.


Regards,

Raveendra Boyalla

-Original Message-
From: Todd G. Nist [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 11:13 AM
To: 'Struts Users Mailing List'
Subject: RE: how to use an images for submit, cancel button etc 


You could try something like the below:

for cancel you could do this:



for the others you would need to do something like:




Regards,

Todd G. Nist

-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 10:27 AM
To: Struts Users Mailing List
Subject: how to use an images for submit, cancel button etc


Hi

I am trying to develop a page where the user has to
select options from a drop down box and either clicks
submit or cancel. The submit and cancel options are
images instead of a button

Following is my code




  

  

  
  

  

  
  

  

  


  

  

  
   
  

  

  

here instead of the save, reset, cancel buttons I
would like to user save.gif, reset.gif, cancel.gif etc
.How to set up struts to use this..

Any tips on how to do this is appreciated

KM



__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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


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




RE: how to use an images for submit, cancel button etc

2002-02-22 Thread Todd G. Nist

You could try something like the below:

for cancel you could do this:



for the others you would need to do something like:




Regards,

Todd G. Nist

-Original Message-
From: KM [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 22, 2002 10:27 AM
To: Struts Users Mailing List
Subject: how to use an images for submit, cancel button etc


Hi

I am trying to develop a page where the user has to
select options from a drop down box and either clicks
submit or cancel. The submit and cancel options are
images instead of a button

Following is my code




  

  

  
  

  

  
  

  

  


  

  

  
   
  

  

  

here instead of the save, reset, cancel buttons I
would like to user save.gif, reset.gif, cancel.gif etc
.How to set up struts to use this..

Any tips on how to do this is appreciated

KM



__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




how to use an images for submit, cancel button etc

2002-02-22 Thread KM

Hi

I am trying to develop a page where the user has to
select options from a drop down box and either clicks
submit or cancel. The submit and cancel options are
images instead of a button

Following is my code




  

  

  
  

  

  
  

  

  


  

  

  
   
  

  

  

here instead of the save, reset, cancel buttons I
would like to user save.gif, reset.gif, cancel.gif etc
.How to set up struts to use this.. 

Any tips on how to do this is appreciated

KM



__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: