Since this is an ActionMapping subclass, then 'className' is the attribute used to declare it in the struts config, not 'type'; 'type' refers to the Action class to use.

As written there, of course, 'type' could be taken less literally to mean the class of the ActionMapping.

Unfortunately, the fuzziness of Struts ActionMapping and Action nomenclature (className vs type) leads to this sort of thing once in a while.


On Nov 24, 2004, at 12:12 PM, Dakota Jack wrote:

Hi Frank,

The quote is in the class as follows:

import org.apache.struts.action.ActionMapping;
<quote>
/**
* This class defines a custom action mapping is used when downloading a file
* from the file system. To use it, set the type of an action mapping in
* struts-config.xml to this classname. All the attributes in the config file
* are set with set-property elements. Struts handles populating the instance
* of this class with those values for us and the instance will be passed to
* the Action indicated in the mapping.
*
* @since Struts 1.2.5
* @author <a href="mailto:[EMAIL PROTECTED]">Frank W. Zammetti</a>
*/
public class FileDownloadActionMapping extends ActionMapping {
</quote>


Thanks.  I don't know if the app has been chosen or not.  I am just
looking at it today.

Jack

On Wed, 24 Nov 2004 10:10:11 -0800 (PST), [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
Hi Jack,

Sorry, which quote are you referring to? I have no doubt at all you are correct...

Has this sample app been accepted for inclusion or are you just curious? :)

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com



Dakota Jack said:
Hello, Frank,

I have been looking at the download app you submitted.  Do I
misunderstand or should "type" in the following quote from your java
doc comments be "className"?  Isn't "type" a typo?  ;-)

Jack

--


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be
crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~





--


"You can't wake a person who is pretending to be asleep."

~Native Proverb~

"Each man is good in His sight. It is not necessary for eagles to be crows."

~Hunkesni (Sitting Bull), Hunkpapa Sioux~

---------------------------------------------------------------------
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