I'm using a Script, but I'm not using Servlet to do the desired action inside my index.jsp
page, and do not use this Script
below to open a JSP file inside my index.jsp
home page.
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script>
$(document).ready(function() {
var domContent = $("#content");
$(".nav-link").click(function() {
domContent.load($(this).attr("href"));
return false;
});
});
</script>
<li class="topmenu"><a class="nav-link" href="cad_conta.jsp" title="Cadastrar uma conta" style="height:19px;line-height:19px;">Cadastro</a></li>
Servlet()
with method doGet()
and doPost()
. Servlet()
class, can I open a JSP file on my home page without having to use a Script JQuery
using some method within the Servlet()
class?