Tema: Java y JSP
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 19/10/2014, 21:56
carvear
 
Fecha de Ingreso: mayo-2011
Mensajes: 31
Antigüedad: 12 años, 11 meses
Puntos: 0
Java y JSP

Hola Gente quiero conectar una JSP con una linea de JAVA, pero no hay caso.
Tengo 2 archivos index.html y Carga.jsp

Por un lado tengo:

index.html
<html>
<body>
<b><center><font size="6" color="black" face="Lucida Handwriting"><i>COMPRUEBA SI UN NUMERO ES PRIMO CIRCULAR</i></font></b></center>
<p></p>
<form action="Carga.jsp">
<center><b><font size="4" color="black" face="Comic Sans MS">Ingrese un n&uacute;mero</font></b></center>
<center><input type=text name ="texto" value="">
<p></p>
<input type=submit value="Aceptar"></center>
</form>
</body>
</html>

Carga.jsp

<html>
<body>
<% Primo pr = new Primo(198); %>
<form action="index.html">
<center><b>Resultado</b></center><p></p>
<center><input type=submit value="Volver"></center>
</form>
</body>
</html>


El tema es que <% Primo pr = new Primo(198); %> esta linea da error. Estas son clases compiladas en NetBeans, no las encuentra!!! Entonces no se como armar la estructura ya.

-> archivos jsp
WEB-INF -> classes -> Primo.class y Numero.class

Hay algo que hago mal entonces!!

Para que compile cree un proyecto web en netbeans copie los archivos...

Gracias!