3
I am using a Script but I am not using Servlet to do the desired action within my page index.jsp
, the goal is not to use this Script
below to open a JSP file inside my home page index.jsp
.
<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>
- I already own a class
Servlet()
methodicallydoGet()
anddoPost()
. - Inside of my class
Servlet()
, I can open a JSP file on my homepage without having to use aScript JQuery
using some method within the classServlet()
?.
<button onclick="window.Location=' Servletregister '">Register</button>
– Edevan