MVC ControllerServlet problem

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top