MVC

N

Nag

Hi,

I have a controller1, which forwards the request to controller2 .
In controller2, I process the form requests and hit the database and
fetches the results and pass the results to
view1(jsp). I have two forms in view1. one is "displayForm" and another
is "dataForm". dataForm is hidden to the user.
The purpose of "displayForm" is used to show the results and allow the
user to do some client side validations.
When user submits the "dataForm"( submit button is part of "dataForm"
in jsp), the request goes to
Controller2 to make the changes to the database.

So, here my question is, In controller2....how to differentiate whether
the request is coming from "controller1" or "dataForm / view1"?

Thanks for your inputs.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top