Re: How to go about??

2002-02-07 Thread Ted Husted

[EMAIL PROTECTED] wrote:
(Natural, I guess.who's gonna
 sit and write good documentation anyway.  This is almost as hard as writing
 good software!)

It my experience it's harder (and doesn't pay as well) -:0)

Projects are always desperate for better documentation, and we have had
some great pieces of ours sent in by people who were reading it, and
wanted to improve it as they went along. That's where the Walking Tour
of the example application came from. I wrote it to explain the example
to myself, and then shared it with the group. 

Contributing documentation to a project is no different than
contributing code. 

http://jakarta.apache.org/site/getinvolved.html

The only caveat is that it *is* no different than contributing code, and
so it should be in the same format as the rest of the documentation,
ready to paste or otherwise patch.

-Ted.


[EMAIL PROTECTED] wrote:
 
 Good luck Sanjay!  Even the documentation to Struts itself does not tell
 you how to use it. Tells you how to build parts, but not really how to get
 them together.  It's typical developer documentation.  Open source software
 is wonderful, but developers do not seem to be as enthusastic about
 documenting as they are about developing. (Natural, I guess.who's gonna
 sit and write good documentation anyway.  This is almost as hard as writing
 good software!)
 
 We need to start the Open Source Documentation Initiative and save this
 glorious revolution from its one greatest flaw.
 
 - Cody
 
 Sanjay Choudhary [EMAIL PROTECTED] on 02/06/2002 04:11:23 PM
 
 Please respond to Struts Users Mailing List
   [EMAIL PROTECTED]
 To:   Struts Users Mailing List [EMAIL PROTECTED]
 cc:
 Subject:  How to go about??
 
 Hi Friends,
 
 I am very new to Struts. All I have done is worked out
 couple of examples from web to understand the
 Architecture. We are in a process of designing a
 Product and plan to use Struts Framework with EJB's.
 
 In my team
 1. No one has any knowledge about Struts but they are
 very good with Java and J2EE.
 
 2. Except for a HTML designer, most of the programmers
 are involved with backend programming. They have done
 very little HTML work. I was wondering if we will be
 able to create JSP's using Struts HTML tags and other
 tag libraries if a form is defined using pure HTML.
 
 3. What is the best way to go about to learn Struts to
 use in practical life and how much time it takes?
 
 4. What strategies did you guys adopt to move to
 Struts?
 
 5. All pointers to valuable resources and design
 stratergies will be appreciated.
 
 Thanks you ,
 Sanjay
 
 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 
 The information transmitted is intended only for the person or entity to
 which it is addressed and may contain confidential and/or privileged
 material.  Any review, retransmission, dissemination or other use of, or
 taking of any action in reliance upon, this information by persons or
 entities other than the intended recipient is prohibited.   If you received
 this in error, please contact the sender and delete the material from any
 computer.
 
 --
 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 go about??

2002-02-07 Thread Ted Husted

What Steve said, and 

Sanjay Choudhary wrote:
 2. Except for a HTML designer, most of the programmers
 are involved with backend programming. They have done
 very little HTML work. I was wondering if we will be
 able to create JSP's using Struts HTML tags and other
 tag libraries if a form is defined using pure HTML.

If the Java Engineers will also be doing alot of the HTML coding, I'd
recommend looking at Tiles early in the project. This lets you treat
blocks of markup (both template and dynamic) like methods in a program.
This can severely reduce the amount of markup the engineers actually
have to touch. Instead they incorporate it by reference, much like
calling a block of methods. 

So, with tiles an engineer might create a new Result page by adding this
to a configuration file 

  definition name=.item.Result extends=.Result
  put name=title  value=New Item Result /
  put name=contentvalue=/pages/item/NewResult.jsp /
  /definition

and then just writing the NewResult.jsp segment that exposes the result
set 

(simplified from production, but this would work) 

