dkim18
asked on
(String) request.getSession().getAttribute("forward") returns null?
Hi!
From the following code, what does it mean if forward is null?
Why does this func passes string “forward”
request.getSession().getAt tribute("f orward");
+++++++++++++++++++++++++
public ActionForward create(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
…
…
String forward = (String) request.getSession().getAt tribute("f orward");
…
…
if (forward==null)
return (mapping.findForward(Const ants.RETUR N_TO_VIEW) );
else
return (mapping.findForward(forwa rd));
+++++++++++
thanks,
From the following code, what does it mean if forward is null?
Why does this func passes string “forward”
request.getSession().getAt
+++++++++++++++++++++++++
public ActionForward create(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
…
…
String forward = (String) request.getSession().getAt
…
…
if (forward==null)
return (mapping.findForward(Const
else
return (mapping.findForward(forwa
+++++++++++
thanks,
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.