As it's write on the book it's an helper class who provide an action to
store the
key user name and password into a file.

An helper class abstract the logic for an action. But as you can read
on manning web site on errata part :

The test doesn't mention that the UserDirectory source code is available in
the download. The following should be added as the second paragraph of page
20:

  "We will also focus only on the Struts source files you need to create.
For example, the UserDirectory class is part of the application's business
logic. The Struts framework interacts with this class, but the UserDirectory
is not part of the Struts layer. (You would need this class whether you used
Struts or not.) If you are interested, the source code for UserDirectory is
provided in the WEB-INF/classes folder of the register application."

--
Alexandre Jaquet
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 05, 2003 2:12 AM
Subject: What is UserDirectory?? (Question about "Struts In Action" by
Husted)


> In Listing 1.2 on page 20 in the book, RegisterAction.java has a line of
source code that reads:
>
> UserDirectory.getInstance().setUser(user,password1);
>
> My question is: What is UserDirectory, and what does that line do?  I
cannot find anything about UserDirectory in any Java API.
>
> Thanks.
>
> __________________________________________________________________
> The NEW Netscape 7.0 browser is now available. Upgrade now!
http://channels.netscape.com/ns/browsers/download.jsp
>
> Get your own FREE, personal Netscape Mail account today at
http://webmail.netscape.com/
>
> ---------------------------------------------------------------------
> 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