Re: Struts-chain

2003-11-27 Thread James Mitchell
On Thu, 27 Nov 2003, Vic Cekvenich wrote:

> I tried to build to get the chain sample app... and I can't. I got the
> common and struts chain jars built.
>
> In order to build sample chains war... you have to get sturts to build
> from source... which requires you get commons-lib.home of CVS of jakarta
> commons and sandobox... yuck. (Maven build of Sturts is broken).

Actually, you don't have to build the commons stuff, just get the
latest binaries and reference them in your build.properties.

See build.properties.sample for what you have to do.


>
> If anyone (Batjen?) wants to e-mail me privetly the example war file
> great, tia.
>
> .V
>
> Craig R. McClanahan wrote:
> > Quoting Vic Cekvenich <[EMAIL PROTECTED]>:
> >
> >
> >>
> >>BaTien Duong wrote:
> >>
> >>
> >>  i am able to have struts-chain example (the old
> >>
> >>>struts-example with struts-chain built from cvs) up and running using
> >>>j2sdk1.4.2_02 and tomcat 5.0.14.
> >>
> >>
> >>Where did you find an example of using a Struts chain?
> >>
> >>.V
> >>
> >
> >
> > Download the jakarta-struts nightly source distro (or check it out from
> > anonymous CVS).  Then, start Tomcat and execute:
> >
> >   cd contrib/struts-chain
> >   ant install
> >
> > This builds a variation on the standard struts-example webapp that uses the
> > chain-based replacement for the standard RequestProcessor.
> >
> > Craig
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-- 
James Mitchell
Software Developer / Struts Evangelist
http://www.struts-atlanta.org


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



Re: Struts-chain

2003-11-27 Thread Vic Cekvenich
I tried to build to get the chain sample app... and I can't. I got the 
common and struts chain jars built.

In order to build sample chains war... you have to get sturts to build 
from source... which requires you get commons-lib.home of CVS of jakarta 
commons and sandobox... yuck. (Maven build of Sturts is broken).

If anyone (Batjen?) wants to e-mail me privetly the example war file 
great, tia.

.V

Craig R. McClanahan wrote:
Quoting Vic Cekvenich <[EMAIL PROTECTED]>:


BaTien Duong wrote:

 i am able to have struts-chain example (the old

struts-example with struts-chain built from cvs) up and running using 
j2sdk1.4.2_02 and tomcat 5.0.14. 


Where did you find an example of using a Struts chain?

.V



Download the jakarta-struts nightly source distro (or check it out from
anonymous CVS).  Then, start Tomcat and execute:
  cd contrib/struts-chain
  ant install
This builds a variation on the standard struts-example webapp that uses the
chain-based replacement for the standard RequestProcessor.
Craig


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


Re: Struts-chain

2003-11-08 Thread Craig R. McClanahan
Quoting BaTien Duong <[EMAIL PROTECTED]>:

> Thanks. I hacked it and got the job done.
> 
> It is a great job Craig. Your vision proves to be on the target again.
> 
> By the way, file upload is a very important aspect of Struts 
> applications. I will look closely into it. But is there any serious 
> reason while file-upload is *NOT SUPPORTED YET* in the struts-chain?
> 

It's only NOT SUPPORTED YET because nobody has done the work to support it :-). 
Feel free to take a crack at this, but it's probably going to be somewhat more
involved than some of the other functionality, to replicate or replace the way
that the standard FileUpload functionality wraps the servlet request.

If it were up to me, I'd just implement file upload as a Filter instead of
inside the framework, but that would mean requiring a Servlet 2.3 platform.


> On behalf of many developers, me included, thanks for your great effort. :-)
> 

You're welcome ... its going to be fun to see the various ways commons-chain
gets employed.

> BaTien
> DBGROUPS
> 

Craig


