on 08-31-2006 12:27 AM
I used the follwing statement
WDWebContextAdapter.getWebContextAdapter().
getRequestParameter("event");
In a webdynpro application to read a variable called "event" in an iView application parameters. The value of the "event" parameter as it appears in the iView's application parameters is
"event=com.print?select"
Everything works fine on EP6 SP9 & 14 and the statement returns the correct value which is "com.print?select"
But when I deployed the webdynpro application on EP7.0, the behavior of the statement changed. It returned com.print only and it ignored the ? and the rest of the value
I upgraded my developer studio to the latest version NW_2004s_SR1
And I used another statement which is WDProtocolAdapter.getProtocolAdapter().
getRequestObject().getParameter("event");
But the problem still exist and for some reason the ? and rest of the parameter value are ignored.
Any Idea
Message was edited by: Adel Alotaibi
I don't think I can explain why it works in SP9 and SP14, but I have a fair idea why it should not work.
In order to pass parameters in URL it usually starts as:
a) http://thisismyurl.com?querystring=56&nextquerystring=33
So as you see, parser looks for special characters lik ? and & and it behaves differently when it sees that.
So the best way to put special characters in your URL is using URLEncoder.
Refer this :
<a href="http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html">URL Encoder</a>
Hope this helps.
Regards,
Subramanian
Message was edited by: Subramanian Venkateswaran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
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.