logic:notEqual name=RESULT property=size value=0 
TRTDTABLE width=100%
TR class=greybg
THitem/TH
THname/TH
THcategory/TH
THdonor/TH
THscript/TH
THtype/TH
/TR
TR
TDbean:write name=row property=item//TD
TDbean:write name=row property=name//TD
TDbean:write name=row property=category//TD
TD align=rightbean:write name=row property=donor//TD
TDbean:write name=row property=script//TD
TDbean:write name=row property=itemType//TD
/TR
/logic:iterate
/TABLE/TDTR
/logic:notEqual

The rest of the page, headers, footers, menus, even control buttons, can
all be inherited from a layout that the HTML dude has crafted. 

Though, at the top, even that looks like a method:

html:html
tiles:useAttribute name=title scope=request/
tiles:get name=base/
tiles:get name=header/
tiles:get name=heading/
tiles:get name=messages /
TRTD width=100%
tiles:get name=caption/
/TD/TR
tiles:get name=content/ -- THIS IS THE PART THE ENGINEER WRITES
tiles:get name=back/
tiles:get name=footer/
/html:html

Of course, my production version also includes stylesheets so the HTML
designer can control that too, and some internal links so users can
drill down, but you get the idea. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

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




RE: How to go about??

2002-02-07 Thread John Menke

There is a book: Struts Fast Track (See Resources Section on Jakarta Site).
It has helped me.  Also, read the API javadocs and the User Guide.

