cancel
Showing results for 
Search instead for 
Did you mean: 

Problem reading a parameter from an iView

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks..

Answers (0)