A beginner’s question on JSP. let’s say I have some java statement
<% ..... %>
and I have a html page”
<html>
<head>...</head>
<script>...</script>
<body>...</body>
</html>
can I put this java statment before <html> tag? after </html> tag? before <body> tag? after </body> tag?
If I also have a jquery document ready statement
$(document).ready(function() {alert("ok"); });
inside the <script>...</script> tag, who get executed first? my java code or alert?
You can put Java JSP tags in anywhere of page, JSP gets executed before javascript