Home
Web CMS (TeamSite)
get request object
annu1
Hi,
My class extends Livesite BaseExternal class, so how can i get the request object from BaseExternal class to my class
Find more posts tagged with
Comments
vpatel
Which version of LS are you using? I believe com.interwoven.livesite.external.BaseExternal has been deprecated in LS 3.1 and beyond. What exactly are you trying to do?
madhusudhan
Hi,
We are using the livesite 3.0 version.
We are doing the below things.
We have a call in a component to a external class and this class extend the basicwrapper class,and this basic wrapper class extends the livesite class(com.interwoven.livesite.external.BaseExternal.)
In my class(Navigation) using the execute method which have arg hashtable and metthod ::
ublic Document execute(String method, Hashtable params).
we are setting the value in session from other class and i want to get the session value in Navigation class but I am not able to find out the session object because there is no request context or request object.
So could anybody please let me know how I can get the session value in Navigation class.
please see the attached component code and java class.
please reply soon
Is there any when to get the value of session by prefix?
vpatel
Write a simple Java External (that does NOT need to extend BaseExternal) and in that Java External you have access to an "RequestContext" object.
That RequestContext has access to the HttpServletRequest. You can do something like this: requestContext.getRequest();
HTH!
annu1
How I can get the values in another class which dont have HTTP request or request context?
vpatel
Pass the RequestContext from your External to that class?? Again, not knowing your exact requirements I am not sure what you are after.
vpatel
I just re-read your post and if I understand it correctly you want to "get the values in another class" -- well do you have an object for that class? If yes, then you should be able to get whatever you need right? And as I mentioned if you need to pass the RequestContext then you can do that as well.
Also what version of SP/LS are you on?