

HttpServletRequest and HttpServletResponse Object Access › HttpServletResponse › Access Method
Access Method
To use the HttpServletResponse object
- Design an External Action Block (EAB).
- Use the EAB in the Pstep or Action Block where access to the response is desired.
- Design the views and attributes to hold the information needed to set the request.
- Generate the EAB.
- Add the following in the EAB method where user code is expected:
User written code should be inserted here.
HttpServletResponse res = (HttpServletResponse)
(iefRuntimeParm2.getResponse());
- As an example, to set a cookie, do the following:
Cookie myCookie = new Cookie (name,value);
res.addCookie(myCookie);
- Compile the application.
Copyright © 2013 CA.
All rights reserved.
 
|
|