File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts and cactus please help

 
Farouk Sherefudheen
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anyone please help>?
 
Robertis Tongbram
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 190
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Some key codes would help in others understanding your problem.
 
Farouk Sherefudheen
Ranch Hand
Posts: 32
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic