<%@include file="_header.jsp" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
			
<h1 id="title">Inserir Ementa</h1>
<hr/>

<form action="ementaserv" method="get">
	<input type="hidden" name="comando" value="inserir" /> 
	Conteudo: <input type="text" name="conteudo" /> <br />
	Numero Aulas: <input type="text" name="num_aulas" /> <br />
    Data Ementa: <input type="text" name="data_ementa" /> <br />	
	<br />



Disciplina
<select name="listDisciplina" >   
    <option value=""></option>   
    <c:forEach var="teste" items="${minhalista}">   
        <option value="${teste.id}">${teste.nomeDisciplina}</option>   
    </c:forEach>   
</select> 	

	<br />

	<br />
	<br />
	 
	<input type="submit" value="Inserir" />
</form>

<c:if test="${param.msg != null}">
	<hr/>
	<h3> <c:out value="${param.msg}" /> </h3>
</c:if>
<% 
	/* SUBSTITUIDO POR JSTL
	String mensagem = request.getParameter("msg");

	if (mensagem != null)
	{
		out.write("<hr/>");
		out.write("<h3>"+mensagem+"</h3>");
	}
	*/
%>

<%@include file="_footer.jsp" %>