I am writing a web application in NetBeans. There is a MySQL database, from where I get the data and pass it to the script for further processing. Getting it happens in JSP by using <% java code %> .
I wanted to know how to write Java code correctly in JSP. I am new to the web and programming in general.
- Why did you roll back the edit? It can be regarded as vandalism. And for the question itself: writing logic in .jsp files is not the case. - Regent
- oneEven the author of the Java booklet Servlet Programming criticized JSP for causing JSP to provoke / force programmers to mix code and html. The use of JSP as a presentation template in MVC is considered correct at best (such as in the Spring Framework) - Sergey
|