LOL -- There is nothing, as well, wrong with Leandro's decision to use

   <html>
       <form method='get' action='test.html'>
         <input type='hidden' name='poo' value='oop'>
           <input type='submit' name='method' value='add'>
           <input type='submit' name='method' value='delete'>
       </form>
   </html>


versus

   <html>
       <form method='get' action='test.html'>
         <input type='hidden' name='poo' value='oop'>
           <input type='submit' name='add.x' value='add'>
           <input type='submit' name='delete.x' value='delete'>
       </form>
   </html>


to the same end. The only reason I suggest it my way with submits, which I don't use anyway, is that it gives the same logic for image and submit buttons. Actually, what I do is:



<crackwillow:image button='GUEST.gif' mapBean='host_container' bgClr='ffffff' txtClrCode='banMddlBgClr' font='Eurostile' italic='false' bold='true' size='20' property='guestsOptions'/>

This is a tag which creates an image button as indicated. The actual HTML in this case ends up as:

 <input type="image" name="guestsOptions" 
src="resource.CRACKWILLOW?button=true&file=upper\GUESTS_en_0xFFFFFF_0xFF9933_20_Eurostile.gif">


The weird "src" attribute code is on the Struts wiki too as http://wiki.apache.org/struts/StrutsCatalogEschewUrlForProtocol and is unnecessary. I have recently discovered a way to use images for file uploads and will soon provide an open source solution to the dynamic generation of images for any use whatsoever. The <crackwillow> tag caches images after use. The only thing you have to do with the <crackwillow> tag is to provide the values given to the image button in the "button" attribute in your ApplicationResources.properties file. (The tag is i18n enabled.)



This is a tag which creates an image button as indicated. The actual HTML in this case ends up as:I have recently discovered a way to use images with downloading files, and will soon offer an open source solution generally for the dynamic generation of images



Paul McCulloch wrote:

Doh!

Cheers,

Paul



-----Original Message-----
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 3:23 PM
To: Struts Users Mailing List
Subject: Re: LookupDispatchAction (Newbie)


I just assumed on the wiki that people would extend to submit as follows:


<html>
   <form method='get' action='test.html'>
     <input type='hidden' name='poo' value='oop'>
       <input type='submit' name='add.x' value='add'>
       <input type='submit' name='delete.x' value='delete'>
   </form>
</html>

I will amend the wiki to reflect that possibility. This just mimics the functionality of the <input type='image'> tag.

Michael

Paul McCulloch wrote:



I'm confused. Looking at the wiki (ImageTagUtil class) it

seems that a non


null command will only be returned if there is a request

parameter with name


ending in ".x". My understanding of html is that only <input

type="image"


.../> tags send the x & y coordinates to the server in submission.

What am I missing?

Thanks,

Paul






-----Original Message-----
From: Michael McGrady [mailto:[EMAIL PROTECTED]
Sent: Friday, August 27, 2004 2:54 PM
To: Struts Users Mailing List
Subject: Re: LookupDispatchAction (Newbie)


Paul McCulloch wrote:





Am I right in thinking that your solution works for image



buttons, whereas




the LookupDispatchAction is for text labeled buttons?

Paul





No, my solution works for both, Paul. The code mined is decoupled entirely from the display.

Michael


------------------------------------------------------------


---------


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





*************************************************************


*********


Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this


message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message, and notify us immediately. If you or your employer does not consent to Internet email messages of this kind, please advise us immediately. Opinions, conclusions and other information expressed in this message are not given or endorsed by my Company or employer unless otherwise indicated by an authorised representative independent of this message.


WARNING:
While Axios Systems Ltd takes steps to prevent computer


viruses from being transmitted via electronic mail attachments we cannot guarantee that attachments do not contain computer virus code. You are therefore strongly advised to undertake anti virus checks prior to accessing the attachment to this electronic mail. Axios Systems Ltd grants no warranties regarding performance use or quality of any attachment and undertakes no liability for loss or damage howsoever caused.


*************************************************************


*********


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









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





**********************************************************************
Axios Email Confidentiality Footer
Privileged/Confidential Information may be contained in this message. If you are not 
the addressee indicated in this message (or responsible for delivery of the message to 
such person), you may not copy or deliver this message to anyone. In such case, you 
should destroy this message, and notify us immediately. If you or your employer does 
not consent to Internet email messages of this kind, please advise us immediately. 
Opinions, conclusions and other information expressed in this message are not given or 
endorsed by my Company or employer unless otherwise indicated by an authorised 
representative independent of this message.
WARNING:
While Axios Systems Ltd takes steps to prevent computer viruses from being transmitted 
via electronic mail attachments we cannot guarantee that attachments do not contain 
computer virus code.  You are therefore strongly advised to undertake anti virus 
checks prior to accessing the attachment to this electronic mail.  Axios Systems Ltd 
grants no warranties regarding performance use or quality of any attachment and 
undertakes no liability for loss or damage howsoever caused.
**********************************************************************


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









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



Reply via email to