aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts and cactus please help" Watch "Struts and cactus please help" New topic
Author

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.

Regards
Farouk
Farouk Sherefudheen
Ranch Hand

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

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 ?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts and cactus please help
 
Similar Threads
Mixing Junit & Cactus tests - but wanting to run from client with minimal classpath
unit testing struts?
test case for servlets
Problem With cactus testing
strutstestcase and WSAD