on 11-20-2008 6:32 AM
hi,
i need to pass a value which has "+" in end...
for example:
String Name = "aditya+" ;
WDPortalNavigation.navigateAbsolute(iviewpath,WDPortalNavigationMode.SHOW_INPLACE,
null,null,WDPortalNavigationHistoryMode.NO_HISTORY,null,null,
"Name=" +Name );
but when i fetch the value..
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
String Name = request.getParameter("Name");
i get name = aditya
it doesnt give me "+"...
i believe it is taking + as an operator rather than string
can anyone help in finding out solution..
Thanks and Regards,
Aditya Deshpande
Hi,
Pravel is right. Try escape character.
Have you tried encoding the parameter? Try it.
Hope this helps.
Regards,
Apurva
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
clsoing this thread
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Aditya
This looks like a bug
My suggestion is to escape "+" character in some way (for example, with "\u002b") when making parameters string, and unescape when retrieving parameter values. I guess not only plus character can produse such effect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.