Here is what I want to do (I just don't know which approach is best):
I have an HTML form through which users will make queries about information in an Oracle database. I plan on using JSP to connect to that database (and I know how that is done), but I don't know what the best organizational approach is. What's more, I don't know if some of the approaches are incorrect.
If someone could tell me which of the following is best, I would appreciate it. And, if some of the following don't even work, I'd like to know that too!
Approach 1
Have a static HTML page which collects the data from the user via a form. Send said data (formatted using JavaScript perhaps) to a JSP page, which will do the query and show the results.
Approach 2
Have a JSP page which collects the data from the user via an HTML form and then runs the query. Passes the results to another JSP page (is this possible?) to be shown to the user.
Approach 3
Have a JSP page which collects the data from the user, runs the query, and shows the results (all on the same page). This is the approach I would like to stay away from. For my uses, the query and results should be on separate pages.
What is best here? Are there examples of these kinds of operations (mainly, passing data from one page to another)? Do I need some standalone program running in the background to handle these data pushes?
And and all help is appreciated!
I have an HTML form through which users will make queries about information in an Oracle database. I plan on using JSP to connect to that database (and I know how that is done), but I don't know what the best organizational approach is. What's more, I don't know if some of the approaches are incorrect.
If someone could tell me which of the following is best, I would appreciate it. And, if some of the following don't even work, I'd like to know that too!
Approach 1
Have a static HTML page which collects the data from the user via a form. Send said data (formatted using JavaScript perhaps) to a JSP page, which will do the query and show the results.
Approach 2
Have a JSP page which collects the data from the user via an HTML form and then runs the query. Passes the results to another JSP page (is this possible?) to be shown to the user.
Approach 3
Have a JSP page which collects the data from the user, runs the query, and shows the results (all on the same page). This is the approach I would like to stay away from. For my uses, the query and results should be on separate pages.
What is best here? Are there examples of these kinds of operations (mainly, passing data from one page to another)? Do I need some standalone program running in the background to handle these data pushes?
And and all help is appreciated!