cancel
Showing results for 
Search instead for 
Did you mean: 

Setting a parameter WebScriptRequest

aoulhent
Champ in-the-making
Champ in-the-making
Hello,

In the source code below:
@Override
   protected void execute(WebScriptRequest request, Map<String, String> params, JSONObject resultat) throws Exception
   {
      String user = request.getParameter( PARAM_USER );   
                //Need to set the parameter here using instruction like request.setParameter(…)
      resultat.put(RESULTAT_JSON_PARAM, "OK");
   }

I need to set the request parameter in the webscript. Any idea on how to do it?

Thanks in advance.
1 REPLY 1

muralidharand
Star Contributor
Star Contributor
Do you want to pass, PARAM_USER param from the calling place and do you want to utilise them in the webscript code?