RE: build.xml file for struts 2

2007-06-11 Thread Dave Newton
Oh, you fixed it?

IIRC the original poster noted some issues he'd had
with it.

--- "RoseIndia.net Help" <[EMAIL PROTECTED]>
wrote:

> HI,
> 
> Please visit
>
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml
>  and read the tutorial.
> You can download the helloworld project along with
> directory strutcture and
> build.xml file from
>
http://www.roseindia.net/struts/struts2/struts2tutorial.zip
> 
> code is tested and will work on your system.
> 
> Thanks
> 
> 
> -Original Message-
> From: James Mitchell
> [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 12, 2007 3:27 AM
> To: Struts Users Mailing List
> Subject: Re: build.xml file for struts 2
> 
> 
> You can generate an Ant build file from any project
> that uses Maven.
> 
>$ mvn ant:ant
> 
> 
> --
> James Mitchell
> 
> 
> 
> On Jun 11, 2007, at 4:49 PM, Session Mwamufiya
> wrote:
> 
> > Thanks for the file, but I would really need to
> see a working example,
> > because all of these files and directories here
> and there are too
> > confusing.
> > I wish someone could point me to a helloworld
> tutorial that
> > actually has a
> > working version.
> >
> > Thanks
> >
> > Session A. Mwamufiya
> > Carnegie Mellon University
> > MBA | Tepper School of Business
> > MSE (software eng.) | School of Computer Science
> > T: (412) 508-5455 | [EMAIL PROTECTED]
> >
> > -Original Message-
> > From: Carroll, Samuel Nicholas
> [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 11, 2007 3:11 PM
> > To: Struts Users Mailing List
> > Subject: RE: build.xml file for struts 2
> >
> > Here is the basic layout for a build.xml for the
> struts appilcations I
> > develop:
> >
> > 
> >  default="PICK_A_TARGET" basedir="./">
> >
> > FULL PROJECT NAME
> >
> > 
> > 
> > 
> >  value="COMMONLYUSED"/>
> > ..
> >
> > 
> > 
> > 
> > 
> >  > location="${lib.dir}/log4j-${log4j.version}" />
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> >  > sourcepathref="sourcepath.compile"
> > classpathref="classpath.compile"
> > deprecation="${compile.deprecation}"
> > debug="${compile.debug}"
> > listfiles="${compile.listfiles}">
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >  > excludes="**/*.keep">
> > 
> > 
> > etc...
> >
> >
> > 
> > 
> > 
> > 
> >  > basedir="${out.dir}\app" />
> > 
> >
> > 
> >
> > Something along those lines should suffice google
> and the ant page
> > should suffice
> > To fill in all the blanks, but to review basically
> set all the
> > properties (dirs,
> > Files, libs, etc.) then move them to the
> appropriate folders for the
> > WEB-INF,
> > Then compile and make a war file and distribute
> accordingly.
> >
> >
> > -Original Message-
> > From: Session Mwamufiya
> [mailto:[EMAIL PROTECTED]
> > Sent: Monday, June 11, 2007 2:59 PM
> > To: 'Struts Users Mailing List'
> > Subject: build.xml file for struts 2
> >
> > Hello,
> >
> >
> >
> > Could someone point me to a working build.xml file
> that I could use
> > for
> > a
> > simple struts 2 application (helloworld)?  I tried
> the tutorial from
> > roseindia, and that build file doesn't result in a
> working web app,
> > though
> > ant says that the build was successful.  I don't
> see all of the
> > lib/*.jar
> > files included in the classpath, and it puts the
> compiled class
> > files in
> > WEB-INF/src/classes instead of WEB-INF/classes;
> there must be other
> > issues
> > too that I haven't figured out.  Could someone
> point me to a simple
> > working
> > build.xml for struts 2 applications, or a good
> tutorial that I could
> > use?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Session A. Mwamufiya
> >
> 
=== message truncated ===



 

TV dinner still cooling? 
Check out "Tonight's Picks" on Yahoo! TV.
http://tv.yahoo.com/

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



RE: build.xml file for struts 2

2007-06-11 Thread RoseIndia.net Help
HI,

Please visit
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml
 and read the tutorial.
You can download the helloworld project along with directory strutcture and
build.xml file from
http://www.roseindia.net/struts/struts2/struts2tutorial.zip

code is tested and will work on your system.

Thanks


-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 12, 2007 3:27 AM
To: Struts Users Mailing List
Subject: Re: build.xml file for struts 2


You can generate an Ant build file from any project that uses Maven.

   $ mvn ant:ant


--
James Mitchell



On Jun 11, 2007, at 4:49 PM, Session Mwamufiya wrote:

> Thanks for the file, but I would really need to see a working example,
> because all of these files and directories here and there are too
> confusing.
> I wish someone could point me to a helloworld tutorial that
> actually has a
> working version.
>
> Thanks
>
> Session A. Mwamufiya
> Carnegie Mellon University
> MBA | Tepper School of Business
> MSE (software eng.) | School of Computer Science
> T: (412) 508-5455 | [EMAIL PROTECTED]
>
> -Original Message-
> From: Carroll, Samuel Nicholas [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 11, 2007 3:11 PM
> To: Struts Users Mailing List
> Subject: RE: build.xml file for struts 2
>
> Here is the basic layout for a build.xml for the struts appilcations I
> develop:
>
> 
> 
>
>   FULL PROJECT NAME
>
>   
>   
>   
>   
>   ..
>
>   
>   
>   
>   
>  location="${lib.dir}/log4j-${log4j.version}" />
>
>   
>   
>   
>   
>   
>   
>
>   
>   
>   
>   
>   
>   
>
>   
>   
>   
>   
>  sourcepathref="sourcepath.compile"
> classpathref="classpath.compile"
>   deprecation="${compile.deprecation}"
> debug="${compile.debug}"
>   listfiles="${compile.listfiles}">
>   
>   
>   
>
>   
>   
>   
>   
>   
>  excludes="**/*.keep">
>   
>   
>   etc...
>
>
>   
>   
>   
>   
>basedir="${out.dir}\app" />
>   
>
> 
>
> Something along those lines should suffice google and the ant page
> should suffice
> To fill in all the blanks, but to review basically set all the
> properties (dirs,
> Files, libs, etc.) then move them to the appropriate folders for the
> WEB-INF,
> Then compile and make a war file and distribute accordingly.
>
>
> -Original Message-
> From: Session Mwamufiya [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 11, 2007 2:59 PM
> To: 'Struts Users Mailing List'
> Subject: build.xml file for struts 2
>
> Hello,
>
>
>
> Could someone point me to a working build.xml file that I could use
> for
> a
> simple struts 2 application (helloworld)?  I tried the tutorial from
> roseindia, and that build file doesn't result in a working web app,
> though
> ant says that the build was successful.  I don't see all of the
> lib/*.jar
> files included in the classpath, and it puts the compiled class
> files in
> WEB-INF/src/classes instead of WEB-INF/classes; there must be other
> issues
> too that I haven't figured out.  Could someone point me to a simple
> working
> build.xml for struts 2 applications, or a good tutorial that I could
> use?
>
>
>
> Thanks,
>
>
>
> Session A. Mwamufiya
>
> Carnegie Mellon University
>
> MBA | Tepper School of Business
>
> MSE (software eng.) | School of Computer Science
>
> T: (412) 508-5455 | [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: build.xml file for struts 2

2007-06-11 Thread James Mitchell

You can generate an Ant build file from any project that uses Maven.

  $ mvn ant:ant


--
James Mitchell



On Jun 11, 2007, at 4:49 PM, Session Mwamufiya wrote:


Thanks for the file, but I would really need to see a working example,
because all of these files and directories here and there are too  
confusing.
I wish someone could point me to a helloworld tutorial that  
actually has a

working version.

Thanks

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | [EMAIL PROTECTED]

-Original Message-
From: Carroll, Samuel Nicholas [mailto:[EMAIL PROTECTED]
Sent: Monday, June 11, 2007 3:11 PM
To: Struts Users Mailing List
Subject: RE: build.xml file for struts 2

Here is the basic layout for a build.xml for the struts appilcations I
develop:




FULL PROJECT NAME





..

 

 


































etc...











Something along those lines should suffice google and the ant page
should suffice
To fill in all the blanks, but to review basically set all the
properties (dirs,
Files, libs, etc.) then move them to the appropriate folders for the
WEB-INF,
Then compile and make a war file and distribute accordingly.


-Original Message-
From: Session Mwamufiya [mailto:[EMAIL PROTECTED]
Sent: Monday, June 11, 2007 2:59 PM
To: 'Struts Users Mailing List'
Subject: build.xml file for struts 2

Hello,



Could someone point me to a working build.xml file that I could use  
for

a
simple struts 2 application (helloworld)?  I tried the tutorial from
roseindia, and that build file doesn't result in a working web app,
though
ant says that the build was successful.  I don't see all of the
lib/*.jar
files included in the classpath, and it puts the compiled class  
files in

WEB-INF/src/classes instead of WEB-INF/classes; there must be other
issues
too that I haven't figured out.  Could someone point me to a simple
working
build.xml for struts 2 applications, or a good tutorial that I could
use?



Thanks,



Session A. Mwamufiya

Carnegie Mellon University

MBA | Tepper School of Business

MSE (software eng.) | School of Computer Science

T: (412) 508-5455 | [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: build.xml file for struts 2

2007-06-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Session,

Session Mwamufiya wrote:
> Thanks for the file, but I would really need to see a working example,
> because all of these files and directories here and there are too confusing.
> I wish someone could point me to a helloworld tutorial that actually has a
> working version.

In my experience, it's always better to build your own ant build
scripts. As you can see, taking someone else's file always results in
some confusion as you have no idea how or why some things work in
certain ways.

The best thing to do is to start with something simple and continue
adding to it until it meets your needs. I recommend starting with a
simple "compile from ./src into ./build/classes, use libs in ./libs"
target and then add onto it from there.

You will get more experience using ant and you will more fully
understand other scripts that you may see in the future.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGbbxr9CaO5/Lv0PARAvL+AKDESsetAaeI1M7+tjKsLQbTb9AodwCgpvuD
IV7ye0NdB0zsFa848UiOL2g=
=untQ
-END PGP SIGNATURE-

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



RE: build.xml file for struts 2

2007-06-11 Thread Session Mwamufiya
Thanks for the file, but I would really need to see a working example,
because all of these files and directories here and there are too confusing.
I wish someone could point me to a helloworld tutorial that actually has a
working version.

Thanks

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | [EMAIL PROTECTED]

-Original Message-
From: Carroll, Samuel Nicholas [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 11, 2007 3:11 PM
To: Struts Users Mailing List
Subject: RE: build.xml file for struts 2

Here is the basic layout for a build.xml for the struts appilcations I
develop:




FULL PROJECT NAME





..

   

   










  

  





















etc...



 







Something along those lines should suffice google and the ant page
should suffice
To fill in all the blanks, but to review basically set all the
properties (dirs,
Files, libs, etc.) then move them to the appropriate folders for the
WEB-INF,
Then compile and make a war file and distribute accordingly.


-Original Message-
From: Session Mwamufiya [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 11, 2007 2:59 PM
To: 'Struts Users Mailing List'
Subject: build.xml file for struts 2

Hello,

 

Could someone point me to a working build.xml file that I could use for
a
simple struts 2 application (helloworld)?  I tried the tutorial from
roseindia, and that build file doesn't result in a working web app,
though
ant says that the build was successful.  I don't see all of the
lib/*.jar
files included in the classpath, and it puts the compiled class files in
WEB-INF/src/classes instead of WEB-INF/classes; there must be other
issues
too that I haven't figured out.  Could someone point me to a simple
working
build.xml for struts 2 applications, or a good tutorial that I could
use?

 

Thanks,

 

Session A. Mwamufiya

Carnegie Mellon University

MBA | Tepper School of Business

MSE (software eng.) | School of Computer Science

T: (412) 508-5455 | [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: build.xml file for struts 2

2007-06-11 Thread Carroll, Samuel Nicholas
Here is the basic layout for a build.xml for the struts appilcations I
develop:




FULL PROJECT NAME





..

   

   










  

  





















etc...



 







Something along those lines should suffice google and the ant page
should suffice
To fill in all the blanks, but to review basically set all the
properties (dirs,
Files, libs, etc.) then move them to the appropriate folders for the
WEB-INF,
Then compile and make a war file and distribute accordingly.


-Original Message-
From: Session Mwamufiya [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 11, 2007 2:59 PM
To: 'Struts Users Mailing List'
Subject: build.xml file for struts 2

Hello,

 

Could someone point me to a working build.xml file that I could use for
a
simple struts 2 application (helloworld)?  I tried the tutorial from
roseindia, and that build file doesn't result in a working web app,
though
ant says that the build was successful.  I don't see all of the
lib/*.jar
files included in the classpath, and it puts the compiled class files in
WEB-INF/src/classes instead of WEB-INF/classes; there must be other
issues
too that I haven't figured out.  Could someone point me to a simple
working
build.xml for struts 2 applications, or a good tutorial that I could
use?

 

Thanks,

 

Session A. Mwamufiya

Carnegie Mellon University

MBA | Tepper School of Business

MSE (software eng.) | School of Computer Science

T: (412) 508-5455 | [EMAIL PROTECTED]

 



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



build.xml file for struts 2

2007-06-11 Thread Session Mwamufiya
Hello,

 

Could someone point me to a working build.xml file that I could use for a
simple struts 2 application (helloworld)?  I tried the tutorial from
roseindia, and that build file doesn't result in a working web app, though
ant says that the build was successful.  I don't see all of the lib/*.jar
files included in the classpath, and it puts the compiled class files in
WEB-INF/src/classes instead of WEB-INF/classes; there must be other issues
too that I haven't figured out.  Could someone point me to a simple working
build.xml for struts 2 applications, or a good tutorial that I could use?

 

Thanks,

 

Session A. Mwamufiya

Carnegie Mellon University

MBA | Tepper School of Business

MSE (software eng.) | School of Computer Science

T: (412) 508-5455 | [EMAIL PROTECTED]