You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Session Mwamufiya <sm...@andrew.cmu.edu> on 2007/06/09 19:44:29 UTC

running the test in the HelloWorld tutorial

Hello,

 

I've been able to set up struts 2 after a long review of everything needed,
and am now looking to run the test that was given in the HelloWorld tutorial
to test the HelloWorld action.  I understand what the code does, but what do
I need to do to run the test and get its results from within a web page or
command line?  Could someone give me a simple step by step method that I
could reproduce?

 

Thanks,

 

Session A. Mwamufiya

Carnegie Mellon University

MBA | Tepper School of Business

MSE (software eng.) | School of Computer Science

T: (412) 508-5455 | semwamufiya@cmu.edu

 


RE: running the test in the HelloWorld tutorial

Posted by Session Mwamufiya <sm...@andrew.cmu.edu>.
GREAT!!! It works!  You guys are awesome.  Special thanks to Dave and Wendy
for not giving up on me :).

Thanks again,

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | semwamufiya@cmu.edu


-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Saturday, June 09, 2007 5:57 PM
To: Struts Users Mailing List
Subject: Re: running the test in the HelloWorld tutorial

On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> I moved my build.bat file to the root level, and am only using one file to
> build the code, the test, and run the test.  This is the content of
> build.bat:
>
> @echo off
> set
>
CLASSPATH=WEB-INF\lib\xwork-2.0.1.jar;WEB-INF\lib\junit-4.3.1.jar;WEB-INF\cl
> asses;WEB-INF\src\test

Echoing Dave, you need to put all of the dependencies on the
classpath.  Look at the list of jars at the bottom of my last message.
 You probably don't need all of those for this simple example, but you
need more than you have listed above.

> javac WEB-INF\src\java\*.java -d WEB-INF\classes
>
> javac WEB-INF\src\test\*.java -d WEB-INF\classes

So far, so good...

> I modified my HelloWorldTest.java file as follows according to JUnit.org:

Unnecessary, but JUnit 4 with annotations is more fun. :)

> The output I get is:
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Add the commons-logging jar to the classpath.  If you get another
NoClassDefFoundError, then look at the list of jars and see if there
is a likely suspect.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: running the test in the HelloWorld tutorial

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> I moved my build.bat file to the root level, and am only using one file to
> build the code, the test, and run the test.  This is the content of
> build.bat:
>
> @echo off
> set
> CLASSPATH=WEB-INF\lib\xwork-2.0.1.jar;WEB-INF\lib\junit-4.3.1.jar;WEB-INF\cl
> asses;WEB-INF\src\test

Echoing Dave, you need to put all of the dependencies on the
classpath.  Look at the list of jars at the bottom of my last message.
 You probably don't need all of those for this simple example, but you
need more than you have listed above.

> javac WEB-INF\src\java\*.java -d WEB-INF\classes
>
> javac WEB-INF\src\test\*.java -d WEB-INF\classes

So far, so good...

> I modified my HelloWorldTest.java file as follows according to JUnit.org:

Unnecessary, but JUnit 4 with annotations is more fun. :)

> The output I get is:
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory

Add the commons-logging jar to the classpath.  If you get another
NoClassDefFoundError, then look at the list of jars and see if there
is a likely suspect.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: running the test in the HelloWorld tutorial

Posted by "Frank W. Zammetti" <fz...@omnytex.com>.
Your classpath does not include Commons Logging, hence the 
NoClassDefFoundError exception.  Note that as written, your batch file 
is overwriting any classpath you may otherwise have had before that... 
if your intent was to add to the classpath, you need to add %classpath%; 
either at the beginning or end of what you have now.  If that's not what 
you meant to do, add the JCL JAR to the classpath in the batch file and 
that exception should go away.

Frank

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@hotmail.com
Author of "Practical Ajax Projects With Java Technology"
  (2006, Apress, ISBN 1-59059-695-1)
and "JavaScript, DOM Scripting and Ajax Projects"
  (2007, Apress, ISBN 1-59059-816-4)
Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

