You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by Payal Pamnani <Pa...@quinnox.com> on 2003/01/14 06:04:22 UTC

RE: Turorial help

Hi,

Thanks for the reply. I have very well put the class files under
<tomcat>/webapps/<root>/web-inf/classes. I have tried putting the jar file
of my test classes under <tomcat>/webapps/<root>/web-inf/lib. but it gives
the same error. However, if i keep the same jar file under
<tomcat>/common/lib & set the same in my system classpath, then it gets the
servlet & runs it. But, i don't want to explicitly, run my test classes at
tomcat level as they are application specific, so it is better to keep them
at application level.

Please help me out ......

1 more query -----
If i keep all my test classes in a seperate root under webapps & my
application in a seperate root under webapps. When i run my test servlet in
one browser & my application in other browser. How do i verify my
application session in my test servlet. Say for e.g. in my application i set
some attribute say username once user logs in. If i want to test whether my
session in my application holds it or not how can i do it in a alltogether
new browser. I faced this problem while testing struts. How do i relate my
application with the test.

Thanks,
Payal Pamnani

RE: Turorial help

Posted by Vincent Massol <vm...@octo.com>.

> -----Original Message-----
> From: Payal Pamnani [mailto:PayalP@quinnox.com]
> Sent: 14 January 2003 06:04
> To: cactus-user@jakarta.apache.org
> Subject: RE: Turorial help
> 
> 
> Hi,
> 
> Thanks for the reply. I have very well put the class files under
> <tomcat>/webapps/<root>/web-inf/classes. I have tried putting the jar
file
> of my test classes under <tomcat>/webapps/<root>/web-inf/lib. but it
gives
> the same error. However, if i keep the same jar file under
> <tomcat>/common/lib & set the same in my system classpath, then it
gets
> the
> servlet & runs it. But, i don't want to explicitly, run my test
classes at
> tomcat level as they are application specific, so it is better to keep
> them
> at application level.
> 
> Please help me out ......

Please check http://jakarta.apache.org/cactus/getting_started.html for
the correct layout of your webapp. If you follow it to the letter it
should work. Alternatively, have a look at the sample application in the
cactus distribution.

> 
> 1 more query -----
> If i keep all my test classes in a seperate root under webapps & my
> application in a seperate root under webapps. When i run my test
servlet
> in
> one browser & my application in other browser. How do i verify my
> application session in my test servlet. Say for e.g. in my application
i
> set
> some attribute say username once user logs in. If i want to test
whether
> my
> session in my application holds it or not how can i do it in a
alltogether
> new browser. I faced this problem while testing struts. How do i
relate my
> application with the test.

I fear I don't understand the question. Why do you need 2 browsers?

-Vincent

> 
> Thanks,
> Payal Pamnani
> 
> --
> To unsubscribe, e-mail:   <mailto:cactus-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:cactus-user-
> help@jakarta.apache.org>



RE: Turorial help

Posted by Colin Froggatt <co...@yahoo.co.uk>.
Hi Payal, I'm afraid I don't know what you are talking about.  I think you may
have sent this the wrong email.

cheers, Colin.


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com