Matteo Mancini wrote:
Hi all,
I need to know something about the best way to interact with Cocoon
object via java code.
More exactly I need to retrieve the Session Object in order to set and
get attributes.
I tried some ways I found inside cocoon user guide but I faced
many problems because
Cocoon java packages have so many interfaces and classes. I tried those
dealing with HttpSession, HttpServlet and CocoonServlet classes.
Noone seems to work. I always catch a NullPointerException when I tried
to get a reference or instantiate them.
There should be somethng I miss !!!!
Can anyone suggest me how to do?
Firstly, ask on the Cocoon user's list, you'll get better answers there.
Secondly, I'd suggest you state from where you want to get hold of your
session. From flowscript? Within actions? Then people can advise you on
the best approach.
Regards, Upayavira