Johannes Hoechstaedter wrote:
See here:

http://cocoon.apache.org/2.1/userdocs/flow/api.html#session

I think what Aashik meant to ask is how to get to the session inside one his own java classes (bean), like:

cocoon.session.setAttribute("key",data);

Some bean (SomeBean.java):

public class SomeBean {
...
 public void someMethod(..)
 {
     Session session = .....
     SomeObject someObject = (SomeObject)session.getAttribute("key");
     doSomethingWithSomeObject();
 }
}

I have been struggling with this as well (see previous posting under the same topic).

Thanks,
Andre

asif_zzz schrieb:
Hi Johannes,
Please dont mistake me if the query are basic

I'm setting a String value in session attribute

cocoon.session.setAttribute("key",data);
my scenario is get the above session value in bean class.how to get it??

Regards,
Aashik


Johannes Hoechstaedter wrote:
Hi Aashik ,

-reply to your mail from today.

I have to confess, that I don't know exactly whats the difficulty is in your case. Maybe you can give more details?

If you can get the request object you should be able to set and add attributes for your session (as you already do I think).

cheers
Johannes

Johannes Hoechstaedter schrieb:
Maybe you will find it already posted in the mailing list. Search here:
http://www.mail-archive.com/[email protected]/

Maybe this article is helpful as well:
http://wiki.apache.org/cocoon/InputModules

cheers,
Johannes

asif_zzz schrieb:
Hi,
im new to cocoon.
im using cocoon 2.1.10,spring ORM and hibernate.

im setting a session attribute in flowscript(flow.js)

cocoon.session.setAttribute("Instance",instance);


I need to get the above session attibute in bean.
Anyone please tell me how to get it??

Thanks in advance.

Regards,
Aashik

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Andre H. Juffer              | Phone: +358-8-553 1161
The Biocenter and            | Fax: +358-8-553-1141
   the Dep. of Biochemistry | Email: [EMAIL PROTECTED]
University of Oulu, Finland  | WWW: www.biochem.oulu.fi/Biocomputing/
NordProt                     | WWW: www.nordprot.org


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to