Jsp instead of Servlet

Asked

Viewed 20 times

0

I did a lot of research, but it wasn’t very clear to me. Why can’t I use JSP pages to connect to Database (Mysql for example) and return this data by an Ajax function for example, to another JSP page that will display the data? Is this about standardization or another reason? Would it be wrong if I did a college job using JSP to consult the BD? Even if the application works 100%?

  • Search on the MVC standard, the advised is to separate your application in layers where the visualization layer (VIEW) does not directly access the database.

  • But I cannot use a JSP page that queries the Controller layer and returns the data to another JSP that is inside the View?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.