This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE empleado | |
| ( | |
| nombre VARCHAR(15) NOT NULL, | |
| inc CHAR, | |
| apellido VARCHAR(15) NOT NULL, | |
| nss CHAR(9) NOT NULL, | |
| fecha_ncto DATE, | |
| direccion VARCHAR(30), | |
| salario DECIMAL(10, 2), | |
| nss_superv CHAR(9), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE FAMILIAS_PROD | |
| ( | |
| PROD_FAMILIA_ID NUMBER(4) PRIMARY KEY, | |
| FAMILIA_NOMBRE VARCHAR2(25) NOT NULL | |
| ); | |
| INSERT INTO FAMILIAS_PROD VALUES (20, 'PROCESADORES'); | |
| INSERT INTO FAMILIAS_PROD VALUES (21, 'ALMACENAMIENTO'); | |
| INSERT INTO FAMILIAS_PROD VALUES (22, 'MEMORIAS'); | |
| INSERT INTO FAMILIAS_PROD VALUES (23, 'PERIFERICOS'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //obtiene el string que está contenido en cierto elemento web. | |
| request.getParameter("nombre_elemento_web"); | |
| //redirecciona a cierta página. | |
| response.sendRedirect("pagina_destino"); | |
| //mensaje de alerta | |
| out.println("<script>alert('mensaje');</script>"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Retorna la sesión HttpSession actual asociada con este request, | |
| //Si el request no tiene una sesión, crea una nueva. | |
| HttpSession session = request.getSession(); | |
| //Asigna un objeto a esta sesión, usando el nombre especificado: | |
| //nombre: el nombre del objeto asignado, no puede ser null | |
| //valor: el objeto a ser asignado. | |
| session.setAttribute("departamento", new ArrayList()); | |
| //reenvía al usuario al formulario de ingreso de equipo. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--Envía la información al servlet especificado--> | |
| <form action="ingresar_equipo.do" method="POST"> | |
| <table/> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Constructor de objeto: | |
| project.business.Objeto objeto = new Objeto(); | |
| //Setter para características del objeto | |
| Objeto.setCaracterística(request.getParameter("web_element")); | |
| //Setter para característica obtenida por colaboración | |
| Objeto.getCaracteristicaCalaboracion().setCaracteristicaColaboracion("web_element"); | |
| //Crear HttpSession |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!--Inicializa una nueva sesión--> | |
| HttpSession session2 = request.getSession(); | |
| <!--obtiene los datos del ArrayList--> | |
| ArrayList<Objeto> lista = (ArrayList<Objeto>)session2.getAttribute("nombre_lista"); | |
| <!--inicia una tabla--> | |
| <table><tbody><tr><td>Columna1</td><td>Columna2</td><td>Columna3</td></tr> | |
| <!--Puebla la tabla con datos--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Polygons, Ellipses and Paths on XAML (Visual Studio) | |
| Polígonos, Elipses y Líneas XAML (Visual Studio) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Solution to error: "Starting of Tomcat failed" on NetBeans | |
| from http://stackoverflow.com/questions/22225764/starting-of-tomcat-failed-from-netbeans | |
| Solución al error "Starting of Tomcat failed" (Inicio de Tomcat fallido) en NetBeans. |