Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/EjercitarWeb/WebContent/Ejercicios.jsp
blob: ee96c00804efa4a628f6b46a0d71aeaefd33e38e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head><meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
	<title></title>
	<script src="http://code.jquery.com/jquery-latest.js"></script>
	
</head>
<body>
	
	<%@page import="java.util.List" import="model.Tema" %> 
	 
	
	<form style="width: 1071px; height: 521px;" method="post" name="ejercicio_form">
		Enunciado:
		<br>
		<textarea cols="40" rows="10" name="enunciado"></textarea>
		<br>
		Tema: <select id="temas" name="Tema" onchange="cargarConceptos()">
				<% List<Tema> temas = (List<Tema>)request.getAttribute("lista_temas"); %>
				<% for(Tema tema : temas) {%>
					<option value="<%= tema.getIdTema() %>"><%= tema.getNombre() %></option>
				<% } %>
			</select>
		<br>	
		Concepto: <select id="conceptos" multiple="multiple" name="Concepto" >
					
				</select>
		<br>
		Probabilidades:
		<br>
		A priori: <input name="priori">
		<br>
		Adivinanza: <input name="adivinanza">
		<br>
		Descuido: <input name="descuido">
		<br>
		<%= request.getParameter("atributo") %>
		<input type="submit" name="Aceptar" value="Aceptar1" >
		
	</form>
	<script type="text/javascript">

            function cargarConceptos(){
                //obtiene los objetos productCode, y obtiene el valor del objeto
                var tema_id=$("#temas").val(); //ya se tiene el objeto select
                //llama al servlet con el parametro seleccionado
                $("#conceptos").load("CargarConceptosServlet", {tema_id:tema_id})
            }
        </script>
</body>
</html>