Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-13 Thread Rick Reumann
Sorry to take so long to get back to you. Thanks for the kind words. For
some reason I missed your email in the stack... comment below...

On Tue, 11 Mar 2003 17:49:34 -0600
Dan Allen [EMAIL PROTECTED] wrote:
 
 html:link action=/setupEmployeeFormAdd Employee/html:link

I wanted to use the html-el tags and for some reason html-el link
doesn't have an action for some reason. Maybe you can post to the list
and ask why? 
  
 The reason I say that is because new users need to grasp the concept
 that the URL is not actually a page but rather a server command,
 which is interpretted by the controller to be an Action followed by
 a View.  Also, it is good to keep any references to the action
 mapping patter out of the View so that if you need to change from
 
 /do/* - *.do

Good point, what should I use with the html-el tag to enable to define
an action though in the html-el:link which is what I'm using for the
lessons (I just call it html:link but it's using the html-el.tld).

Let me know if you have any suggestions.

-- 
Rick Reumann

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-13 Thread Rick Reumann
On Tue, 11 Mar 2003 18:51:10 -0600
Dan Allen [EMAIL PROTECTED] wrote:

 Two more comments:
 
 In the second tutorial, you are preparing the employeeForm using the
 SetUpEmployeeAction.  In doing so, you run
 
 employeeForm.setDepartment(2);
 
 Shouldn't you instead set the default department selection in the
 form reset() method? 

I initially I did have that in the reset method, but then I wanted to
show how you could use a SetUpAction to set up stuff in your bean if you
wanted to. I also was lazy and didn't feel like explaining the reset
method:)... you're right though I should have probably just kept it
there.
 
 In regards to the discussion on using Tokens for the forward mapping
 keys (such as success and continue) you may also want to note
 that doing so allows you to have two tokens point to the same
 definition.  In short
 
 Tokens.SUCCESS_KEY = success;
 
 Tokens.CONTINUE_KEY = success;
 
 So you can really play with the means of your Action class without
 having to bother the Action class.  In short the action class
 shouldn't really care what view is choosen or its meaning, it just
 deals with the general workflow, such as
 
 success
 failure
 continue
 redo

sigh, yea, the more I think about it I actually really should just use
constants there and I'll include your explanation. I'm pissed I didn't
include it from the start.


Thanks for the comments and suggestions. I appreciate it.
 
-- 
Rick Reumann

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-13 Thread Rick Reumann
On Thu, 13 Mar 2003 16:20:39 -0500
Rick Reumann [EMAIL PROTECTED] wrote:

 Maybe you can post to the list
 and ask why? 
 
he he I thought I was replying to a personal e-mail and didn't realize
this went to the list... so I guess since it's now on the list...

Why doesn't the html-el tag have an action attribute? Is there something
that should be used instead?

-- 
Rick Reumann

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-12 Thread Rasputin
* Phil Steitz [EMAIL PROTECTED] [0346 19:46]:
 Mark Zeltser wrote:
 Rick,
 
 Good job, somehow I can't unzip war files, I am getting corrupt zip file
 exception.
 
 Mark.
 
 
 Use jar -xf war file name
 
 War files are jar files, not zips.  Your JDK should include the jar 
 utility in its /bin directory.

Yeah, but jar files are zip files :)

-- 
Dave Mack:  Your stupidity, Allen, is simply not up to par.
Allen Gwinn:Yours is.
Rasputin :: Jack of All Trades - Master of Nuns

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-12 Thread Susan Bradeen
Rick, 

These lessons excellent! Congratulations. I didn't download the .war 
files, but just walked through the lessons ... very informative without 
being too involved. I have a feeling your URL will appear quite a lot on 
this list as a suggested learning resource. 

Susan Bradeen

On 03/11/2003 02:36:38 AM Rick Reumann wrote:

 I created a web site that walks new Struts users step by step
 through the development of three VERY simple web applications in three
 lessons. Each lesson adds a few more features so that they build upon
 each other yet each stands alone such that if you follow the steps in
 any lesson you'll have built a very basic application regardless of
 which lesson you start with.
 
 I created these because there seemed to be lacking some more recent
 walk through Struts tutorials geared toward the very new Struts
 developer. I think real newbies will find them especially useful, but
 then again I could be way wrong:)
 
 I'm considering the site a beta because I'm sure there will be some
 mistakes. If anyone sees something I'm doing in a lesson that is way
 off (or a very bad practice) please let me know. Some of the stuff I
 know could be done in a more best practice way, but for the sake of
 trying to also keep the lessons small and simple some ideas weren't
 included (ie- I didn't use a constants interface for my forward
 definitions).
 
 If anyone wants to contribute, reword, or add anything please let me
 know. The site is there to help others. I got really lazy in a lot of
 places and didn't say much about certain things that I would have liked
 to. Hopefully over time the site will improve.
 
 Struttin' with Struts:
 
 http://www.reumann.net/do/struts/main
 
 --
 Rick
 
 -
 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]



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-12 Thread Vic Cekvenich
One good practice (for everyone) it to use list backed beans or 
collection backed bean.

#1. When you use mutlirow, beans need to iterate (Collection) so your 
design has to have it anyway.
#2. You can more easily change the DAO implementation of the DAO 
interface, if you only use it as a list/collection. If your DAO proves 
not scalable in real production, this is very nice.
#3. You can get SQL data, or XML, or MQ, or CORBA, etc, and just put it 
in the list via your DAO.
#4. You can create a prototype by just hard coding a list when you 
declare it (List l = {Bush, President}, {Collin, General};) , and not 
implement the DAO until later in the project. Or teach Struts, without 
going into model. But if you want to go model later, most DAO's return a 
list/collection. Did that even make sense?

So consider using list/collection based beans. Ex:
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/basicportal/bP/WEB-INF/src/war/org/apache/scaffoldingLib/base
Note that I use iBatis.com DAO, a good and fast SQL based DAO.
2nd, consider moving up lessons on Tiles, Menu, etc. I found success on 
projects when presentation was done up front as a prototype with action 
just doing nothing but returning success to a tile. And the action 
being called from a struts menu.

3rd consider teaching JSTL for tags.

But I repeat, Excellent!

I hope that we get a lot less newbie questions on the list thanks to 
Rick, eveyone, even old hats should take it.

.V

ps: Rick, I will make sure you get a pass to see/hear Ted Husted's live 
presentation via WebCast/Webex this Saturday.

pps: I still think RowSet is best practice, but list/collection is a 
veery, very good practice and should work for most cases.



Rick Reumann wrote:
On Tue, 11 Mar 2003 06:49:54 -0500
Vic Cekvenich [EMAIL PROTECTED] wrote:

Excellent!!!

I will take the tutorial.
I am wondering what are you doing for your Data Base, is it JDBC or 
something else.


Thank you Vic.  

Actually since the lessons are very basic they don't even really touch
the Model layer. They stop with a simple dummy call to service methods
like:
EmployeeDTO insertEmployee( EmployeeDTO employee ) { return employee; }
 
My goal eventually is to build up to some model layer
approaches on Database connectivity etc, but of course would have to run
that stuff by you gurus :) as I'm still very weak in that area myself. 

Tentative lessons I'd like to see:

Lesson IV -
   Tiles
   internationalization
Lesson V -
   Accessing your model layer ( proper use of factories, services, DAOs
etc.)   
   nested tags

It would be cool if someone wanted to create any of the above lessons
following the same pattern of dealing with inserting/updating an
employee. If each lesson follows the same functionality (with just added
components/features) it makes it much easier for a new person to follow.


Struttin' with Struts:

http://www.reumann.net/do/struts/main

 



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


Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Vic Cekvenich
Excellent!!!

I will take the tutorial.
I am wondering what are you doing for your Data Base, is it JDBC or 
something else.

.V

Rick Reumann wrote:
I created a web site that walks new Struts users step by step
through the development of three VERY simple web applications in three
lessons. Each lesson adds a few more features so that they build upon
each other yet each stands alone such that if you follow the steps in
any lesson you'll have built a very basic application regardless of
which lesson you start with.
I created these because there seemed to be lacking some more recent
walk through Struts tutorials geared toward the very new Struts
developer. I think real newbies will find them especially useful, but
then again I could be way wrong:)
I'm considering the site a beta because I'm sure there will be some
mistakes. If anyone sees something I'm doing in a lesson that is way
off (or a very bad practice) please let me know. Some of the stuff I
know could be done in a more best practice way, but for the sake of
trying to also keep the lessons small and simple some ideas weren't
included (ie- I didn't use a constants interface for my forward
definitions).
If anyone wants to contribute, reword, or add anything please let me
know. The site is there to help others. I got really lazy in a lot of
places and didn't say much about certain things that I would have liked
to. Hopefully over time the site will improve.
Struttin' with Struts:

http://www.reumann.net/do/struts/main



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


RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Robert Taylor
Good work Rick. I'm sure many users (new and not-so-new)
will greatly benefit from your efforts.

robert

 -Original Message-
 From: Rick Reumann [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 2:37 AM
 To: Struts Users Mailing List
 Subject: [ANN] Struttin' With Struts beta (newbies esp. welcome)
 
 
 I created a web site that walks new Struts users step by step
 through the development of three VERY simple web applications in three
 lessons. Each lesson adds a few more features so that they build upon
 each other yet each stands alone such that if you follow the steps in
 any lesson you'll have built a very basic application regardless of
 which lesson you start with.
 
 I created these because there seemed to be lacking some more recent
 walk through Struts tutorials geared toward the very new Struts
 developer. I think real newbies will find them especially useful, but
 then again I could be way wrong:)
 
 I'm considering the site a beta because I'm sure there will be some
 mistakes. If anyone sees something I'm doing in a lesson that is way
 off (or a very bad practice) please let me know. Some of the stuff I
 know could be done in a more best practice way, but for the sake of
 trying to also keep the lessons small and simple some ideas weren't
 included (ie- I didn't use a constants interface for my forward
 definitions).
 
 If anyone wants to contribute, reword, or add anything please let me
 know. The site is there to help others. I got really lazy in a lot of
 places and didn't say much about certain things that I would have liked
 to. Hopefully over time the site will improve.
 
 Struttin' with Struts:
 
 http://www.reumann.net/do/struts/main
 
 -- 
 Rick
 
 -
 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]



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Rick Reumann
On Tue, 11 Mar 2003 06:49:54 -0500
Vic Cekvenich [EMAIL PROTECTED] wrote:

 Excellent!!!
 
 I will take the tutorial.
 I am wondering what are you doing for your Data Base, is it JDBC or 
 something else.

Thank you Vic.  

Actually since the lessons are very basic they don't even really touch
the Model layer. They stop with a simple dummy call to service methods
like:

EmployeeDTO insertEmployee( EmployeeDTO employee ) { return employee; }
 
My goal eventually is to build up to some model layer
approaches on Database connectivity etc, but of course would have to run
that stuff by you gurus :) as I'm still very weak in that area myself. 

Tentative lessons I'd like to see:

Lesson IV -
   Tiles
   internationalization

Lesson V -
   Accessing your model layer ( proper use of factories, services, DAOs
etc.)   
   nested tags

It would be cool if someone wanted to create any of the above lessons
following the same pattern of dealing with inserting/updating an
employee. If each lesson follows the same functionality (with just added
components/features) it makes it much easier for a new person to follow.


  Struttin' with Struts:
  
  http://www.reumann.net/do/struts/main
  
 

-- 
Rick Reumann

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Mark Zeltser
Rick,

Good job, somehow I can't unzip war files, I am getting corrupt zip file
exception.

Mark.

Rick Reumann wrote:

 I created a web site that walks new Struts users step by step
 through the development of three VERY simple web applications in three
 lessons. Each lesson adds a few more features so that they build upon
 each other yet each stands alone such that if you follow the steps in
 any lesson you'll have built a very basic application regardless of
 which lesson you start with.

 I created these because there seemed to be lacking some more recent
 walk through Struts tutorials geared toward the very new Struts
 developer. I think real newbies will find them especially useful, but
 then again I could be way wrong:)

 I'm considering the site a beta because I'm sure there will be some
 mistakes. If anyone sees something I'm doing in a lesson that is way
 off (or a very bad practice) please let me know. Some of the stuff I
 know could be done in a more best practice way, but for the sake of
 trying to also keep the lessons small and simple some ideas weren't
 included (ie- I didn't use a constants interface for my forward
 definitions).

 If anyone wants to contribute, reword, or add anything please let me
 know. The site is there to help others. I got really lazy in a lot of
 places and didn't say much about certain things that I would have liked
 to. Hopefully over time the site will improve.

 Struttin' with Struts:

 http://www.reumann.net/do/struts/main

 --
 Rick

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

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.



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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Rick Reumann
On Tue, 11 Mar 2003 11:53:39 -0500
Mark Zeltser [EMAIL PROTECTED] wrote:
 
 Good job, somehow I can't unzip war files, I am getting corrupt zip
 file exception.

I haven't tried to unzip a war file on Windows. Can you rename it to
.zip and see what happens? You should just be able to plop it in your
webapps directory and it'll expand for you.

  Struttin' with Struts:
 
  http://www.reumann.net/do/struts/main
 


-- 
Rick Reumann

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Phil Steitz
Mark Zeltser wrote:
Rick,

Good job, somehow I can't unzip war files, I am getting corrupt zip file
exception.
Mark.


Use jar -xf war file name

War files are jar files, not zips.  Your JDK should include the jar 
utility in its /bin directory.


Rick Reumann wrote:


I created a web site that walks new Struts users step by step
through the development of three VERY simple web applications in three
lessons. Each lesson adds a few more features so that they build upon
each other yet each stands alone such that if you follow the steps in
any lesson you'll have built a very basic application regardless of
which lesson you start with.
I created these because there seemed to be lacking some more recent
walk through Struts tutorials geared toward the very new Struts
developer. I think real newbies will find them especially useful, but
then again I could be way wrong:)
I'm considering the site a beta because I'm sure there will be some
mistakes. If anyone sees something I'm doing in a lesson that is way
off (or a very bad practice) please let me know. Some of the stuff I
know could be done in a more best practice way, but for the sake of
trying to also keep the lessons small and simple some ideas weren't
included (ie- I didn't use a constants interface for my forward
definitions).
If anyone wants to contribute, reword, or add anything please let me
know. The site is there to help others. I got really lazy in a lot of
places and didn't say much about certain things that I would have liked
to. Hopefully over time the site will improve.
Struttin' with Struts:

http://www.reumann.net/do/struts/main

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


--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.


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


Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Mark Zeltser
Thanks,

I didn't notice it was in .war.zip format.

Mark.

Phil Steitz wrote:

 Mark Zeltser wrote:
  Rick,
 
  Good job, somehow I can't unzip war files, I am getting corrupt zip file
  exception.
 
  Mark.

 Use jar -xf war file name

 War files are jar files, not zips.  Your JDK should include the jar
 utility in its /bin directory.

 
  Rick Reumann wrote:
 
 
 I created a web site that walks new Struts users step by step
 through the development of three VERY simple web applications in three
 lessons. Each lesson adds a few more features so that they build upon
 each other yet each stands alone such that if you follow the steps in
 any lesson you'll have built a very basic application regardless of
 which lesson you start with.
 
 I created these because there seemed to be lacking some more recent
 walk through Struts tutorials geared toward the very new Struts
 developer. I think real newbies will find them especially useful, but
 then again I could be way wrong:)
 
 I'm considering the site a beta because I'm sure there will be some
 mistakes. If anyone sees something I'm doing in a lesson that is way
 off (or a very bad practice) please let me know. Some of the stuff I
 know could be done in a more best practice way, but for the sake of
 trying to also keep the lessons small and simple some ideas weren't
 included (ie- I didn't use a constants interface for my forward
 definitions).
 
 If anyone wants to contribute, reword, or add anything please let me
 know. The site is there to help others. I got really lazy in a lot of
 places and didn't say much about certain things that I would have liked
 to. Hopefully over time the site will improve.
 
 Struttin' with Struts:
 
 http://www.reumann.net/do/struts/main
 
 --
 Rick
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
  --
  NOTICE: If received in error, please destroy and notify sender.  Sender
  does not waive confidentiality or privilege, and use is prohibited.
 
 
 
  -
  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]

--
NOTICE: If received in error, please destroy and notify sender.  Sender does
not waive confidentiality or privilege, and use is prohibited.



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



RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread James Mitchell
Winzip will open all of these and probably more:
arc
arj
b64
bhx
cab
hqx
lzh
mim
tar
tgz
gz
z
jar
war
ear
sar
uu
uue
xxe

--
James Mitchell
Software Developer/Struts Evangelist
http://struts.sourceforge.net/struts-atlanta/



 -Original Message-
 From: Phil Steitz [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2003 2:44 PM
 To: Struts Users Mailing List
 Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
 
 
 Mark Zeltser wrote:
  Rick,
  
  Good job, somehow I can't unzip war files, I am getting 
 corrupt zip file
  exception.
  
  Mark.
 
 
 Use jar -xf war file name
 
 War files are jar files, not zips.  Your JDK should include the jar 
 utility in its /bin directory.
 
 
  
  Rick Reumann wrote:
  
  
 I created a web site that walks new Struts users step by step
 through the development of three VERY simple web 
 applications in three
 lessons. Each lesson adds a few more features so that they 
 build upon
 each other yet each stands alone such that if you follow 
 the steps in
 any lesson you'll have built a very basic application regardless of
 which lesson you start with.
 
 I created these because there seemed to be lacking some more recent
 walk through Struts tutorials geared toward the very new Struts
 developer. I think real newbies will find them especially 
 useful, but
 then again I could be way wrong:)
 
 I'm considering the site a beta because I'm sure there 
 will be some
 mistakes. If anyone sees something I'm doing in a lesson that is way
 off (or a very bad practice) please let me know. Some of the stuff I
 know could be done in a more best practice way, but for 
 the sake of
 trying to also keep the lessons small and simple some ideas weren't
 included (ie- I didn't use a constants interface for my forward
 definitions).
 
 If anyone wants to contribute, reword, or add anything please let me
 know. The site is there to help others. I got really lazy 
 in a lot of
 places and didn't say much about certain things that I 
 would have liked
 to. Hopefully over time the site will improve.
 
 Struttin' with Struts:
 
 http://www.reumann.net/do/struts/main
 
 --
 Rick
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  --
  NOTICE: If received in error, please destroy and notify 
 sender.  Sender
  does not waive confidentiality or privilege, and use is prohibited.
  
  
  
  
 -
  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]
 


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



RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Derek Richardson
I've got an idea that may be good for the model layer of your demo. I usually create 
implementations of my services that just use a class with one or more static maps for 
storing data. Downside, restart the app server and lose all your data. Upside, (1) 
it's a fast way to get going, (2) everyone will understand it, and (3) it's a good way 
to create a semi-working service for your demo without having to talk about the model 
layer, which is really a separate issue from struts. If you decide to write a tutorial 
about model technologies, it can be separate from the struts tutorial and just talk 
about how to implement your service, decoupling your tutorials like the model should 
be decoupled from the presentation.

 -Original Message-
 From: Rick Reumann [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 10:25 AM
 To: Struts Users Mailing List
 Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
 
 
 On Tue, 11 Mar 2003 06:49:54 -0500
 Vic Cekvenich [EMAIL PROTECTED] wrote:
 
  Excellent!!!
  
  I will take the tutorial.
  I am wondering what are you doing for your Data Base, is it JDBC or 
  something else.
 
 Thank you Vic.  
 
 Actually since the lessons are very basic they don't even really touch
 the Model layer. They stop with a simple dummy call to service methods
 like:
 
 EmployeeDTO insertEmployee( EmployeeDTO employee ) { return 
 employee; }
  
 My goal eventually is to build up to some model layer
 approaches on Database connectivity etc, but of course would 
 have to run
 that stuff by you gurus :) as I'm still very weak in that 
 area myself. 
 
 Tentative lessons I'd like to see:
 
 Lesson IV -
Tiles
internationalization
 
 Lesson V -
Accessing your model layer ( proper use of factories, 
 services, DAOs
 etc.)   
nested tags
 
 It would be cool if someone wanted to create any of the above lessons
 following the same pattern of dealing with inserting/updating an
 employee. If each lesson follows the same functionality (with 
 just added
 components/features) it makes it much easier for a new person 
 to follow.
 
 
   Struttin' with Struts:
   
   http://www.reumann.net/do/struts/main
   
  
 
 -- 
 Rick Reumann
 
 -
 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]



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Daniel Jaffa
A good way to tell if win zip will open your archive is to create a shortcut
on your desktop to winzip.  Try to open the shortcut while dragging the file
that you want to open.  This works for Jar, War, Zip, Tar, Exe (That where
created in winzip) and many other compressed file types.
- Original Message -
From: James Mitchell [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003 2:50 PM
Subject: RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)


 Winzip will open all of these and probably more:
 arc
 arj
 b64
 bhx
 cab
 hqx
 lzh
 mim
 tar
 tgz
 gz
 z
 jar
 war
 ear
 sar
 uu
 uue
 xxe

 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://struts.sourceforge.net/struts-atlanta/



  -Original Message-
  From: Phil Steitz [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, March 11, 2003 2:44 PM
  To: Struts Users Mailing List
  Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
 
 
  Mark Zeltser wrote:
   Rick,
  
   Good job, somehow I can't unzip war files, I am getting
  corrupt zip file
   exception.
  
   Mark.
 
 
  Use jar -xf war file name
 
  War files are jar files, not zips.  Your JDK should include the jar
  utility in its /bin directory.
 
 
  
   Rick Reumann wrote:
  
  
  I created a web site that walks new Struts users step by step
  through the development of three VERY simple web
  applications in three
  lessons. Each lesson adds a few more features so that they
  build upon
  each other yet each stands alone such that if you follow
  the steps in
  any lesson you'll have built a very basic application regardless of
  which lesson you start with.
  
  I created these because there seemed to be lacking some more recent
  walk through Struts tutorials geared toward the very new Struts
  developer. I think real newbies will find them especially
  useful, but
  then again I could be way wrong:)
  
  I'm considering the site a beta because I'm sure there
  will be some
  mistakes. If anyone sees something I'm doing in a lesson that is way
  off (or a very bad practice) please let me know. Some of the stuff I
  know could be done in a more best practice way, but for
  the sake of
  trying to also keep the lessons small and simple some ideas weren't
  included (ie- I didn't use a constants interface for my forward
  definitions).
  
  If anyone wants to contribute, reword, or add anything please let me
  know. The site is there to help others. I got really lazy
  in a lot of
  places and didn't say much about certain things that I
  would have liked
  to. Hopefully over time the site will improve.
  
  Struttin' with Struts:
  
  http://www.reumann.net/do/struts/main
  
  --
  Rick
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
   --
   NOTICE: If received in error, please destroy and notify
  sender.  Sender
   does not waive confidentiality or privilege, and use is prohibited.
  
  
  
  
  -
   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]
 


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



RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread James Mitchell
I just add it to my right click menu.

For 2000 and XP, you can do it using 'open with' context menu.
With 98 and NT, you can do it in the Registry.


I hope saying 'do it in the Registry' doesn't get hung up in our scan
mail :D

--
James Mitchell
Software Developer/Struts Evangelist
http://struts.sourceforge.net/struts-atlanta/



 -Original Message-
 From: Daniel Jaffa [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, March 11, 2003 4:12 PM
 To: Struts Users Mailing List
 Subject: Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)
 
 
 A good way to tell if win zip will open your archive is to 
 create a shortcut
 on your desktop to winzip.  Try to open the shortcut while 
 dragging the file
 that you want to open.  This works for Jar, War, Zip, Tar, 
 Exe (That where
 created in winzip) and many other compressed file types.
 - Original Message -
 From: James Mitchell [EMAIL PROTECTED]
 To: 'Struts Users Mailing List' [EMAIL PROTECTED]
 Sent: Tuesday, March 11, 2003 2:50 PM
 Subject: RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)
 
 
  Winzip will open all of these and probably more:
  arc
  arj
  b64
  bhx
  cab
  hqx
  lzh
  mim
  tar
  tgz
  gz
  z
  jar
  war
  ear
  sar
  uu
  uue
  xxe
 
  --
  James Mitchell
  Software Developer/Struts Evangelist
  http://struts.sourceforge.net/struts-atlanta/
 
 
 
   -Original Message-
   From: Phil Steitz [mailto:[EMAIL PROTECTED]
   Sent: Tuesday, March 11, 2003 2:44 PM
   To: Struts Users Mailing List
   Subject: Re: [ANN] Struttin' With Struts beta (newbies 
 esp. welcome)
  
  
   Mark Zeltser wrote:
Rick,
   
Good job, somehow I can't unzip war files, I am getting
   corrupt zip file
exception.
   
Mark.
  
  
   Use jar -xf war file name
  
   War files are jar files, not zips.  Your JDK should 
 include the jar
   utility in its /bin directory.
  
  
   
Rick Reumann wrote:
   
   
   I created a web site that walks new Struts users step by step
   through the development of three VERY simple web
   applications in three
   lessons. Each lesson adds a few more features so that they
   build upon
   each other yet each stands alone such that if you follow
   the steps in
   any lesson you'll have built a very basic application 
 regardless of
   which lesson you start with.
   
   I created these because there seemed to be lacking some 
 more recent
   walk through Struts tutorials geared toward the very 
 new Struts
   developer. I think real newbies will find them especially
   useful, but
   then again I could be way wrong:)
   
   I'm considering the site a beta because I'm sure there
   will be some
   mistakes. If anyone sees something I'm doing in a 
 lesson that is way
   off (or a very bad practice) please let me know. Some 
 of the stuff I
   know could be done in a more best practice way, but for
   the sake of
   trying to also keep the lessons small and simple some 
 ideas weren't
   included (ie- I didn't use a constants interface for my forward
   definitions).
   
   If anyone wants to contribute, reword, or add anything 
 please let me
   know. The site is there to help others. I got really lazy
   in a lot of
   places and didn't say much about certain things that I
   would have liked
   to. Hopefully over time the site will improve.
   
   Struttin' with Struts:
   
   http://www.reumann.net/do/struts/main
   
   --
   Rick
   
   
   -
   To unsubscribe, e-mail: 
 [EMAIL PROTECTED]
   For additional commands, e-mail: 
 [EMAIL PROTECTED]
   
   
--
NOTICE: If received in error, please destroy and notify
   sender.  Sender
does not waive confidentiality or privilege, and use is 
 prohibited.
   
   
   
   
   
 -
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]
  
 
 
  
 -
  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]
 


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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Rick Reumann
On Tue, 11 Mar 2003 16:10:47 -0500
Derek Richardson [EMAIL PROTECTED] wrote:

 I've got an idea that may be good for the model layer of your demo. I
 usually create implementations of my services that just use a class
 with one or more static maps for storing data.  

Actually I used that approach in another demo and had the objects
serialized so they persisted. I was too lazy in these lessons to add
that extra functionality but probably will do so in a future lesson (or
a reworking of the existing ones).

-- 
Rick Reumann

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Dan Allen
These tutorials rock, even for people that have been using struts
for a while.  Nothing beats reviewing concepts from the ground up
over and over. You always pick up something new.  That is why I love
reading linux tutorials even after 3 years of using it.

One suggesion:  In the first tutorial you make use of html:link
and explain its purpose, but you leave out using the action
attribute and substitute it for page instead.  I think it might be
better for the sake of the tutorial to make it

html:link action=/setupEmployeeFormAdd Employee/html:link

The reason I say that is because new users need to grasp the concept
that the URL is not actually a page but rather a server command,
which is interpretted by the controller to be an Action followed by
a View.  Also, it is good to keep any references to the action
mapping patter out of the View so that if you need to change from

/do/* - *.do

you can do so by only updating your two configuration files (web.xml
and struts-config.xml) and not have to call up your JSP developer
and tell him that all action patterns need to be changed.

the page attribute should really only be used for assets, since
all jsp pages should be masked by an action anyway.

I hope you find my defense to be clear.  Please respond if you have
any objections/rebutals.

Thank you so very much. I will do my absolute best to try to donate
at least some portion of a tutorial once I get a few projects off my
plate here.

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
umm... i guess this is my signature. 8-}
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Dan Allen
Two more comments:

In the second tutorial, you are preparing the employeeForm using the
SetUpEmployeeAction.  In doing so, you run

employeeForm.setDepartment(2);

Shouldn't you instead set the default department selection in the
form reset() method?  Naturally the reset() method is the incorrect
place to populate the options, but it is a good place to define
which one will be selected by default.

In regards to the discussion on using Tokens for the forward mapping
keys (such as success and continue) you may also want to note
that doing so allows you to have two tokens point to the same
definition.  In short

Tokens.SUCCESS_KEY = success;

Tokens.CONTINUE_KEY = success;

So you can really play with the means of your Action class without
having to bother the Action class.  In short the action class
shouldn't really care what view is choosen or its meaning, it just
deals with the general workflow, such as

success
failure
continue
redo

Dan

-- 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Daniel Allen, [EMAIL PROTECTED]
http://www.mojavelinux.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
If you still don't like it, that's ok: that's why I'm boss. I 
simply know better than you do. 
 -- Linus Torvalds
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

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



Re: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-10 Thread Amitkumar_J_Malhotra

thanx a lot for the concept, great work rick.
regards,
amit malhotra



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