HttpServletRequest + DWR giving me null values.

View: New views
1 Messages — Rating Filter:   Alert me  

HttpServletRequest + DWR giving me null values.

by lvcster :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

hi y'all,
could anyone please tell me how DWR is used with HttpServletRequest, i tried this,

class DWRDemo
////
public String getUsername(HttpServletRequest request) {
    HttpServletRequest request = wctx.getHttpServletRequest();
    return request.getParameter("username");
}
assuming i'v got html file with this attribute
<input type="text" name="username" size="10"> and the javaScript,

    <script>
                function username() {
          DWRDemo.getUsername(showSalutation);
                }

        </script>

Am i missing sumthing here. I v been searching for days now...but i keep on getting the same people having similar problem and getting the not working responses.

Please read study my problem before you start using your valuable time that i will highly appreciate be you start replying.

Thanks in advance.

lvcster.