Session Mwamufiya wrote:
> I'm sorry to be dense about this, but it's not working for me.  Here is what
> I've done:
> 
> I moved my build.bat file to the root level, and am only using one file to
> build the code, the test, and run the test.  This is the content of
> build.bat:
> 
> @echo off
> set
> CLASSPATH=WEB-INF\lib\xwork-2.0.1.jar;WEB-INF\lib\junit-4.3.1.jar;WEB-INF\cl
> asses;WEB-INF\src\test
> 
> javac WEB-INF\src\java\*.java -d WEB-INF\classes
> 
> javac WEB-INF\src\test\*.java -d WEB-INF\classes
> 
> java helloworld.HelloWorldTest
> 
> 
> I modified my HelloWorldTest.java file as follows according to JUnit.org:
> 
> package helloworld;
> 
> import junit.framework.TestCase;
> import com.opensymphony.xwork2.Action;
> import com.opensymphony.xwork2.ActionSupport;
> import org.junit.*;
> 
> public class HelloWorldTest extends TestCase {
> 
>   @Test
>   public void testHelloWorld() throws Exception {
> 
>     HelloWorld hello_world = new HelloWorld();
>     String result = hello_world.execute();
> 
>     assertTrue("Expected a success result!",
>       ActionSupport.SUCCESS.equals(result));
> 
>     assertTrue("Expected the default message!",
>       HelloWorld.MESSAGE.equals(hello_world.getMessage()));
>     }
> 
>   public static void main(String args[]) {
>     org.junit.runner.JUnitCore.main("helloworld.HelloWorldTest");
>     }
> }
> 
> 
> The output I get is:
> java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
>         at
> com.opensymphony.xwork2.ActionSupport.<clinit>(ActionSupport.java:22)
> 
>         at helloworld.HelloWorldTest.testHelloWorld(HelloWorldTest.java:13)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at junit.framework.TestCase.runTest(TestCase.java:168)
>         at junit.framework.TestCase.runBare(TestCase.java:134)
>         at junit.framework.TestResult$1.protect(TestResult.java:110)
>         at junit.framework.TestResult.runProtected(TestResult.java:128)
>         at junit.framework.TestResult.run(TestResult.java:113)
>         at junit.framework.TestCase.run(TestCase.java:124)
>         at junit.framework.TestSuite.runTest(TestSuite.java:232)
>         at junit.framework.TestSuite.run(TestSuite.java:227)
>         at
> org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.
> java:76)
>         at
> org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:2
> 9)
>         at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
>         at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
>         at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
>         at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
>         at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
>         at helloworld.HelloWorldTest.main(HelloWorldTest.java:24)
> 
> FAILURES!!!
> Tests run: 1,  Failures: 1
> 
> Anything apparently wrong in what I'm doing?
> 
> Session A. Mwamufiya
> Carnegie Mellon University
> MBA | Tepper School of Business
> MSE (software eng.) | School of Computer Science
> T: (412) 508-5455 | semwamufiya@cmu.edu
> 
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com] 
> Sent: Saturday, June 09, 2007 4:29 PM
> To: Struts Users Mailing List
> Subject: RE: running the test in the HelloWorld tutorial
> 
> --- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:
>> - WEB-INF/scr/Test: my test java files, including
>> HelloWorldTest.java; as
>> well as the compiled class files for test java files
>> - WEB-INF/classes: contains struts.xml
>> - WEB-INF/classes/helloworld: the compiled class
>> files for the regular java
>> files
>>
>> I'm running the test from "WEB-INF/scr/Test" where
>> both
>> "HelloWorldTest.java" and "HelloWorldTest.class" are
>> located.
> 
> You still need to add the directory containing the
> test classes to your CLASSPATH.
> 
> I would also recommend running all that kind of stuff
> from the root directory of the project; that may
> better prepare you for using Ant or Maven in the
> future.
> 
> I'm assuming the repetition of "scr" above (as opposed
> to "src") is just an... oddly repetitive typo. I'd
> also name the "Test" directory "test" (all
> lower-case).
> 
> d.
> 
> 
> 
>        
> ____________________________________________________________________________
> ________
> Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated
> for today's economy) at Yahoo! Games.
> http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


[OT] RE: running the test in the HelloWorld tutorial

Posted by Dave Newton <ne...@yahoo.com>.
--- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:
> The output I get is:
> java.lang.NoClassDefFoundError:
> org/apache/commons/logging/LogFactory

That's because you don't have all the dependent
classes on your classpath, like I said in an earlier
email.

d.



       
____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Session Mwamufiya <sm...@andrew.cmu.edu>.
I'm sorry to be dense about this, but it's not working for me.  Here is what
I've done:

I moved my build.bat file to the root level, and am only using one file to
build the code, the test, and run the test.  This is the content of
build.bat:

@echo off
set
CLASSPATH=WEB-INF\lib\xwork-2.0.1.jar;WEB-INF\lib\junit-4.3.1.jar;WEB-INF\cl
asses;WEB-INF\src\test

javac WEB-INF\src\java\*.java -d WEB-INF\classes

javac WEB-INF\src\test\*.java -d WEB-INF\classes

java helloworld.HelloWorldTest


I modified my HelloWorldTest.java file as follows according to JUnit.org:

package helloworld;

import junit.framework.TestCase;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import org.junit.*;

public class HelloWorldTest extends TestCase {

  @Test
  public void testHelloWorld() throws Exception {

    HelloWorld hello_world = new HelloWorld();
    String result = hello_world.execute();

    assertTrue("Expected a success result!",
      ActionSupport.SUCCESS.equals(result));

    assertTrue("Expected the default message!",
      HelloWorld.MESSAGE.equals(hello_world.getMessage()));
    }

  public static void main(String args[]) {
    org.junit.runner.JUnitCore.main("helloworld.HelloWorldTest");
    }
}


The output I get is:
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
        at