-Original Message-
From: Arnab Sengupta [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 12:50 AM
To: Struts Users Mailing List
Subject: Re: How to go about??


Dear Sanjay,
One and only one solution...
Follow the structs Documentations and try to understand the struts example
(only one is there) given alogn with the struts 1.0. It's too good and if
one understands the inner logic of the example,he/she is unstoppable.
It might take a week's time ..but worth investing.
Best of luck and welcome to struts..
Arnab.
- Original Message -
From: Sanjay Choudhary [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 3:41 AM
Subject: How to go about??


 Hi Friends,

 I am very new to Struts. All I have done is worked out
 couple of examples from web to understand the
 Architecture. We are in a process of designing a
 Product and plan to use Struts Framework with EJB's.

 In my team
 1. No one has any knowledge about Struts but they are
 very good with Java and J2EE.

 2. Except for a HTML designer, most of the programmers
 are involved with backend programming. They have done
 very little HTML work. I was wondering if we will be
 able to create JSP's using Struts HTML tags and other
 tag libraries if a form is defined using pure HTML.

 3. What is the best way to go about to learn Struts to
 use in practical life and how much time it takes?

 4. What strategies did you guys adopt to move to
 Struts?

 5. All pointers to valuable resources and design
 stratergies will be appreciated.

 Thanks you ,
 Sanjay







 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com

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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.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 go about??

2002-02-07 Thread Sanjay Choudhary

thanks ted,

Where can I get info. on tiles?

Sanjay
--- Ted Husted [EMAIL PROTECTED] wrote:
 What Steve said, and 
 
 Sanjay Choudhary wrote:
  2. Except for a HTML designer, most of the
 programmers
  are involved with backend programming. They have
 done
  very little HTML work. I was wondering if we will
 be
  able to create JSP's using Struts HTML tags and
 other
  tag libraries if a form is defined using pure
 HTML.
 
 If the Java Engineers will also be doing alot of the
 HTML coding, I'd
 recommend looking at Tiles early in the project.
 This lets you treat
 blocks of markup (both template and dynamic) like
 methods in a program.
 This can severely reduce the amount of markup the
 engineers actually
 have to touch. Instead they incorporate it by
 reference, much like
 calling a block of methods. 
 
 So, with tiles an engineer might create a new Result
 page by adding this
 to a configuration file 
 
   definition name=.item.Result extends=.Result
   put name=title  value=New Item Result
 /
   put name=content   
 value=/pages/item/NewResult.jsp /
   /definition
 
 and then just writing the NewResult.jsp segment that
 exposes the result
 set 
 
 (simplified from production, but this would work) 
 
 logic:notEqual name=RESULT property=size
 value=0 
 TRTDTABLE width=100%
 TR class=greybg
 THitem/TH
 THname/TH
 THcategory/TH
 THdonor/TH
 THscript/TH
 THtype/TH
 /TR
 TR
 TDbean:write name=row property=item//TD
 TDbean:write name=row property=name//TD
 TDbean:write name=row
 property=category//TD
 TD align=rightbean:write name=row
 property=donor//TD
 TDbean:write name=row property=script//TD
 TDbean:write name=row
 property=itemType//TD
 /TR
 /logic:iterate
 /TABLE/TDTR
 /logic:notEqual
 
 The rest of the page, headers, footers, menus, even
 control buttons, can
 all be inherited from a layout that the HTML dude
 has crafted. 
 
 Though, at the top, even that looks like a method:
 
 html:html
 tiles:useAttribute name=title scope=request/
 tiles:get name=base/
 tiles:get name=header/
 tiles:get name=heading/
 tiles:get name=messages /
 TRTD width=100%
 tiles:get name=caption/
 /TD/TR
 tiles:get name=content/ -- THIS IS THE PART THE
 ENGINEER WRITES
 tiles:get name=back/
 tiles:get name=footer/
 /html:html
 
 Of course, my production version also includes
 stylesheets so the HTML
 designer can control that too, and some internal
 links so users can
 drill down, but you get the idea. 
 
 -- Ted Husted, Husted dot Com, Fairport NY USA.
 -- Java Web Development with Struts.
 -- Tel +1 585 737-3463.
 -- Web http://www.husted.com/struts/
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: How to go about??

2002-02-06 Thread STEVE WILKINSON

Sanjay,

1. Your team will have a learning curve, but that mostly has to do with the tag 
libraries and the struts-config.xml file.
2.  Yes, but you will have to convert the tags to the struts tags.
3.  Use it and read about it.  see the following web sites:  
http://www.husted.com/struts  Look at the Projects and Examples, Tutorials, and 
Other Resources.  I have a sample project that is listed on the site.  It's at 
http://www.newparticles.com/struts  
4.  http://husted.com/about/scaffolding/kickstart.html  and 
http://husted.com/about/scaffolding/strutByStrut.htm should help.

5.  Subscribe to the user list, read often, and give back what you learn.
Good luck,
Steve
- Original Message -
In my team
1. No one has any knowledge about Struts but they are
very good with Java and J2EE.
2. Except for a HTML designer, most of the programmers
are involved with backend programming. They have done
very little HTML work. I was wondering if we will be
able to create JSP's using Struts HTML tags and other
tag libraries if a form is defined using pure HTML.

3. What is the best way to go about to learn Struts to
use in practical life and how much time it takes?

4. What strategies did you guys adopt to move to
Struts?

5. All pointers to valuable resources and design
stratergies will be appreciated.

Thanks you ,
Sanjay







__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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



Re: How to go about??

2002-02-06 Thread cody.burleson



Good luck Sanjay!  Even the documentation to Struts itself does not tell
you how to use it. Tells you how to build parts, but not really how to get
them together.  It's typical developer documentation.  Open source software
is wonderful, but developers do not seem to be as enthusastic about
documenting as they are about developing. (Natural, I guess.who's gonna
sit and write good documentation anyway.  This is almost as hard as writing
good software!)

We need to start the Open Source Documentation Initiative and save this
glorious revolution from its one greatest flaw.


- Cody






Sanjay Choudhary [EMAIL PROTECTED] on 02/06/2002 04:11:23 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]
To:   Struts Users Mailing List [EMAIL PROTECTED]
cc:
Subject:  How to go about??


Hi Friends,

I am very new to Struts. All I have done is worked out
couple of examples from web to understand the
Architecture. We are in a process of designing a
Product and plan to use Struts Framework with EJB's.

In my team
1. No one has any knowledge about Struts but they are
very good with Java and J2EE.

2. Except for a HTML designer, most of the programmers
are involved with backend programming. They have done
very little HTML work. I was wondering if we will be
able to create JSP's using Struts HTML tags and other
tag libraries if a form is defined using pure HTML.

3. What is the best way to go about to learn Struts to
use in practical life and how much time it takes?

4. What strategies did you guys adopt to move to
Struts?

5. All pointers to valuable resources and design
stratergies will be appreciated.

Thanks you ,
Sanjay







__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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





The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.


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




Re: How to go about??

2002-02-06 Thread Arnab Sengupta

Dear Sanjay,
One and only one solution...
Follow the structs Documentations and try to understand the struts example
(only one is there) given alogn with the struts 1.0. It's too good and if
one understands the inner logic of the example,he/she is unstoppable.
It might take a week's time ..but worth investing.
Best of luck and welcome to struts..
Arnab.
- Original Message -
From: Sanjay Choudhary [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, February 07, 2002 3:41 AM
Subject: How to go about??


 Hi Friends,

 I am very new to Struts. All I have done is worked out
 couple of examples from web to understand the
 Architecture. We are in a process of designing a
 Product and plan to use Struts Framework with EJB's.

 In my team
 1. No one has any knowledge about Struts but they are
 very good with Java and J2EE.

 2. Except for a HTML designer, most of the programmers
 are involved with backend programming. They have done
 very little HTML work. I was wondering if we will be
 able to create JSP's using Struts HTML tags and other
 tag libraries if a form is defined using pure HTML.

 3. What is the best way to go about to learn Struts to
 use in practical life and how much time it takes?

 4. What strategies did you guys adopt to move to
 Struts?

 5. All pointers to valuable resources and design
 stratergies will be appreciated.

 Thanks you ,
 Sanjay







 __
 Do You Yahoo!?
 Send FREE Valentine eCards with Yahoo! Greetings!
 http://greetings.yahoo.com

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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: How to go about??

2002-02-06 Thread cody.burleson


Correction.

Husted's stuff is a vast improvement over the stuff I've been seeing as of
yet.

Go Ted!

(woosh - wiping the raw sweat off my brow...)

- Cody





STEVE WILKINSON [EMAIL PROTECTED] on 02/06/2002 05:25:31 PM

Please respond to Struts Users Mailing List
  [EMAIL PROTECTED]
To:   Struts user [EMAIL PROTECTED]
cc:
Subject:  Re: How to go about??


Sanjay,

1. Your team will have a learning curve, but that mostly has to do with the
tag libraries and the struts-config.xml file.
2.  Yes, but you will have to convert the tags to the struts tags.
3.  Use it and read about it.  see the following web sites:
http://www.husted.com/struts  Look at the Projects and Examples,
Tutorials, and Other Resources.  I have a sample project that is listed
on the site.  It's at http://www.newparticles.com/struts
4.  http://husted.com/about/scaffolding/kickstart.html  and
http://husted.com/about/scaffolding/strutByStrut.htm should help.

5.  Subscribe to the user list, read often, and give back what you learn.
Good luck,
Steve
- Original Message -
In my team
1. No one has any knowledge about Struts but they are
very good with Java and J2EE.
2. Except for a HTML designer, most of the programmers
are involved with backend programming. They have done
very little HTML work. I was wondering if we will be
able to create JSP's using Struts HTML tags and other
tag libraries if a form is defined using pure HTML.

3. What is the best way to go about to learn Struts to
use in practical life and how much time it takes?

4. What strategies did you guys adopt to move to
Struts?

5. All pointers to valuable resources and design
stratergies will be appreciated.

Thanks you ,
Sanjay







__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material.  Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited.   If you received
this in error, please contact the sender and delete the material from any
computer.


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