I am new to JSP. I created a web application using JSP.
I written the java code inside the JSP scriptlets(<%.....%>
).
For database connection also I fallowed the same manner.
Example:
html code;
<%
database connectivity code;
%>
some jquery code;
<%
again database connectivity code;
%>
But some people told to me that it has a big disadvantage that is
"By using scriptlet declarations that only one person can use your site at a time without conflict"
Am I doing right?
Building web application in this manner is right way?