com.opensymphony.xwork2.ActionSupport.<clinit>(ActionSupport.java:22)

        at helloworld.HelloWorldTest.testHelloWorld(HelloWorldTest.java:13)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at junit.framework.TestCase.runTest(TestCase.java:168)
        at junit.framework.TestCase.runBare(TestCase.java:134)
        at junit.framework.TestResult$1.protect(TestResult.java:110)
        at junit.framework.TestResult.runProtected(TestResult.java:128)
        at junit.framework.TestResult.run(TestResult.java:113)
        at junit.framework.TestCase.run(TestCase.java:124)
        at junit.framework.TestSuite.runTest(TestSuite.java:232)
        at junit.framework.TestSuite.run(TestSuite.java:227)
        at
org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.
java:76)
        at
org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:2
9)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
        at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
        at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
        at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
        at helloworld.HelloWorldTest.main(HelloWorldTest.java:24)

FAILURES!!!
Tests run: 1,  Failures: 1

Anything apparently wrong in what I'm doing?

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | semwamufiya@cmu.edu

-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Saturday, June 09, 2007 4:29 PM
To: Struts Users Mailing List
Subject: RE: running the test in the HelloWorld tutorial

--- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:
> - WEB-INF/scr/Test: my test java files, including
> HelloWorldTest.java; as
> well as the compiled class files for test java files
> - WEB-INF/classes: contains struts.xml
> - WEB-INF/classes/helloworld: the compiled class
> files for the regular java
> files
> 
> I'm running the test from "WEB-INF/scr/Test" where
> both
> "HelloWorldTest.java" and "HelloWorldTest.class" are
> located.

You still need to add the directory containing the
test classes to your CLASSPATH.

I would also recommend running all that kind of stuff
from the root directory of the project; that may
better prepare you for using Ant or Maven in the
future.

I'm assuming the repetition of "scr" above (as opposed
to "src") is just an... oddly repetitive typo. I'd
also name the "Test" directory "test" (all
lower-case).

d.



       
____________________________________________________________________________
________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated
for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: running the test in the HelloWorld tutorial

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> I'm running the test from "WEB-INF/scr/Test" where both
> "HelloWorldTest.java" and "HelloWorldTest.class" are located.

If you changed the package for the action, you need to do the same for
the test.  Do they both have "package helloworld;" at the top?

Both .class files need to be in a directory structure matching the
package-- in this case, in a directory named "helloworld".

The directory just above 'helloworld' needs to be on the classpath.
In your case that's probably WEB-INF/classes.

The test works fine here with JUnit 4.3.1.  Here is the classpath that
Maven Surefire constructed:
[DEBUG] Classpath: [C:\cygwin\home\wsmoak\hello-world\target\classes
 C:\cygwin\home\wsmoak\hello-world\target\test-classes
 C:\java\m2-repository\opensymphony\xwork\2.0.1\xwork-2.0.1.jar
 C:\java\m2-repository\org\apache\struts\struts2-core\2.0.6\struts2-core-2.0.6.jar
 C:\java\m2-repository\commons-logging\commons-logging\1.0.4\commons-logging-1.0.4.jar
 c:\Program Files\Java\jdk1.5.0_10\jre\..\lib\tools.jar
 C:\java\m2-repository\opensymphony\ognl\2.6.11\ognl-2.6.11.jar
 C:\java\m2-repository\junit\junit\4.3.1\junit-4.3.1.jar
 C:\java\m2-repository\freemarker\freemarker\2.3.8\freemarker-2.3.8.jar]

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Dave Newton <ne...@yahoo.com>.
--- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:
> - WEB-INF/scr/Test: my test java files, including
> HelloWorldTest.java; as
> well as the compiled class files for test java files
> - WEB-INF/classes: contains struts.xml
> - WEB-INF/classes/helloworld: the compiled class
> files for the regular java
> files
> 
> I'm running the test from "WEB-INF/scr/Test" where
> both
> "HelloWorldTest.java" and "HelloWorldTest.class" are
> located.

You still need to add the directory containing the
test classes to your CLASSPATH.

I would also recommend running all that kind of stuff
from the root directory of the project; that may
better prepare you for using Ant or Maven in the
future.

I'm assuming the repetition of "scr" above (as opposed
to "src") is just an... oddly repetitive typo. I'd
also name the "Test" directory "test" (all
lower-case).

d.



       
____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow  

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Session Mwamufiya <sm...@andrew.cmu.edu>.
Hi Dave,

I followed the clean setup from the struts 2 tutorial page to set up my
directory.  It looks like this from my app root folder in Tomcat's webapps
folder:
- jsp pages are in the root directory
- META-INF
- WEB-INF: contains web.xml
- WEB-INF/lib: the 5 jars required to run struts 2 + JUnit 4.3.1 jar
- WEB-INF/scr/java: my java files, including HelloWorld.java
- WEB-INF/scr/Test: my test java files, including HelloWorldTest.java; as
well as the compiled class files for test java files
- WEB-INF/classes: contains struts.xml
- WEB-INF/classes/helloworld: the compiled class files for the regular java
files

I'm running the test from "WEB-INF/scr/Test" where both
"HelloWorldTest.java" and "HelloWorldTest.class" are located.

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | semwamufiya@cmu.edu


-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Saturday, June 09, 2007 4:11 PM
To: Struts Users Mailing List
Subject: RE: running the test in the HelloWorld tutorial

Okay, what is your directory structure? Are both .java
/ .class files in the same directory? What directory
are you running the tests from? 

(That doesn't seem like enough .jar files for a
working CLASSPATH, either, but I don't know what
dependencies XWork has.)

--- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> Here's my classpath:
> 
> set
>
CLASSPATH=..\..\lib\xwork-2.0.1.jar;..\..\lib\junit-4.3.1.jar;..\..\classes
> 
> I add the last path item in order to access the
> "HelloWorld.class" class
> file.
> 
> 
> Session A. Mwamufiya
> Carnegie Mellon University
> MBA | Tepper School of Business
> MSE (software eng.) | School of Computer Science
> T: (412) 508-5455 | semwamufiya@cmu.edu
> 
> 
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com] 
> Sent: Saturday, June 09, 2007 3:50 PM
> To: Struts Users Mailing List
> Subject: RE: running the test in the HelloWorld
> tutorial
> 
> What is your CLASSPATH?
> 
> --- Session Mwamufiya <sm...@andrew.cmu.edu>
> wrote:
> 
> > Thanks for the info; however, though the test
> > compiles with no issues and
> > creates a "HelloWorldTest.class" file in the same
> > directory as the
> > "HelloWorldTest.java" file, I keep getting an
> error
> > when I try to run the
> > test, which states that if can't find the class
> > HelloWorldTest (though it is
> > there in the same directory).
> > 
> > Here is my "HelloWorldTest.java" file:
> > package helloworld;
> > 
> > import junit.framework.TestCase;
> > import com.opensymphony.xwork2.Action;
> > import com.opensymphony.xwork2.ActionSupport;
> > 
> > public class HelloWorldTest extends TestCase {
> > 
> >   public void testHelloWorld() throws Exception {
> > 
> >     HelloWorld hello_world = new HelloWorld();
> >     String result = hello_world.execute();
> > 
> >     assertTrue("Expected a success result!",
> >       ActionSupport.SUCCESS.equals(result));
> > 
> >     assertTrue("Expected the default message!",
> >      
> >
>
HelloWorld.MESSAGE.equals(hello_world.getMessage()));
> >     }
> > }
> > 
> > I just changed the package name from tutorial to
> > helloworld for my own
> > purposes, and compiled the file by putting the
> JUnit
> > 4 jar in the classpath,
> > which built fine.  I'm not sure what could be
> wrong
> > with the test?
> > 
> > Here's the output from the command line:
> > JUnit version 4.3.1
> > Could not find class: helloworld.HelloWorldTest
> > 
> > Time: 0
> > 
> > OK (0 tests)
> > 
> > Any ideas?
> > 
> > Thanks a million.
> > 
> > Session A. Mwamufiya
> > Carnegie Mellon University
> > MBA | Tepper School of Business
> > MSE (software eng.) | School of Computer Science
> > T: (412) 508-5455 | semwamufiya@cmu.edu
> > 
> > -----Original Message-----
> > From: Wendy Smoak [mailto:wsmoak@gmail.com] 
> > Sent: Saturday, June 09, 2007 2:54 PM
> > To: Struts Users Mailing List
> > Subject: Re: running the test in the HelloWorld
> > tutorial
> > 
> > On 6/9/07, Session Mwamufiya
> > <sm...@andrew.cmu.edu> wrote:
> > 
> > >  I currently build my java files with a .bat
> files
> > that simply
> > > calls on javac and places the class files where
> I
> > want them.
> > 
> > That's the info I was looking for. :)
> > 
> > Are you already able to compile the test?  (That
> > will tell me you've
> > already downloaded JUnit and put it on the
> > classpath, because the test
> > says 'import junit.framework.TestCase;')
> > 
> > To run the test from the command line (or batch
> > file) take a look at
> > this JUnit FAQ: 
> >
> http://junit.sourceforge.net/doc/faq/faq.htm#tests_1
> > 
> > I've never done this, but (with the appropriate
> > things on the classpath,)
> > try:
> > 
> >    java org.junit.runner.JUnitCore
> > tutorial.HelloWorldTest
> > 
> > > I would prefer to keep things as simple as this,
> > because trying to
> > understand
> > > Maven would be adding yet another layer of
> > complexity.
> > 
> > Agreed.
> > 
> > -- 
> > Wendy
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> > 
> 
> 
> 
>        
>
____________________________________________________________________________
> ________
> Take the Internet to Go: Yahoo!Go puts the Internet
> in your pocket: mail,
> news, photos & more. 
> http://mobile.yahoo.com/go?refer=1GNXIC
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



       
____________________________________________________________________________
________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Dave Newton <ne...@yahoo.com>.
Okay, what is your directory structure? Are both .java
/ .class files in the same directory? What directory
are you running the tests from? 

(That doesn't seem like enough .jar files for a
working CLASSPATH, either, but I don't know what
dependencies XWork has.)

--- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> Here's my classpath:
> 
> set
>
CLASSPATH=..\..\lib\xwork-2.0.1.jar;..\..\lib\junit-4.3.1.jar;..\..\classes
> 
> I add the last path item in order to access the
> "HelloWorld.class" class
> file.
> 
> 
> Session A. Mwamufiya
> Carnegie Mellon University
> MBA | Tepper School of Business
> MSE (software eng.) | School of Computer Science
> T: (412) 508-5455 | semwamufiya@cmu.edu
> 
> 
> -----Original Message-----
> From: Dave Newton [mailto:newton.dave@yahoo.com] 
> Sent: Saturday, June 09, 2007 3:50 PM
> To: Struts Users Mailing List
> Subject: RE: running the test in the HelloWorld
> tutorial
> 
> What is your CLASSPATH?
> 
> --- Session Mwamufiya <sm...@andrew.cmu.edu>
> wrote:
> 
> > Thanks for the info; however, though the test
> > compiles with no issues and
> > creates a "HelloWorldTest.class" file in the same
> > directory as the
> > "HelloWorldTest.java" file, I keep getting an
> error
> > when I try to run the
> > test, which states that if can't find the class
> > HelloWorldTest (though it is
> > there in the same directory).
> > 
> > Here is my "HelloWorldTest.java" file:
> > package helloworld;
> > 
> > import junit.framework.TestCase;
> > import com.opensymphony.xwork2.Action;
> > import com.opensymphony.xwork2.ActionSupport;
> > 
> > public class HelloWorldTest extends TestCase {
> > 
> >   public void testHelloWorld() throws Exception {
> > 
> >     HelloWorld hello_world = new HelloWorld();
> >     String result = hello_world.execute();
> > 
> >     assertTrue("Expected a success result!",
> >       ActionSupport.SUCCESS.equals(result));
> > 
> >     assertTrue("Expected the default message!",
> >      
> >
>
HelloWorld.MESSAGE.equals(hello_world.getMessage()));
> >     }
> > }
> > 
> > I just changed the package name from tutorial to
> > helloworld for my own
> > purposes, and compiled the file by putting the
> JUnit
> > 4 jar in the classpath,
> > which built fine.  I'm not sure what could be
> wrong
> > with the test?
> > 
> > Here's the output from the command line:
> > JUnit version 4.3.1
> > Could not find class: helloworld.HelloWorldTest
> > 
> > Time: 0
> > 
> > OK (0 tests)
> > 
> > Any ideas?
> > 
> > Thanks a million.
> > 
> > Session A. Mwamufiya
> > Carnegie Mellon University
> > MBA | Tepper School of Business
> > MSE (software eng.) | School of Computer Science
> > T: (412) 508-5455 | semwamufiya@cmu.edu
> > 
> > -----Original Message-----
> > From: Wendy Smoak [mailto:wsmoak@gmail.com] 
> > Sent: Saturday, June 09, 2007 2:54 PM
> > To: Struts Users Mailing List
> > Subject: Re: running the test in the HelloWorld
> > tutorial
> > 
> > On 6/9/07, Session Mwamufiya
> > <sm...@andrew.cmu.edu> wrote:
> > 
> > >  I currently build my java files with a .bat
> files
> > that simply
> > > calls on javac and places the class files where
> I
> > want them.
> > 
> > That's the info I was looking for. :)
> > 
> > Are you already able to compile the test?  (That
> > will tell me you've
> > already downloaded JUnit and put it on the
> > classpath, because the test
> > says 'import junit.framework.TestCase;')
> > 
> > To run the test from the command line (or batch
> > file) take a look at
> > this JUnit FAQ: 
> >
> http://junit.sourceforge.net/doc/faq/faq.htm#tests_1
> > 
> > I've never done this, but (with the appropriate
> > things on the classpath,)
> > try:
> > 
> >    java org.junit.runner.JUnitCore
> > tutorial.HelloWorldTest
> > 
> > > I would prefer to keep things as simple as this,
> > because trying to
> > understand
> > > Maven would be adding yet another layer of
> > complexity.
> > 
> > Agreed.
> > 
> > -- 
> > Wendy
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> > 
> > 
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> > user-help@struts.apache.org
> > 
> > 
> 
> 
> 
>        
>
____________________________________________________________________________
> ________
> Take the Internet to Go: Yahoo!Go puts the Internet
> in your pocket: mail,
> news, photos & more. 
> http://mobile.yahoo.com/go?refer=1GNXIC
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Session Mwamufiya <sm...@andrew.cmu.edu>.
Here's my classpath:

set
CLASSPATH=..\..\lib\xwork-2.0.1.jar;..\..\lib\junit-4.3.1.jar;..\..\classes

I add the last path item in order to access the "HelloWorld.class" class
file.


Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | semwamufiya@cmu.edu


-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Saturday, June 09, 2007 3:50 PM
To: Struts Users Mailing List
Subject: RE: running the test in the HelloWorld tutorial

What is your CLASSPATH?

--- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> Thanks for the info; however, though the test
> compiles with no issues and
> creates a "HelloWorldTest.class" file in the same
> directory as the
> "HelloWorldTest.java" file, I keep getting an error
> when I try to run the
> test, which states that if can't find the class
> HelloWorldTest (though it is
> there in the same directory).
> 
> Here is my "HelloWorldTest.java" file:
> package helloworld;
> 
> import junit.framework.TestCase;
> import com.opensymphony.xwork2.Action;
> import com.opensymphony.xwork2.ActionSupport;
> 
> public class HelloWorldTest extends TestCase {
> 
>   public void testHelloWorld() throws Exception {
> 
>     HelloWorld hello_world = new HelloWorld();
>     String result = hello_world.execute();
> 
>     assertTrue("Expected a success result!",
>       ActionSupport.SUCCESS.equals(result));
> 
>     assertTrue("Expected the default message!",
>      
>
HelloWorld.MESSAGE.equals(hello_world.getMessage()));
>     }
> }
> 
> I just changed the package name from tutorial to
> helloworld for my own
> purposes, and compiled the file by putting the JUnit
> 4 jar in the classpath,
> which built fine.  I'm not sure what could be wrong
> with the test?
> 
> Here's the output from the command line:
> JUnit version 4.3.1
> Could not find class: helloworld.HelloWorldTest
> 
> Time: 0
> 
> OK (0 tests)
> 
> Any ideas?
> 
> Thanks a million.
> 
> Session A. Mwamufiya
> Carnegie Mellon University
> MBA | Tepper School of Business
> MSE (software eng.) | School of Computer Science
> T: (412) 508-5455 | semwamufiya@cmu.edu
> 
> -----Original Message-----
> From: Wendy Smoak [mailto:wsmoak@gmail.com] 
> Sent: Saturday, June 09, 2007 2:54 PM
> To: Struts Users Mailing List
> Subject: Re: running the test in the HelloWorld
> tutorial
> 
> On 6/9/07, Session Mwamufiya
> <sm...@andrew.cmu.edu> wrote:
> 
> >  I currently build my java files with a .bat files
> that simply
> > calls on javac and places the class files where I
> want them.
> 
> That's the info I was looking for. :)
> 
> Are you already able to compile the test?  (That
> will tell me you've
> already downloaded JUnit and put it on the
> classpath, because the test
> says 'import junit.framework.TestCase;')
> 
> To run the test from the command line (or batch
> file) take a look at
> this JUnit FAQ: 
> http://junit.sourceforge.net/doc/faq/faq.htm#tests_1
> 
> I've never done this, but (with the appropriate
> things on the classpath,)
> try:
> 
>    java org.junit.runner.JUnitCore
> tutorial.HelloWorldTest
> 
> > I would prefer to keep things as simple as this,
> because trying to
> understand
> > Maven would be adding yet another layer of
> complexity.
> 
> Agreed.
> 
> -- 
> Wendy
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



       
____________________________________________________________________________
________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail,
news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Dave Newton <ne...@yahoo.com>.
What is your CLASSPATH?

--- Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> Thanks for the info; however, though the test
> compiles with no issues and
> creates a "HelloWorldTest.class" file in the same
> directory as the
> "HelloWorldTest.java" file, I keep getting an error
> when I try to run the
> test, which states that if can't find the class
> HelloWorldTest (though it is
> there in the same directory).
> 
> Here is my "HelloWorldTest.java" file:
> package helloworld;
> 
> import junit.framework.TestCase;
> import com.opensymphony.xwork2.Action;
> import com.opensymphony.xwork2.ActionSupport;
> 
> public class HelloWorldTest extends TestCase {
> 
>   public void testHelloWorld() throws Exception {
> 
>     HelloWorld hello_world = new HelloWorld();
>     String result = hello_world.execute();
> 
>     assertTrue("Expected a success result!",
>       ActionSupport.SUCCESS.equals(result));
> 
>     assertTrue("Expected the default message!",
>      
>
HelloWorld.MESSAGE.equals(hello_world.getMessage()));
>     }
> }
> 
> I just changed the package name from tutorial to
> helloworld for my own
> purposes, and compiled the file by putting the JUnit
> 4 jar in the classpath,
> which built fine.  I'm not sure what could be wrong
> with the test?
> 
> Here's the output from the command line:
> JUnit version 4.3.1
> Could not find class: helloworld.HelloWorldTest
> 
> Time: 0
> 
> OK (0 tests)
> 
> Any ideas?
> 
> Thanks a million.
> 
> Session A. Mwamufiya
> Carnegie Mellon University
> MBA | Tepper School of Business
> MSE (software eng.) | School of Computer Science
> T: (412) 508-5455 | semwamufiya@cmu.edu
> 
> -----Original Message-----
> From: Wendy Smoak [mailto:wsmoak@gmail.com] 
> Sent: Saturday, June 09, 2007 2:54 PM
> To: Struts Users Mailing List
> Subject: Re: running the test in the HelloWorld
> tutorial
> 
> On 6/9/07, Session Mwamufiya
> <sm...@andrew.cmu.edu> wrote:
> 
> >  I currently build my java files with a .bat files
> that simply
> > calls on javac and places the class files where I
> want them.
> 
> That's the info I was looking for. :)
> 
> Are you already able to compile the test?  (That
> will tell me you've
> already downloaded JUnit and put it on the
> classpath, because the test
> says 'import junit.framework.TestCase;')
> 
> To run the test from the command line (or batch
> file) take a look at
> this JUnit FAQ: 
> http://junit.sourceforge.net/doc/faq/faq.htm#tests_1
> 
> I've never done this, but (with the appropriate
> things on the classpath,)
> try:
> 
>    java org.junit.runner.JUnitCore
> tutorial.HelloWorldTest
> 
> > I would prefer to keep things as simple as this,
> because trying to
> understand
> > Maven would be adding yet another layer of
> complexity.
> 
> Agreed.
> 
> -- 
> Wendy
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



       
____________________________________________________________________________________
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. 
http://mobile.yahoo.com/go?refer=1GNXIC

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Session Mwamufiya <sm...@andrew.cmu.edu>.
Thanks for the info; however, though the test compiles with no issues and
creates a "HelloWorldTest.class" file in the same directory as the
"HelloWorldTest.java" file, I keep getting an error when I try to run the
test, which states that if can't find the class HelloWorldTest (though it is
there in the same directory).

