Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/06/2009, 15:22
Squar
 
Fecha de Ingreso: abril-2009
Mensajes: 82
Antigüedad: 15 años, 9 meses
Puntos: 2
Respuesta: switch en jsp

Buenas:

Partiendo del hecho de que no se PHP, yo diría que tendrá que ser algo así...

Código:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<html>
	<head>
	</head>

	<body>
		<c:choose>
			<c:when test="${seccionesadmin == 'bienvenido'}"> ... incluir fichero 1... </c:when>
			<c:when test="${seccionesadmin == 'insertar_usuario'}"> ... incluir fichero 2... </c:when>
			<c:when test="${seccionesadmin == 'insertarU'}"> ... incluir fichero 3... </c:when>
			<c:otherwise> ... incluir fichero 4... </c:otherwise>
		</c:choose>
	</body>
</html>