> Craig R. McClanahan wrote:
> 
> >Quoting BaTien Duong <[EMAIL PROTECTED]>:
> >
> >  
> >
> >>Howdy:
> >>
> >>I am trying to get Struts-chain up and running. I follow the instruction 
> >>of struts-chain in the cvs to build from the source:
> >>
> >>export ANT_HOME=.../ant-1.6beta2
> >>export JAVA_HOME=.../j2sdk1.4.2_02
> >>export TOMCAT_HOME=.../tomcat-5.0.14
> >>
> >>The build.properties is copied from the build.properties.sample
> >>   servlet.home=.../common/lib
> >>   struts.home=.../jakarta-struts-bin
> >>   chain.home=.../cvs/jakarta-commons-sandbox/chain
> >>
> >>export 
> >>
> >>
> >>
>
>PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:${TOMCAT_HOME}/common/lib/servlet-api.jar:${TOMCAT_HOME}/server/lib/catalina-ant.jar
> >  
> >
> >>execute the following command at the struts-chain directory
> >>[-]$ ant clean dist
> >>
> >>I got the error:
> >>   /build.xml:54: taskdef class org.apache.catalina.ant.DeployTask could 
> >>not be found
> >>
> >>Please feed me the latest instruction to create struts-chain.war
> >>
> >>
> >>
> >
> >Copy the "catalina-ant.jar" file from your Tomcat install's server/lib
> directory
> > into the "lib" directory of Ant.  This causes the Tomcat integration
> commands
> >to be recognized.
> >
> >  
> >
> >>Thanks
> >>BaTien
> >>DBGROUPS
> >>
> >>
> >
> >Craig
> >
> >
> >
> >-
> >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: Struts-chain

2003-11-08 Thread Craig R. McClanahan
Quoting Vic Cekvenich <[EMAIL PROTECTED]>:

> 
> 
> BaTien Duong wrote:
> 
> 
>   i am able to have struts-chain example (the old
> > struts-example with struts-chain built from cvs) up and running using 
> > j2sdk1.4.2_02 and tomcat 5.0.14. 
> 
> 
> Where did you find an example of using a Struts chain?
> 
> .V
> 

Download the jakarta-struts nightly source distro (or check it out from
anonymous CVS).  Then, start Tomcat and execute:

  cd contrib/struts-chain
  ant install

This builds a variation on the standard struts-example webapp that uses the
chain-based replacement for the standard RequestProcessor.

Craig


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



Re: Struts-chain

2003-11-08 Thread BaTien Duong
Thanks. I hacked it and got the job done.

It is a great job Craig. Your vision proves to be on the target again.

By the way, file upload is a very important aspect of Struts 
applications. I will look closely into it. But is there any serious 
reason while file-upload is *NOT SUPPORTED YET* in the struts-chain?

On behalf of many developers, me included, thanks for your great effort. :-)

BaTien
DBGROUPS
Craig R. McClanahan wrote:

Quoting BaTien Duong <[EMAIL PROTECTED]>:

 

Howdy:

I am trying to get Struts-chain up and running. I follow the instruction 
of struts-chain in the cvs to build from the source:

export ANT_HOME=.../ant-1.6beta2
export JAVA_HOME=.../j2sdk1.4.2_02
export TOMCAT_HOME=.../tomcat-5.0.14
The build.properties is copied from the build.properties.sample
  servlet.home=.../common/lib
  struts.home=.../jakarta-struts-bin
  chain.home=.../cvs/jakarta-commons-sandbox/chain
export 

   

PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:${TOMCAT_HOME}/common/lib/servlet-api.jar:${TOMCAT_HOME}/server/lib/catalina-ant.jar
 

execute the following command at the struts-chain directory
[-]$ ant clean dist
I got the error:
  /build.xml:54: taskdef class org.apache.catalina.ant.DeployTask could 
not be found

Please feed me the latest instruction to create struts-chain.war

   

Copy the "catalina-ant.jar" file from your Tomcat install's server/lib directory
into the "lib" directory of Ant.  This causes the Tomcat integration commands
to be recognized.
 

Thanks
BaTien
DBGROUPS
   

Craig



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

 




Re: Struts-chain

2003-11-07 Thread BaTien Duong
Vic Cekvenich wrote:



BaTien Duong wrote:

 i am able to have struts-chain example (the old

struts-example with struts-chain built from cvs) up and running using 
j2sdk1.4.2_02 and tomcat 5.0.14. 


Where did you find an example of using a Struts chain?

