cancel
Showing results for 
Search instead for 
Did you mean: 

Recover parameters sent by POST in webscript java

joseacc
Champ in-the-making
Champ in-the-making
Hi,

I am trying to recover the parameters that sent by method POST in a webscript java type DeclarativeWebScript.

I am using the Share proxy servlet: http://localhost:8080/share/proxy/mywebscript/

In the file of context for the identifying one of the bean of the webscript I have put him: id=" … mywebscript.post "

And the name of the description xml of the webscript: mywebscript.post.desc.xml

Inside the controller java of the webscript I am doing…

HttpServletRequest reqHttp = ((WebScriptServletRequest)req) .getHttpServletRequest();
reqHttp.getParameter("param1");

But this parameter does not exist.

Is it possible that the webscripts java does not support the recovery of parameters for POST? There is some problem if I use the Share proxy servlet for the method POST?

Someone can help me?

Thanks
1 REPLY 1

shmoula
Champ in-the-making
Champ in-the-making
Hi,
  What about this? 😉

public void execute(WebScriptRequest req, WebScriptResponse res)throws IOException {
    String param1 = (String) req.getParameter("param1");
. . .