Buenas tardes,soy nuevo en esto de JSP y lo que necesito es que al seleccionar una opcion y presionar un boton, se muestres el texto y la imagen. El codigo que tengo es este:
<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title> Area de texto</title>
</head>
<body>
<h1> Esta es la página de inicio</h1>
<h2> Aqui se piden los datos </h2>
<p> Hola, por favor introduce la información </p>
<form action="uploadfile.jsp" method="post">
<table cellspacing="3" cellpadding="3" border="1" align="left">
<select id="Supervisor" id="FotoSupervisor" name="Supervisor">
<option value="Patricio Silva"/>Patricio Silva
<option value="Patricio" src="imagenes/personas/Patricio.png"></option>
<option value="Cristian Yañez"/>Cristian Yañez
</select>
</table>
<table cellspacing="3" cellpadding="3" border="1" align="right">
<select name="Informatica">
<option value="Claudio Aguilera">Claudio Aguilera</option>
<option value="David Olave">David Olave</option>
<option value="Ariel Muñoz">Ariel Muñoz</option>
</select>
</table>
<input type="submit" value="Enviar">
</form>
</body>
</html>
Para el despliegue de la informacion es este:
<%
// Este es un scriptlet
// Es código en Javaque captura los parámetros enviados
// en el objeto "request"
String Supervisor = request.getParameter("Supervisor");
String FotoSupervisor =request.getParameter("Fotos Supervisor");
String Informatica = request.getParameter("Informatica");
%>
<%@page contentType="text/html" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type"
content="text/html; charset=UTF-8">
<title>Pagina Destino JSP</title>
</head>
<body>
<table cellspacing="3" cellpadding="3" border="1" align="left" >
FDS Supervisor: <INPUT TYPE="" VALUE="<%=Supervisor%>">
<INPUT type="" Value="<%=FotoSupervisor%>">
FDS Informatica: <INPUT TYPE="" VALUE="<%=Informatica%>">
</table>
<form action="index.jsp" method="post">
<input type="submit" value="Regresar">
</form>
</body>
</html>
Favor su ayuda porque busco y busco informacion pero no encuentro o no entiendo bien. Gracias!!