cancel
Showing results for 
Search instead for 
Did you mean: 

HttpServletRequest problem

Former Member
0 Kudos

Hi,

We are migrating our code from 2004 to 2004s. Here the type cast:

HttpServletRequest req = (HttpServletRequest)TaskBinder.getCurrentTask().getWebContextAdapter().getOriginRequest();

wdContext.currentContextElement().setServerURL(req.getRequestURL().toString());

..doesn't work anymore.

I understand that HttpServletRequest is no longer allowed.

How else can I get the Server URL?

Thank you.

Anton Kruse

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Anton,

IWDProtocolAdapter adapter = WDProtocolAdapter.getProtocolAdapter();

adapter.getRequestObject().getParameter("XXXX");

enjoy...

Amit

Former Member
0 Kudos

thanks, but what parameter should I replace XXXX with?

p330068
Active Contributor
0 Kudos

Hi Anton,

Please have a look and try with document for IWDProtocolAdapter : [Click Here |; commented by Bertram Ganz.

Hope it will helps

Regards

Arun