.V
The struts-example is in cvs/jakarta-struts/contrib/struts-chain
or in the nightly built of struts-src /jakarta-struts/contrib/struts-chain
There is a built.properties and built.xml to create struts-example war 
file using struts-chain. The build process is terrible, so you need to 
hack it. Here are the steps i used:
   1) use maven to build jetspeed-2 so i get portlet-api-1.0.jar in my 
local .maven/repository. Do not use the one in struts-chain build (I 
thing 0.6-dev)
   2) use maven to build commons-chain, so i get commons-chain-0.1.jar 
in my local repository. Do not use the one in struts-chain build.
   3) Edit the build.properties using built.properties.sample in 
struts-chain directory with your appropriate settings.
   4) Edit the buiild.xml in struts-chain directory with your 
appropriate settings. Take out the whole section of Custom Tomcat 
Integration.
  5) Use *ant clean dist* command to run against the edited build.xml. 
Be patient and correct errors in the build process as you go along.
  6) The result of successful build is 
/struts-chain/build/webapps/example/ and
/struts-chain/dist/webapps/struts-chain.war that you can manually copy 
to tomcat/webapps directory and run sub app /struts-chain
 7) You may likely have a problem to get struts-example running under 
the new design of struts-chain. If this is the case, then compare 
contents of struts-chain and old struts-example. Copy the missing of 
.dtd and jar files from struts-example to struts-chain.

P.S. I hear you are also looking at HiveMind too. Let's see how we put 
struts-chain catalog(s) as a HiveMind service so we can combine the 
strength and simplicity of the 2 frameworks into a simple-practical 
solution.

BaTien
DBGROUPS


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




Re: Struts-chain

2003-11-07 Thread Vic Cekvenich


BaTien Duong wrote:

 i am able to have struts-chain example (the old
struts-example with struts-chain built from cvs) up and running using 
j2sdk1.4.2_02 and tomcat 5.0.14. 


Where did you find an example of using a Struts chain?

.V



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


Re: Struts-chain

2003-11-07 Thread BaTien Duong
Howdy:

I want to congratulate Struts committers for a very fine work in 
Struts-chain and share some of my finding to those who want to get their 
feet wet in the CoR pattern.
  1) First, i am able to have struts-chain example (the old 
struts-example with struts-chain built from cvs) up and running using 
j2sdk1.4.2_02 and tomcat 5.0.14. Some hacks in the build process is 
required. I use both ant and maven.
  2) There is very little things to change in existing Struts 
application for running under the commons-chain. The design is very clean.
  3) IMHO, when struts-chain has full implementations for portlet, jsf 
and the buisiness layer (Ted Whiteboard), struts will definitely rock.  
The design pattern for struts-chain context is just simple thread-safe 
singleton. The performance can be better, especially when we move to the 
implementation for business layer, with cache and pool services. 
HiveMind may be a good companion.

BaTien
DBGROUPS

Don Brown wrote:

If you use the compile task (the default for the project), struts-chain
will build without any dependencies on the tomcat ant lib.
BTW, I'd recommend against cross posting...

Don

On Wed, 5 Nov 2003, BaTien Duong wrote:

 

Howdy:

I am trying to get Struts-chain up and running. I follow the instruction
of struts-chain in the cvs to build from the source:
export ANT_HOME=.../ant-1.6beta2
export JAVA_HOME=.../j2sdk1.4.2_02
export TOMCAT_HOME=.../tomcat-5.0.14
The build.properties is copied from the build.properties.sample
  servlet.home=.../common/lib
  struts.home=.../jakarta-struts-bin
  chain.home=.../cvs/jakarta-commons-sandbox/chain
export
PATH=${PATH}:${JAVA_HOME}/bin:${ANT_HOME}/bin:${TOMCAT_HOME}/common/lib/servlet-api.jar:${TOMCAT_HOME}/server/lib/catalina-ant.jar
execute the following command at the struts-chain directory
[-]$ ant clean dist
I got the error:
  /build.xml:54: taskdef class org.apache.catalina.ant.DeployTask could
not be found
Please feed me the latest instruction to create struts-chain.war

Thanks
BaTien
DBGROUPS


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