简体   繁体   中英

How to get parameters from url in Eclipse Rap 2.0?

How can i get the parameters given by the URL in Eclipse RAP 2.0?

Example URL: http://www.example.com:8080/rap?startup=foo&var1=value1&var2=value2

In RAP 1.5 this worked:

HttpServletRequest request = RWT.getRequest();
String var1 = request.getParameter( "var1" );
String var2 = request.getParameter( "var2" );

How can i get the request parameters in RAP 2.0?

RWT.getRequest().getParameterMap().size()

I tried it before i posted my question, but it did not work. I found this bug today: https://bugs.eclipse.org/bugs/show_bug.cgi?id=404546

So it seems like i just have to wait for RAP 2.1 M2 :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM