Project

General

Profile

Session Parameters in jWT??

Added by MICHALIS PAPACHRISTOFOROU about 13 years ago

Hello everyone,

I have problem setting Session parameters through jWT's wtServlet.

Basically the problem is in reaching the HttpServletRequest and HttpServletRequest objects just as we do in normal servlets.

For example, in normal servlets I assign HttpServletRequest as "session":

...

public void service(

HttpServletRequest request,

HttpServletResponse response

...and afterwards I call them as....

HttpSession session = request.getSession();

...where I ca do this...

session.getAttribute("my-custom-parameter");

...or this...

session.setAttribute("my-custom-parameter", "Session Parameters!!!");

Can anyone help me up in accessing HttpServletRequest and HttpServletResponse objects from jWT?

I know it's there somewhere! :P


Replies (2)

RE: Session Parameters in jWT?? - Added by Sascha Broich about 11 years ago

Hello,

I'm just looking for this too.

Do you got a solution?

Regards,

Sascha Broich

RE: Session Parameters in jWT?? - Added by Sascha Broich about 11 years ago

Hi,

I'm answering myself.

Getting the request parameters works by WApplication#getEnviroment#getRequestParameter.

The easiest entry point in servlet processing is WApplication#refresh.

    (1-2/2)