on 05-16-2006 9:16 PM
Hello,
Can anyone indicate me replacement solution for NW2004S on the following code:
((com.sap.tc.webdynpro.services.sal.adapter.core.IWebContextAdapter) WDWebContextAdapter.getWebContextAdapter()).getHttpServletResponse()
As of 2004S, this yields:
java.lang.NoClassDefFoundError: com/sap/tc/webdynpro/services/sal/adapter/core/IWebContextAdapter
Hi all,
I am facing the same problem.
Can anyone explain how to read and write some cookies ?
Your help greatly appreciated.
Best regards
Radouane Sbaa
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
u can use
IWDProtocolAdapter adapter=WDProtocolAdapter.getProtocolAdapter();
Regards
Hazrath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
Has anyone been able to resolve this? I am facing teh saem problme where we used taskbinder to access cookies in ep6 but now in 2004s cannot find a way around this. I also wish to link in with mss team viewer. I can of course subscribe to the event but it will not take the initial value this is why I was acessing the databag.
Any help appreciated.
Regards,
Niall
Please can you tell me how to find the session id with the new IWDProtocolAdapter class??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Marius,
You were warned: <a href="/people/bertram.ganz/blog/2005/02/02/never-ever-hijack-internal-web-dynpro-classes-and-interfaces">Never Ever Hijack Internal Web Dynpro Classes and Interfaces</a>
Why you need HttpServletRequest in this case? Prbably same can be done with "legal" IWDProtocolAdapter class...
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Valery
I got same problem, I have gollowing code
TaskBinder.getCurrentTask(). getWebContextAdapter().getHttpServletResponse()
which works fine in sp15 but in 2004s its giving noclassfound excepetion. instead of WebContextAdapter I used protocaladapter class but this one also giving error
can you suggest me solution for this
Regrds
Keerthi
keerthi,
What's for you need HttpServletRequest?
There are some properties of this object that are returned by public WD classes (like request parameters), so probably you can solve your task without request object that is no longer available in WD applications.
Valery Silaev
SaM Solutions
Keertthi,
There is no way to read cookies in WD application. Period. Also there is no official way to write cookies, you may use deprecated IFrame control, dynamically write HTML source to it (kind of), and set cookies via JavaScript in this generated source.
The next question is why you need to read/save cookies and what type of applications involved. If this is NW04s and both applications are WD, you may share data using WDScopeUtils. Note, however, that these data is transient and do not survive server restarts (unlike cookies that is saved on client). If you must pass information between WD and non-WD applications, then it is only possible to use technique described by <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=pyouhggpqqi%3d">maksim Rashchynski</a>, see <a href="/people/maksim.rashchynski/blog/2006/08/07/intercomponent-parameters-exchange">Intercomponent parameters exchange</a>
Valery Silaev
SaM Solutions
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.