on 07-22-2008 4:15 PM
Hi @ all,
I have some upgrade work for my WD application from 6.4 to 7.
Before the upgrade I had some codings where the Request URL was read out like this way:
HttpServletRequest request = (HttpServletRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();
String url = (String) request.getRequestURL().toString();
In NW 7 this coding doesn`t work at all. There must be a new method of access I cannot find.
I tried it with:
IWDRequest request = (IWDRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();
...however there was no method to read out the complete URL like in getRequestURL() done before.
Can anybode help me?
Thx in advance
Mathias
Hi,
Accessing the HTTPServletRequest object is forbidden in WD and so the corresponding methods have also been deprecated/removed, but they reappear in 7.1 though. What is your exact requirement? Are you looking to read some request parameters? There might be other ways if you explain your scenario clearly.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
my exact requirement is the following one:
I want to read out the entire url request. For example http://sappep.server-customer.de:60000/irj/portal/anonymous/activation?guest_user=ep_selfreg_anon.
I need at first the entire url to get the serverinformation "http://sappep.server-customer.de"....
In a secound step I also need ulr-parameters. However more important is the whole query string.
How can I get it?
best regards
Mathias
Edited by: Mathias Hünnerkopf on Jul 23, 2008 11:32 AM
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.