1
I am developing a good HTML5 Hybrid mobile app and my backend will be done with Java and Mysql.
I’m using Phonegap and the same to generate the APP needs my files to be extension .html
.css
.js
, to generate the installation file, with this my business rules are in the backend in pages .jsp
connecting to the database. The question is how to make the result obtained on a page in the backend Ex: resultado.jsp
appears on a page with HTML EX extension: mostra-resultado.html
.
I know I could do something with Ajax but I still can’t visualize the construction of it, someone can give me a light or an example.
It follows more or less the idea, this here is only for a light to the concept, has no commitment to the truth.
<!--Exemplo da página html-->
<html>
<button>Chama a lista 1</button>
<button>Chama a lista 2</button>
<div>
<!--Resultado da lista que foi verificada na página.jsp-->
</div>
</html>
<!--Exemplo da página .jsp-->
<jsp>
if(lista1){
<!--Mostra o resultado da lista 1 -->
}else if(lista2){
<!--Mostra o resultado da lista 1 -->
}
</jsp>
Apparently I didn’t understand your question. I also didn’t understand your reply to my answer. Consider editing your question so more people can try to help you.
– Caffé