Mar 02

When using DWR you sometimes need access to the servlet request or the session.
When you do you can get access to them via the DWR WebContext class as shown in the following example code.

WebContext ctx = WebContextFactory.get();
HttpServletRequest request = ctx.getHttpServletRequest();

written by objects \\ tags: , , ,


2 Responses to “Access servlet request using DWR”

  1. dhana Says:

    its really helpful

  2. Reddy Says:

    Its okay, but while accessing session and session attributes I am getting Session Error message in browser through Pop up. Please provide another way or solution to this problem…

    Thanks & Regards,
    Reddy.

Leave a Reply

You must be logged in to post a comment.