Here is my "HelloWorldTest.java" file:
package helloworld;

import junit.framework.TestCase;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class HelloWorldTest extends TestCase {

  public void testHelloWorld() throws Exception {

    HelloWorld hello_world = new HelloWorld();
    String result = hello_world.execute();

    assertTrue("Expected a success result!",
      ActionSupport.SUCCESS.equals(result));

    assertTrue("Expected the default message!",
      HelloWorld.MESSAGE.equals(hello_world.getMessage()));
    }
}

I just changed the package name from tutorial to helloworld for my own
purposes, and compiled the file by putting the JUnit 4 jar in the classpath,
which built fine.  I'm not sure what could be wrong with the test?

Here's the output from the command line:
JUnit version 4.3.1
Could not find class: helloworld.HelloWorldTest

Time: 0

OK (0 tests)

Any ideas?

Thanks a million.

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | semwamufiya@cmu.edu

-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Saturday, June 09, 2007 2:54 PM
To: Struts Users Mailing List
Subject: Re: running the test in the HelloWorld tutorial

On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

>  I currently build my java files with a .bat files that simply
> calls on javac and places the class files where I want them.

That's the info I was looking for. :)

Are you already able to compile the test?  (That will tell me you've
already downloaded JUnit and put it on the classpath, because the test
says 'import junit.framework.TestCase;')

To run the test from the command line (or batch file) take a look at
this JUnit FAQ:  http://junit.sourceforge.net/doc/faq/faq.htm#tests_1

I've never done this, but (with the appropriate things on the classpath,)
try:

   java org.junit.runner.JUnitCore tutorial.HelloWorldTest

> I would prefer to keep things as simple as this, because trying to
understand
> Maven would be adding yet another layer of complexity.

Agreed.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: running the test in the HelloWorld tutorial

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

>  I currently build my java files with a .bat files that simply
> calls on javac and places the class files where I want them.

That's the info I was looking for. :)

Are you already able to compile the test?  (That will tell me you've
already downloaded JUnit and put it on the classpath, because the test
says 'import junit.framework.TestCase;')

To run the test from the command line (or batch file) take a look at
this JUnit FAQ:  http://junit.sourceforge.net/doc/faq/faq.htm#tests_1

I've never done this, but (with the appropriate things on the classpath,) try:

   java org.junit.runner.JUnitCore tutorial.HelloWorldTest

> I would prefer to keep things as simple as this, because trying to understand
> Maven would be adding yet another layer of complexity.

Agreed.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Session Mwamufiya <sm...@andrew.cmu.edu>.
That's already over my head Wendy, I've never used Maven, and it seems
complicated.  I currently build my java files with a .bat files that simply
calls on javac and places the class files where I want them.  I would prefer
to keep things as simple as this, because trying to understand Maven would
be adding yet another layer of complexity.  Let me know if there's any
simple way to do this with just using a bat file that will compile and run
the test file, otherwise I'd rather use Eclipse than deal with Maven.

Thanks

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | semwamufiya@cmu.edu


-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Saturday, June 09, 2007 2:19 PM
To: Struts Users Mailing List
Subject: Re: running the test in the HelloWorld tutorial

On 6/9/07, Session A Mwamufiya <sm...@andrew.cmu.edu> wrote:

> That's exactly the one Wendy!  I wasn't using an IDE to code the java
pages for the HelloWorld tutorial, but my IDE of choice, if one is needed
for the test, is Eclipse 3.2.

An IDE is not required.  The tutorial assumes you have some favorite
development environment already, and are just adding the files to it.
What are you using to compile and build the application?  Maven? Ant?
Eclipse?

I would start with the Maven [1] webapp archetype:

mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp
-DgroupId=com.example -DartifactId=hello-world

