It's not a secret anymore!*
The moose likes Struts and the fly likes Struts and cactus please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and cactus please help" Watch "Struts and cactus please help" New topic

Struts and cactus please help

Farouk Sherefudheen
Ranch Hand

Joined: Jan 27, 2004
Posts: 32
Hello Friends
I have a cactus suite of test with some data alreadyy in the code. So now I am trying to refactor it so I can put in a html screen where the user enters the data and i validate it using struts and if everything is ok i forward the request to cactus test suite.

Basically till action i have the data and I set in request as a attibute but when it reaches the test sute the request attributes are lost can you please help or suggest me a way to customize these cactus tests by dynamic data.

Farouk Sherefudheen
Ranch Hand

Joined: Jan 27, 2004
Posts: 32
Anyone please help>?
Robertis Tongbram

Joined: Jun 14, 2004
Posts: 4
Why not set the test data in session . You can then remove it from the session somewhere in the cactus test (or in the action class just before u set it).
Ken Loh
Ranch Hand

Joined: Feb 16, 2005
Posts: 190
Some key codes would help in others understanding your problem.
Farouk Sherefudheen
Ranch Hand

Joined: Jan 27, 2004
Posts: 32
I tried setting in session in action but when i retrieve and iterate over the session attributes inside my begin or test method in cactus i cannot find the set attributes. This is my problem can you help plz

Also what codes you need ?
It is sorta covered in the JavaRanch Style Guide.
subject: Struts and cactus please help
Similar Threads
Mixing Junit & Cactus tests - but wanting to run from client with minimal classpath
test case for servlets
unit testing struts?
strutstestcase and WSAD
Problem With cactus testing