Ir al contenido principal

Entradas

Mostrando entradas de noviembre, 2012

JSF

<navigation-rule>         <from-view-id>/login.jsp</from-view-id>         <navigation-case>             <from-outcome>ok</from-outcome>             <to-view-id>/saludo.jsp</to-view-id>         </navigation-case>  </navigation-rule>

DAM 2

codigo clase instalar toolkit, para poder ver las transformaciones hechas en blend http://silverlight.codeplex.com/releases/ Despues de instalar, vamos a nuestro proyecto WP 7.1, click dereco referencias, agregar referencia y buscamos la referencia Microsoft.phone.controls.toolkit Ejemplo de pagginacion con Evento MOUSE http://dl.dropbox.com/u/50075634/PhoneAppPag_pagg.rar

Ejemplo MVC - DAO - JPA

ControladorProducto if(opcion.equals("delete")) {                               int codigo = Integer.parseInt(request.getParameter("codigo"));                               ProductoDAO pDao = new ProductoDAO();                                             if (pDao.eliminarProducto(codigo)) {                     request.setAttribute("RPTA", "Se elimini exitosamente");                     RequestDispatcher dispatcher = request.getRequestDispatcher("listarProducto.jsp");                     dispatcher.forward(request, response);                 } else {                     request.setAttribute("RPTA", "No se pudo eliminar el producto, intente otra vez");                     RequestDispatcher dispatcher = request.getRequestDispatcher("listarProducto.jsp");                     dispatcher.forward(request, response);                   } //////////////////////////////////// ProductoDAO  public b

LPII semana

index.jsp dentro del body <div align="center">             <form method="POST" action="ControladorUsuario">                 <input type="hidden" name="opc" value="login" />                 <table border="1">                                       <tbody>                         <tr>                             <td>Codigo</td>                             <td><input type="text" name="txtCodigo" value="" /></td>                         </tr>                         <tr>                             <td>Password</td>                             <td><input type="text" name="txtClave" value="" /></td>                         </tr>                         <tr>                             <td><input type="submit"

LP III semana 1 clase 2

Jovenes descargar Backup de BD y codigo, hacer que funcione la web Descargar Backup Descargar Codigo Driver SQLJDBC para sql server 2005 a + Diapos JDBC Script USE [BD_VENTAS] GO /****** Object:  Table [dbo].[TUsuario]    Script Date: 11/12/2012 21:41:35 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[TUsuario]( [Codigo] [varchar](10) NULL, [Clave] [int] NULL, [Nombres] [varchar](50) NULL, [Perfil] [char](1) NULL ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object:  Table [dbo].[TProducto]    Script Date: 11/12/2012 21:41:35 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO SET ANSI_PADDING ON GO CREATE TABLE [dbo].[TProducto]( [Codigo] [int] NULL, [Descripcion] [varchar](50) NULL, [Stock] [int] NULL, [Precio] [decimal](18, 2) NULL ) ON [PRIMARY] GO SET ANSI_PADDING OFF GO /****** Object:  Table [dbo].[TDetPedido]    Script Date: 11/12/2012 21:41:35 ******/ SET ANSI_NULLS