That will set up most of the directory structure I need.  Then I'd add
the src/main/java and src/main/test directory, and proceed from there,
following the tutorial and using 'mvn install' to compile the code,
run the tests, package the webapp and install it into my local maven
repository.

[1] http://maven.apache.org

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: running the test in the HelloWorld tutorial

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/9/07, Session A Mwamufiya <sm...@andrew.cmu.edu> wrote:

> That's exactly the one Wendy!  I wasn't using an IDE to code the java pages for the HelloWorld tutorial, but my IDE of choice, if one is needed for the test, is Eclipse 3.2.

An IDE is not required.  The tutorial assumes you have some favorite
development environment already, and are just adding the files to it.
What are you using to compile and build the application?  Maven? Ant?
Eclipse?

I would start with the Maven [1] webapp archetype:

mvn archetype:create -DarchetypeArtifactId=maven-archetype-webapp
-DgroupId=com.example -DartifactId=hello-world

That will set up most of the directory structure I need.  Then I'd add
the src/main/java and src/main/test directory, and proceed from there,
following the tutorial and using 'mvn install' to compile the code,
run the tests, package the webapp and install it into my local maven
repository.

[1] http://maven.apache.org

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Session Mwamufiya <sm...@andrew.cmu.edu>.
Yes, Dave is right, it's the test that I'm interested in.

Thanks,

Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | semwamufiya@cmu.edu


-----Original Message-----
From: Dave Newton [mailto:newton.dave@yahoo.com] 
Sent: Saturday, June 09, 2007 2:19 PM
To: Struts Users Mailing List
Subject: RE: running the test in the HelloWorld tutorial

--- Deepak Kumar <de...@roseindia.net> wrote:
> Please chekck
>
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml

Hmm, I didn't see anything there regarding the tests,
which I think is what the OP was asking about?

d.



       
____________________________________________________________________________
________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Dave Newton <ne...@yahoo.com>.
--- Deepak Kumar <de...@roseindia.net> wrote:
> Please chekck
>
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml

Hmm, I didn't see anything there regarding the tests,
which I think is what the OP was asking about?

d.



       
____________________________________________________________________________________
Get the Yahoo! toolbar and be alerted to new email wherever you're surfing.
http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


RE: running the test in the HelloWorld tutorial

Posted by Deepak Kumar <de...@roseindia.net>.
Please chekck
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml

Thanks

-----Original Message-----
From: Session A Mwamufiya [mailto:smwamufi@andrew.cmu.edu]
Sent: Saturday, June 09, 2007 11:37 PM
To: Struts Users Mailing List
Subject: Re: running the test in the HelloWorld tutorial


That's exactly the one Wendy!  I wasn't using an IDE to code the java pages
for the HelloWorld tutorial, but my IDE of choice, if one is needed for the
test, is Eclipse 3.2.

Thanks a bunch
Session


> On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:
>
>> I've been able to set up struts 2 after a long review of everything
>> needed, and am now looking to run the test that was given in the
>> HelloWorld tutorial to test the HelloWorld action.  I understand what
>> the code does, but what do I need to do to run the test and get its
>> results from within a web page or command line?  Could someone give me a
>> simple step by step method that I could reproduce?
>
> Do you mean the HelloWorld test described here?
> http://struts.apache.org/2.x/docs/hello-world.html
>
> How to run it depends on what build tool or IDE you're using, so we'll
> need that information in order to help.
>
> -- Wendy
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional
> commands, e-mail: user-help@struts.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: running the test in the HelloWorld tutorial

Posted by Session A Mwamufiya <sm...@andrew.cmu.edu>.
That's exactly the one Wendy!  I wasn't using an IDE to code the java pages for the HelloWorld tutorial, but my IDE of choice, if one is needed for the test, is Eclipse 3.2.

Thanks a bunch
Session


> On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:
> 
>> I've been able to set up struts 2 after a long review of everything
>> needed, and am now looking to run the test that was given in the
>> HelloWorld tutorial to test the HelloWorld action.  I understand what
>> the code does, but what do I need to do to run the test and get its
>> results from within a web page or command line?  Could someone give me a
>> simple step by step method that I could reproduce?
> 
> Do you mean the HelloWorld test described here? 
> http://struts.apache.org/2.x/docs/hello-world.html
> 
> How to run it depends on what build tool or IDE you're using, so we'll 
> need that information in order to help.
> 
> -- Wendy
> 
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional
> commands, e-mail: user-help@struts.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: running the test in the HelloWorld tutorial

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/9/07, Session Mwamufiya <sm...@andrew.cmu.edu> wrote:

> I've been able to set up struts 2 after a long review of everything needed,
> and am now looking to run the test that was given in the HelloWorld tutorial
> to test the HelloWorld action.  I understand what the code does, but what do
> I need to do to run the test and get its results from within a web page or
> command line?  Could someone give me a simple step by step method that I
> could reproduce?

Do you mean the HelloWorld test described here?
http://struts.apache.org/2.x/docs/hello-world.html

How to run it depends on what build tool or IDE you're using, so we'll
need that information in order to help.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org