M
Mario Rosario
Hi,
Can anyone help me out?
I am writing a Model View Controller Servlet and it doesn't know how to
resolve if the caller is from JSP or another servlet.
The problem is when the JSP calls the ControllerServlet, it passes the
destination as href="ControllerServlet?whereTo=DestinationServlet". And when
the DestinationServlet calls the ControllerServlet, it does a
setAttribute("whereTo", "destination.jsp").
The ControllerServlet needs a way to distinguish whether to do a
getParameter("whereTo") or do a getAttribute("whereTo"). Can anyone tell me
how to make this work? Post the code if you can.
Thanks in advance,
Mario
PS. If this is not the right newsgroup, please let me know the right group.
Can anyone help me out?
I am writing a Model View Controller Servlet and it doesn't know how to
resolve if the caller is from JSP or another servlet.
The problem is when the JSP calls the ControllerServlet, it passes the
destination as href="ControllerServlet?whereTo=DestinationServlet". And when
the DestinationServlet calls the ControllerServlet, it does a
setAttribute("whereTo", "destination.jsp").
The ControllerServlet needs a way to distinguish whether to do a
getParameter("whereTo") or do a getAttribute("whereTo"). Can anyone tell me
how to make this work? Post the code if you can.
Thanks in advance,
Mario
PS. If this is not the right newsgroup, please let me know the right group.