<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7395253990942430692</id><updated>2024-11-14T22:53:03.821-08:00</updated><category term="Java"/><category term="Base de Datos"/><category term="Netbeans"/><category term="Desencriptación"/><category term="Encriptación"/><category term="Oracle"/><category term="Apache Tomcat"/><category term="Cifrado de César"/><category term="JSF"/><category term="JasperReport"/><category term="Java Server Faces"/><category term="JavaMail"/><category term="Javaenaccion"/><category term="MySQL"/><category term="Primefaces"/><category term="e-mail"/><category term="Bandeja de Entrada"/><category term="Bean"/><category term="Converter"/><category term="DataTable"/><category term="Database"/><category term="Derby"/><category term="Desktop"/><category term="Eclipse"/><category term="Ecriptación"/><category term="Escritorio"/><category term="Hibernate"/><category term="Hojas de estilo"/><category term="Hotmail"/><category term="IMAP4"/><category term="JPA"/><category term="Java Server Pages"/><category term="Java Web"/><category term="JavaScript"/><category term="Microsoft Access"/><category term="Monoalfabético"/><category term="Monográmico"/><category term="Método de Sustitución"/><category term="POP3"/><category term="Polybios"/><category term="Report"/><category term="Reporte"/><category term="RowExpansion"/><category term="SMTP"/><category term="SelectOneMenu"/><category term="Servlet"/><category term="ToggleEvent"/><category term="Toggler"/><category term="UNSCH"/><category term="Vigenere"/><category term="css"/><category term="iReport"/><category term="jsp"/><category term="jsp con css y jss"/><category term="jss"/><category term="plugin iReport"/><title type='text'>Java en acción</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-1139709967668733478</id><published>2014-07-22T14:42:00.002-07:00</published><updated>2014-07-22T14:57:39.140-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DataTable"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Server Faces"/><category scheme="http://www.blogger.com/atom/ns#" term="JSF"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><category scheme="http://www.blogger.com/atom/ns#" term="Primefaces"/><category scheme="http://www.blogger.com/atom/ns#" term="RowExpansion"/><category scheme="http://www.blogger.com/atom/ns#" term="ToggleEvent"/><category scheme="http://www.blogger.com/atom/ns#" term="Toggler"/><title type='text'>¿Cómo obtener la fila expandida de un datatable de Primefaces?</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9P9rl5gJhLG9xTbGVFptO0_2xltZ_x7xksWGTSsPJ-r2g1A0rPRcZl3pJTlAax1akj4uYuUlOO_wEg0GX8CmLKfaomUjs7RIce2qgfhpJXwWbpTJuKvO8yGx8kOGr94kxaIrxBDSN9bI0/s1600/datatable_rowexpansion.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9P9rl5gJhLG9xTbGVFptO0_2xltZ_x7xksWGTSsPJ-r2g1A0rPRcZl3pJTlAax1akj4uYuUlOO_wEg0GX8CmLKfaomUjs7RIce2qgfhpJXwWbpTJuKvO8yGx8kOGr94kxaIrxBDSN9bI0/s1600/datatable_rowexpansion.png&quot; height=&quot;282&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Hola buen día a todos, este post está dedicado al control RowExpansion usada dentro del DataTable de Primefaces.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Al momento de escribir el post usé:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://primefaces.org/downloads&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Primefaces 4.0&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://netbeans.org/&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Netbeans 7.4&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;javax.faces-2.1.26.jar&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Como se observa en el showcase del control &lt;a href=&quot;http://primefaces.org/showcase/ui/data/datatable/expansion.xhtml&quot; target=&quot;_blank&quot;&gt;RowExpansion&lt;/a&gt;, ella nos sirve para mostrar información &quot;adicional&quot; respecto a la fila que se expande (mediante el evento ToggleEvent), deberíamos únicamente cargar datos de la BD, si ese es el caso, sólo de las filas que son expandidas, ¿y cómo hacemos ello? pues eso lo veremos en el presente post.&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Lo que básicamente necesitamos es capturar la fila y recién con ella realizar la consulta a la BD, y ello se consigue usando ajax, mediante el evento &quot;ToggleEvent&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=2h98eCRt&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
En un datatable como en la siguiente ilustración:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=Ex5g2CQj&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Como se observa en el ejemplo estoy usando un controlador llamado &quot;&lt;b&gt;recibirMovimientoAlmacenController&lt;/b&gt;&quot; y es en ese controlador donde debo definir mi método &quot;&lt;b&gt;buscarDetalleMovimientoAlmacen&lt;/b&gt;&quot; de la siguiente manera:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=cdhyK3dJ&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;es la linea N° 03 la que realmente hace el trabajo de capturar la fila que deseemos:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Bueno ello dependerá del tipo de objeto del cual esté formado, en caso mío son objetos del tipo &quot;&lt;b&gt;AlTblMovimientoAlmacen&lt;/b&gt;&quot; por ello realizo el casteo y la almaceno en otra variable para poder usarla en lo posterior, que si bien es cierto en el código muestro:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=4E3w9TxZ&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=Df3ccejV&quot; style=&quot;border: none; width: 100%;&quot;&gt;&lt;/iframe&gt;

&amp;nbsp;que se encargará de llenar los registros que en el rowExpansion he de mostrar (aunque en las clases y la imagen inicial no tengan ninguna relación, esa es mi intensión).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Espero que el aparente desorden en la codificación no sea dificultad para la comprensión de la misma, bueno ya pronto pondré otra plantilla en la cual se adecuen mejor esos elementos. Saludos! :)&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/1139709967668733478/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/1139709967668733478?isPopup=true' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/1139709967668733478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/1139709967668733478'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2014/07/como-obtener-la-fila-expandida-de-un.html' title='¿Cómo obtener la fila expandida de un datatable de Primefaces?'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9P9rl5gJhLG9xTbGVFptO0_2xltZ_x7xksWGTSsPJ-r2g1A0rPRcZl3pJTlAax1akj4uYuUlOO_wEg0GX8CmLKfaomUjs7RIce2qgfhpJXwWbpTJuKvO8yGx8kOGr94kxaIrxBDSN9bI0/s72-c/datatable_rowexpansion.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-9114049949860795650</id><published>2013-09-21T18:40:00.000-07:00</published><updated>2013-09-21T18:40:11.264-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bean"/><category scheme="http://www.blogger.com/atom/ns#" term="Converter"/><category scheme="http://www.blogger.com/atom/ns#" term="Hibernate"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Server Faces"/><category scheme="http://www.blogger.com/atom/ns#" term="JPA"/><category scheme="http://www.blogger.com/atom/ns#" term="JSF"/><category scheme="http://www.blogger.com/atom/ns#" term="Primefaces"/><category scheme="http://www.blogger.com/atom/ns#" term="SelectOneMenu"/><title type='text'>JSF: Error de validación: el valor no es válido.</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRB5mFTYepe0bImbbKHm-K90qXnUALbhGo4xUnwYndvzmz_SBUcZHMkYmSEY1Zzeyy8BxzNvVPcgprvHWQwT2w2sT7m7boKzOZBoOGIIxeldi5k_5z08gI6kB-xdSjW1dPA-XwFVBpFiKl/s1600/selectOneMenu.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRB5mFTYepe0bImbbKHm-K90qXnUALbhGo4xUnwYndvzmz_SBUcZHMkYmSEY1Zzeyy8BxzNvVPcgprvHWQwT2w2sT7m7boKzOZBoOGIIxeldi5k_5z08gI6kB-xdSjW1dPA-XwFVBpFiKl/s1600/selectOneMenu.png&quot; height=&quot;142&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Hola buen día!!, si en algún momento usaste un &lt;b&gt;SelectOneMenu &lt;/b&gt;de JSF o el de &lt;b&gt;Primefaces&lt;/b&gt;&amp;nbsp;al momento de persistir datos (en mi caso usé la implementación Hibernate con anotaciones JPA), habrás encontrado el casi &quot;inexplicable&quot; mensaje &quot;Error de validación: el valor no es válido&quot; (inexplicable -es probable que esté exagerando- jejeje)&amp;nbsp;pues fue complicado detectar qué es lo que pudiera estar sucediendo ya que ni siquiera se cuenta con detalles de este mensaje de error y si no te topaste con ella pues que afortunado que eres! :-).&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Es también sabido que para persistir objetos en &lt;b&gt;Hibernate &lt;/b&gt;desde un &amp;lt;selectOneMenu&amp;gt; se tiene que hacer la CONVERSIÓN, usando la interfaz &quot;&lt;b&gt;javax.faces.convert.Converter&lt;/b&gt;&quot; imagino que ya tienen hecha la clase que realiza dicha conversión, claro está; con sus respectivos métodos &lt;b&gt;getAsObject &lt;/b&gt;y &lt;b&gt;getAsString&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;En primer lugar veamos el bean que usé, Escuela.java:&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=F7RTNdn7&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; font-size: x-small;&quot;&gt;&lt;b&gt;Nota&lt;/b&gt;: No crearse problemas con los nombres de los métodos y tablas que voy a usar, para el error que estamos tratando ello no es lo más importante, al menos no son las que genera el error.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;El problema en si, se da porque en nuestro bean debemos &lt;b&gt;sobreescribir &lt;/b&gt;los respectivos métodos &quot;&lt;b&gt;equals(Object object)&lt;/b&gt;&quot; y &quot;&lt;b&gt;hashCode()&lt;/b&gt;&quot;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9RlY8A3MiuXC2WyEP-Q41pZ0wOYclIF88gP9thySVCFw-n6OWEq2GhidNINQP6nXAU3iNy4K9E8sUO7bwVUvfDBh1YJiOrGIS5mu_Plskcx1k_RwXmjoEIpPSULt98QCfzReIlzKmrB_X/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg9RlY8A3MiuXC2WyEP-Q41pZ0wOYclIF88gP9thySVCFw-n6OWEq2GhidNINQP6nXAU3iNy4K9E8sUO7bwVUvfDBh1YJiOrGIS5mu_Plskcx1k_RwXmjoEIpPSULt98QCfzReIlzKmrB_X/s1600/2.png&quot; height=&quot;318&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahora nuestra nueva clase quedará como sigue:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=WT7i3teM&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno, eso fue todo por hoy; espero sus dudas y/o comentarios sobre el tema. Muchas gracias, hasta luego!!&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el contenido te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/9114049949860795650/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/9114049949860795650?isPopup=true' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/9114049949860795650'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/9114049949860795650'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2013/09/jsf-error-de-validacion-el-valor-no-es.html' title='JSF: Error de validación: el valor no es válido.'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRB5mFTYepe0bImbbKHm-K90qXnUALbhGo4xUnwYndvzmz_SBUcZHMkYmSEY1Zzeyy8BxzNvVPcgprvHWQwT2w2sT7m7boKzOZBoOGIIxeldi5k_5z08gI6kB-xdSjW1dPA-XwFVBpFiKl/s72-c/selectOneMenu.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-7149567298660071775</id><published>2013-05-18T14:05:00.001-07:00</published><updated>2013-05-18T14:05:36.825-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="Hojas de estilo"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Server Pages"/><category scheme="http://www.blogger.com/atom/ns#" term="Java Web"/><category scheme="http://www.blogger.com/atom/ns#" term="Javaenaccion"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="jsp"/><category scheme="http://www.blogger.com/atom/ns#" term="jsp con css y jss"/><category scheme="http://www.blogger.com/atom/ns#" term="jss"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><title type='text'>Incluir archivos css y jss en jsp</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR2gZqylL7vbh-89icQCxKHy1NAmEXN7aikaPaWBZFM3poDCF-EoPC1qo6VoeGIZzs8tvkQC9tIRbDVso265RgczhhzkxXYY_PV_dW4BvZCuZf1RkqJFH5Kf7HQIj9ZBodBCbY-f_DaRDW/s1600/logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR2gZqylL7vbh-89icQCxKHy1NAmEXN7aikaPaWBZFM3poDCF-EoPC1qo6VoeGIZzs8tvkQC9tIRbDVso265RgczhhzkxXYY_PV_dW4BvZCuZf1RkqJFH5Kf7HQIj9ZBodBCbY-f_DaRDW/s1600/logo.png&quot; height=&quot;200&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Hola, buen día, parecen muchos años desde la última publicación; pero lo importante es que seguimos en línea jeje :D, en esta ocasión menciono de cómo incluir los archivos de&lt;b&gt; hojas de estilo&lt;/b&gt; y &lt;b&gt;scripts&amp;nbsp;&lt;/b&gt;en nuestros proyectos java utilizando archivos &lt;b&gt;JSP &lt;/b&gt;(incluir css y js en jsp), puesto que quizá más de uno podríamos tener dificultades o las tuvimos de no saber dónde y cómo ubicarlos, bueno sin mayor número de palabras pasemos a la demostración:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;1.- La estructura de nuestro proyecto &quot;ImportarCssJssEnJsp&quot; debe ser la siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHvK190z-Qa2C0WzrnLhwcTIo_3JBd4Mhy0k3nIY42JcqPl5CIOI7oO59xZkrUaN7ovDrEMoIgqQQlF8O8J6g2RXtcL_6TDBTFPtatLg-kXjpw4XyQ38XfcqvO5qd5lKYGP94bCdRUVE9z/s1600/1.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiHvK190z-Qa2C0WzrnLhwcTIo_3JBd4Mhy0k3nIY42JcqPl5CIOI7oO59xZkrUaN7ovDrEMoIgqQQlF8O8J6g2RXtcL_6TDBTFPtatLg-kXjpw4XyQ38XfcqvO5qd5lKYGP94bCdRUVE9z/s1600/1.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;*La principal observación a esta estructura es que, las carpetas css y jss están al mismo nivel que WEB-INF. Los siguientes pasos son para demostrarlo con un ejemplo.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;2.- El archivo cssIndex.css contiene algo simple como:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBrM5CPhYTQ7ocRwvSj5mENxI0nxiDMk9msuxodZEvTaQeNwOdK2ZCAZDIyRRP6NMvMjIhPeRo3NFx5UTFOGQWY6n6oQU9peeXI9hCkm3Olneit8xK6eozEA73HmTyymsLe6RRC4o1aOMS/s1600/3.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBrM5CPhYTQ7ocRwvSj5mENxI0nxiDMk9msuxodZEvTaQeNwOdK2ZCAZDIyRRP6NMvMjIhPeRo3NFx5UTFOGQWY6n6oQU9peeXI9hCkm3Olneit8xK6eozEA73HmTyymsLe6RRC4o1aOMS/s1600/3.png&quot; height=&quot;182&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;3.- Y el archivo jssIndex.js tiene lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWeN5bKlrIGpww4f-OrO6AZAVHFaszwWhN-q-1uHsQBD4xfWvrSMHqlvYDX6YDvWS-4oD-E43WxgxX897wR7q0W02XB1FDjqhQzwf-T-QgJfIIbCEvBskIS-28FBKTMGMSfVmt07RBYpY-/s1600/2.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhWeN5bKlrIGpww4f-OrO6AZAVHFaszwWhN-q-1uHsQBD4xfWvrSMHqlvYDX6YDvWS-4oD-E43WxgxX897wR7q0W02XB1FDjqhQzwf-T-QgJfIIbCEvBskIS-28FBKTMGMSfVmt07RBYpY-/s1600/2.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;4.- Ahora vayamos a ver el archivo index.jsp, que es donde incluimos los archivos css y jsp.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEAk_afUCfvstMx7v2guFYHqdDlygBXYCrHoEP8U0NZ_dRyzHqATZ1tZC9BA4WZOcKQD-g-jCB_t1lN36LlZI2RX00j-d22zRZ1J-L5R9LLyDeBe7F7VRORlGbqA4qTD6UhjLr4Hrmkln_/s1600/0.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEAk_afUCfvstMx7v2guFYHqdDlygBXYCrHoEP8U0NZ_dRyzHqATZ1tZC9BA4WZOcKQD-g-jCB_t1lN36LlZI2RX00j-d22zRZ1J-L5R9LLyDeBe7F7VRORlGbqA4qTD6UhjLr4Hrmkln_/s1600/0.png&quot; height=&quot;297&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Con lo cual ejecutando nuestro proyecto tenemos el efecto de nuestro archivo jssIndex.jsp:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZTdNFYY9JDXrDnPL1XvcpAB0t4LDic0Lx7-WJMpJUIeqj39Nfe0xsMMOsldmRlTWc4oHEot6_7RDZj5SbDcCnC7M_VUbzkTPnNJFy93B91EQ98DrlZzyArlK3uM-BpaoxPLYDNxMWjHbu/s1600/5.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZTdNFYY9JDXrDnPL1XvcpAB0t4LDic0Lx7-WJMpJUIeqj39Nfe0xsMMOsldmRlTWc4oHEot6_7RDZj5SbDcCnC7M_VUbzkTPnNJFy93B91EQ98DrlZzyArlK3uM-BpaoxPLYDNxMWjHbu/s1600/5.png&quot; height=&quot;328&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;y luego el de cssIndex.css:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyHjeLEe4hF9R-NZ8evTpu8CR63kTRA8OrKvH4Zb1AI2Lgy2ZDjg84g94mSrYDbzJhfbCaz1Z8OfaeCYsOk3NCLenlUObuRxrMdXOnljTdevgtZz7ofZuwpzQxwYtd458ms4CPktKNgblS/s1600/6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyHjeLEe4hF9R-NZ8evTpu8CR63kTRA8OrKvH4Zb1AI2Lgy2ZDjg84g94mSrYDbzJhfbCaz1Z8OfaeCYsOk3NCLenlUObuRxrMdXOnljTdevgtZz7ofZuwpzQxwYtd458ms4CPktKNgblS/s1600/6.png&quot; height=&quot;326&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: start;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;Bueno, eso fue todo por el momento, ya saben... dudas y/o sugerencias háganlas llegar. Gracias!!&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: start;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/7149567298660071775/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/7149567298660071775?isPopup=true' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7149567298660071775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7149567298660071775'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2013/05/incluir-archivos-css-y-jss-en-jsp.html' title='Incluir archivos css y jss en jsp'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR2gZqylL7vbh-89icQCxKHy1NAmEXN7aikaPaWBZFM3poDCF-EoPC1qo6VoeGIZzs8tvkQC9tIRbDVso265RgczhhzkxXYY_PV_dW4BvZCuZf1RkqJFH5Kf7HQIj9ZBodBCbY-f_DaRDW/s72-c/logo.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-7403404535663299776</id><published>2012-06-04T14:18:00.000-07:00</published><updated>2012-08-22T03:54:44.861-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Bandeja de Entrada"/><category scheme="http://www.blogger.com/atom/ns#" term="Desktop"/><category scheme="http://www.blogger.com/atom/ns#" term="e-mail"/><category scheme="http://www.blogger.com/atom/ns#" term="Escritorio"/><category scheme="http://www.blogger.com/atom/ns#" term="Hotmail"/><category scheme="http://www.blogger.com/atom/ns#" term="IMAP4"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaMail"/><category scheme="http://www.blogger.com/atom/ns#" term="POP3"/><title type='text'>Leer mensajes de nuestra bandeja de entrada de cuenta de e-mail Hotmail con POP3 desde una aplicación Java</title><content type='html'>&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno hoy vamos a ver cómo mostrar mensajes de una cuenta de e-mail de Hotmail en una aplicación Java&lt;/span&gt;&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9MFcjGOu-ZD2wEVgLOIKnVvaRwloU4KKXouDMJ980ejyHIei5jQlDD_fBV9lvYFJUEeCXSAQF2ec7YQNxvF8G9nJB4gZYAZ_SMXKiGIHebboBVDVPQBGT8YihIGXnovXoP_LIv4fKossw/s1600/hotmail-configurar-etiquetas+copia.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; display: inline !important; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;156&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9MFcjGOu-ZD2wEVgLOIKnVvaRwloU4KKXouDMJ980ejyHIei5jQlDD_fBV9lvYFJUEeCXSAQF2ec7YQNxvF8G9nJB4gZYAZ_SMXKiGIHebboBVDVPQBGT8YihIGXnovXoP_LIv4fKossw/s200/hotmail-configurar-etiquetas+copia.gif&quot; width=&quot;200&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Comenzaré mencionando que para esta operación los dos protocolos más usados son tanto &lt;b&gt;POP3 &lt;/b&gt;como &lt;b&gt;IMAP4&lt;/b&gt;. Las diferencias entre ambas podemos verlas más claramente en:&amp;nbsp;&lt;a href=&quot;http://www.e-sort.net/blog/index.php/2009/06/05/diferencias-entre-protocolos-pop-e-imap-de-correo-electronico/#comment-144&quot; target=&quot;_blank&quot;&gt;http://www.e-sort.net/blog/index.php/2009/06/05/diferencias-entre-protocolos-pop-e-imap-de-correo-electronico/#comment-144&lt;/a&gt;&amp;nbsp;y claro también vale aclarar que para Hotmail no hay el servidor &lt;b&gt;IMAP4&lt;/b&gt;, así que bueno vamos a hacerla en &lt;b&gt;POP3&lt;/b&gt;, aunque esta no nos permite la gestión de carpetas; pues únicamente podemos manejar la carpeta &lt;b&gt;INBOX &lt;/b&gt;(osea la &lt;b&gt;Bandeja de entrada&lt;/b&gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Vamos a desarrollar una pequeña &quot;&lt;b&gt;Bandeja de Entrada&lt;/b&gt;&quot; de escritorio, que nos servirá para mostrar el contenido de los mensajes que contiene nuestra cuenta de Hotmail.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para ello como ya es habitual vamos a listar las herramientas que necesitamos:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/java/javamail/index-138643.html&quot; target=&quot;_blank&quot;&gt;&lt;i&gt;JavaMail.jar&lt;/i&gt;&lt;/a&gt;:&amp;nbsp;&lt;i&gt;Que nos brindará las bondades de la API JavaMail.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;a href=&quot;http://netbeans.org/&quot;&gt;Netbeans 7.0.1&lt;/a&gt;, indistintamente de cualquier otro IDE.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Aclarando que el presente ejemplo sólo mostrará aquellos mensajes que contengan texto plano. Pues ya en lo posterior desarrollaremos otros que tenga mayor funcionalidad.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno sin más preámbulos vamos a ver nuestro proyecto:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Se denominará &lt;b&gt;BandejaEntradaHotmail&lt;/b&gt;, la cual contará con los paquetes &lt;b&gt;unsch.efpis.controlador&lt;/b&gt;, que contendrá a la clase&amp;nbsp;&lt;b&gt;ControladorBandejaDeEntrada.java&lt;/b&gt;; &lt;b&gt;unsch.efpis.modelo&lt;/b&gt;, que contendrá a &lt;b&gt;ModeloBandejaDeEntrada.java&lt;/b&gt;; &lt;b&gt;unsch.efpis.vista&lt;/b&gt;, que contendrá &lt;b&gt;VistaBandejaDeEntrada.java&lt;/b&gt; y por último &lt;b&gt;unsch.efpis.pruebas&lt;/b&gt;, que contendrá a&lt;b&gt; Pruebas.java&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg4T85cGPlFCjulRCcNCDpovCy5ykuyE9EjJtbLHt7yuMIvFr8yv1pIWbaxWVX506X7XuzdgT4Alyv5Q0SluOQTW2_0Ekq8fcHutmkr6NsZTEgoXZax7G7zgGS5H58wk4Y8mxB3Mu9kB1Oz/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDAU2zyCgSix4KGgSNFksd0BkkStKKKULhuoOedXIbhCiBUPO2rjSDAaPYpXi8h2_zVy0sQ-ZoCT1p4CQ99WAYAomoc057shnxNi8Ir2QutrNdJjFNkl_FJrqvfjm4wE5v5SLsAQ9EAWWt/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDAU2zyCgSix4KGgSNFksd0BkkStKKKULhuoOedXIbhCiBUPO2rjSDAaPYpXi8h2_zVy0sQ-ZoCT1p4CQ99WAYAomoc057shnxNi8Ir2QutrNdJjFNkl_FJrqvfjm4wE5v5SLsAQ9EAWWt/s1600/1_.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora vayamos a mostrar la codificación de cada una de las clases anteriormente mencionadas:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;La clase&amp;nbsp;&lt;b&gt;ModeloBandejaDeEntrada.java&lt;/b&gt;: La cual se encargará de hacer la consulta a la &lt;b&gt;bandeja de entrada &lt;/b&gt;de nuestro correo y además obtener todos los mensajes que ella contiene.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=cdsmFRVK&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;La clase &lt;b&gt;VistaBandejaDeEntrada.java&lt;/b&gt;: Es la interfaz que utilizaremos.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=z6rg053K&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;La clase&amp;nbsp;&lt;b&gt;ControladorBandejaDeEntrada.java&lt;/b&gt;: La cual se encargará de realizar la gestión entre el&amp;nbsp;&lt;b&gt;ModeloBandejaDeEntrada.java &lt;/b&gt;y&amp;nbsp;&lt;b&gt;VistaBandejaDeEntrada.java&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=frSiDLAJ&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y por último la clase &lt;b&gt;Pruebas.java&lt;/b&gt;, que será nuestro punto de partida.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=xwTGVFhU&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno ahora veamos la parte demostrativa:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Tenemos un &lt;b&gt;bandeja &lt;/b&gt;de mensajes como muestra la siguiente imagen, ella contiene algunos mensajes.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT-e0w4zcBxlQj_bryj5YEhp-Bo2Zs0y7XQHyOf2OpE1463aHwVA-VTvkCMlmvNNN3p7XKONmd52XgaT0AEHjaa2p4tPWHHojgPW0eZPq80OVgwYiiqLF3P60l2DlAfwH3HbXr9YVJ3ZU/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;364&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJT-e0w4zcBxlQj_bryj5YEhp-Bo2Zs0y7XQHyOf2OpE1463aHwVA-VTvkCMlmvNNN3p7XKONmd52XgaT0AEHjaa2p4tPWHHojgPW0eZPq80OVgwYiiqLF3P60l2DlAfwH3HbXr9YVJ3ZU/s640/2_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Al abrir una de ellas, vemos que tiene cierto contenido.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGidieKybxoilK00_Oa67hrg62siNSpUllmL50ne0xNFogyjE5qDOi8ZnDfEqsdK5S2kNijKRYbvKjiBi5TNpI0UyBg9X_3o9pGGglguYwKYMb39ykakciflOdCcWKZLc0VG8TEpPcDG3h/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;351&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjGidieKybxoilK00_Oa67hrg62siNSpUllmL50ne0xNFogyjE5qDOi8ZnDfEqsdK5S2kNijKRYbvKjiBi5TNpI0UyBg9X_3o9pGGglguYwKYMb39ykakciflOdCcWKZLc0VG8TEpPcDG3h/s640/3_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Esta es nuestra interfaz cargada de los &quot;&lt;b&gt;Asuntos&lt;/b&gt;&quot; de los mensajes que estaban en la bandeja de entrada del correo.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;NOTA IMPORTANTE&lt;/span&gt;:&lt;/b&gt; &lt;b&gt;&lt;i&gt;CUÁNTO MÁS MENSAJES TENGAS EN TU BANDEJA MÁS TIEMPO DEMORARÁ EN MOSTRARTE ESTA PRIMERA INTERFAZ; PUES EL FUNCIONAMIENTO DE POP3 ES ASÍ (DESCARGA EL CONTENIDO DE CADA UNO DE LOS MENSAJES A LA COMPUTADORA).&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyv1QIzQpqCuyYNXIx_LxG6TWoy8Cf_V6fZBhihhmbxT-rqLRk9P6v4vus5klP0MhjqsdOMdP3NYx1-U03qM0NvaEIIZtph6ODlvUX_iYya6wqvdaFx-TIZEEBD08J-1CkwSlevCplCEKh/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;323&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyv1QIzQpqCuyYNXIx_LxG6TWoy8Cf_V6fZBhihhmbxT-rqLRk9P6v4vus5klP0MhjqsdOMdP3NYx1-U03qM0NvaEIIZtph6ODlvUX_iYya6wqvdaFx-TIZEEBD08J-1CkwSlevCplCEKh/s640/4_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Al seleccionar una, nos muestra el mismo contenido que lo del correo, claro en &lt;b&gt;texto simple&lt;/b&gt;...&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsbKa0pI7bK7EVC2HsS4WSkFpi5DN1kZhv9Fxyboqepm8w4gloaDBV5nVksZhpLXp7aPoHNTZWYoTccOsZqAKi6SAX7yFFgU2auip4KYML7g4YGmrdH5UdlSgbmtfUfZC4CqCOBUhdTARN/s1600/5_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;324&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsbKa0pI7bK7EVC2HsS4WSkFpi5DN1kZhv9Fxyboqepm8w4gloaDBV5nVksZhpLXp7aPoHNTZWYoTccOsZqAKi6SAX7yFFgU2auip4KYML7g4YGmrdH5UdlSgbmtfUfZC4CqCOBUhdTARN/s640/5_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;Bueno, eso fue todo por el momento, ya saben... dudas y/o sugerencias háganlas llegar. Gracias!!&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/7403404535663299776/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/7403404535663299776?isPopup=true' title='10 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7403404535663299776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7403404535663299776'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/06/leer-mensajes-de-nuestra-bandeja-de.html' title='Leer mensajes de nuestra bandeja de entrada de cuenta de e-mail Hotmail con POP3 desde una aplicación Java'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh9MFcjGOu-ZD2wEVgLOIKnVvaRwloU4KKXouDMJ980ejyHIei5jQlDD_fBV9lvYFJUEeCXSAQF2ec7YQNxvF8G9nJB4gZYAZ_SMXKiGIHebboBVDVPQBGT8YihIGXnovXoP_LIv4fKossw/s72-c/hotmail-configurar-etiquetas+copia.gif" height="72" width="72"/><thr:total>10</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-3711310024054613604</id><published>2012-06-02T21:37:00.003-07:00</published><updated>2012-08-22T03:55:01.793-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cifrado de César"/><category scheme="http://www.blogger.com/atom/ns#" term="Desencriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Encriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Monoalfabético"/><category scheme="http://www.blogger.com/atom/ns#" term="Monográmico"/><category scheme="http://www.blogger.com/atom/ns#" term="Método de Sustitución"/><title type='text'>Cifrador y Descifrador del método de Sustitución Monoalfabético, Monográmico con Desplazamiento N en Java</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: -webkit-auto;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;background-color: white; font-size: 13.5pt; line-height: 115%;&quot;&gt;MÉTODO DE
SUSTITUCIÓN, MONOALFABÉTICO, MONOGRÁMICO DE CESAR&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1eoce2X6tUOZdpMCEVSIW3LSxUQNJ0rcD_RUjDClVxw40-_x52WMJFF28wnhWVEtbgcRgDjmr2bRFjpLGb2pJ2_gLGJA6ZBtlGV5xaUgNNan7UzrVcC1ktfQFruewKtMhAjd_rajpNdAK/s1600/Gaius_Julius_Caesar+-+copia.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1eoce2X6tUOZdpMCEVSIW3LSxUQNJ0rcD_RUjDClVxw40-_x52WMJFF28wnhWVEtbgcRgDjmr2bRFjpLGb2pJ2_gLGJA6ZBtlGV5xaUgNNan7UzrVcC1ktfQFruewKtMhAjd_rajpNdAK/s1600/Gaius_Julius_Caesar+-+copia.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; font-family: &#39;Trebuchet MS&#39;, sans-serif; line-height: 20px; text-align: left;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;El nombre utilizado es debido a que se menciona la técnica, el tipo de alfabeto y la forma de ordenar las letras para realizar el cifrado. El método consistía en un desplazamiento (n), con el propósito de sustituir cada&amp;nbsp;carácter&amp;nbsp;&amp;nbsp;del mensaje en claro por otro situado (n) posiciones después.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt; &lt;span style=&quot;color: #555555;&quot;&gt;[&lt;/span&gt;&lt;a href=&quot;http://aerilon.wordpress.com/2011/05/05/introduccion-a-la-criptografia/&quot;&gt;http://aerilon.wordpress.com/2011/05/05/introduccion-a-la-criptografia/&lt;/a&gt;&lt;span style=&quot;color: #555555;&quot;&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora veremos cómo cifrar y descifrar por el método de&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; line-height: 21px;&quot;&gt;Sustitución Monoalfabético con Desplazamiento &quot;N&quot;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;, una vez más p&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;ara la simplicidad del caso; vamos a trabajarlo en&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Consola,&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;ya Uds. pueden hacerle una interfaz y trabajar con ella;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;text-align: left;&quot;&gt;Bueno vamos con el caso; primero veamos la estructura de carpetas con las que contará nuestro proyecto,&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;text-align: left;&quot;&gt;ProyectoEncriptacionSI&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn_74pz-86B7rhmjhAGSAoX_QO12ZSMDwdUZ0N1kktdAxPHb-jPAmAMbj2lRT0XRZnKZTK8luiknooyRa_AokUIsiIG4klFLkfGX8u8As4asb5ZIvp4WirV0ECMKM7QC1sOioabvBi6UXz/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgn_74pz-86B7rhmjhAGSAoX_QO12ZSMDwdUZ0N1kktdAxPHb-jPAmAMbj2lRT0XRZnKZTK8luiknooyRa_AokUIsiIG4klFLkfGX8u8As4asb5ZIvp4WirV0ECMKM7QC1sOioabvBi6UXz/s400/1_.png&quot; width=&quot;387&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhtz0gSqzZ3BJsgQ4fE46997mJCq037xeFmR0jZwI5C6QKldzQ5uYpLuCwwugq54LZZZSSVoYTEbl_WFUb8ycOwfLdkxggYcYxKpBJ8e94UJLMbRj-O8u3F1Pr3S3Y7HkZD1yiQIvBnbU/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como se muestra los paquetes y las respectivas clases que contiene:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Pasamos a ver las clases&amp;nbsp;
&lt;span style=&quot;background-color: white; line-height: 21px; text-align: -webkit-auto;&quot;&gt;&lt;b&gt;CifradorSustitucionMonoalfabeticoDesplazamientoN&lt;/b&gt;&lt;/span&gt;&lt;b&gt;.java&lt;/b&gt;&amp;nbsp;y&amp;nbsp;&amp;nbsp;&lt;b&gt;Desc&lt;span style=&quot;background-color: white; line-height: 21px; text-align: -webkit-auto;&quot;&gt;ifradorSustitucionMonoalfabeticoDesplazamientoN&lt;/span&gt;.java&amp;nbsp;&lt;/b&gt;y claro la clase&amp;nbsp;
&lt;span style=&quot;background-color: white; line-height: 21px; text-align: -webkit-auto;&quot;&gt;&lt;b&gt;SustitucionMonoalfabeticoDesplazamientoN&lt;/b&gt;&lt;/span&gt;&lt;b&gt;.java&lt;/b&gt;.Veamos las clases mencionadas&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b style=&quot;line-height: 21px;&quot;&gt;CifradorSustitucionMonoalfabeticoDesplazamientoN&lt;/b&gt;&lt;span style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;.java&lt;/b&gt;: Que será la encarga de cifrar las letras que se le envíe:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=rDySFZag&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Desc&lt;span style=&quot;background-color: white; line-height: 21px; text-align: -webkit-auto;&quot;&gt;ifradorSustitucionMonoalfabeticoDesplazamientoN&lt;/span&gt;&lt;/b&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: justify;&quot;&gt;.java&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: justify;&quot;&gt;: La cual se encargará de descifrar las letras que se le envíe:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=kbc88cTh&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b style=&quot;line-height: 21px;&quot;&gt;SustitucionMonoalfabeticoDesplazamientoN&lt;/b&gt;&lt;b&gt;.java&lt;/b&gt;: Que se encargará de la gestión del cifrado y descifrado.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=jzxt3u6q&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y claro la clase&amp;nbsp;&lt;b&gt;Pruebas.java&lt;/b&gt;&amp;nbsp;donde veremos algunas comprobaciones de nuestro encriptador y desencriptador:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=PnRHrQsV&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Al ejecutar ésta última clase nos deberá mostrar algo como lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtQsMypRJTI9A8r86zXQLReAkRP4sQ6tugqYYH4S4hIo5A2VuXlB4TmvOhyphenhyphenYh9UoIvEVWlH_P2PHFcZQ0yYhIxFmtJ-DY0TiyU-oQJ1_HVcbjyYD-ofzi1MB9109VWE5MEchr28STD5C7k/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtQsMypRJTI9A8r86zXQLReAkRP4sQ6tugqYYH4S4hIo5A2VuXlB4TmvOhyphenhyphenYh9UoIvEVWlH_P2PHFcZQ0yYhIxFmtJ-DY0TiyU-oQJ1_HVcbjyYD-ofzi1MB9109VWE5MEchr28STD5C7k/s640/2_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno eso es todo por el momento, espero sus dudas y/o sugerencias; nuevamente gracias totales!! :D&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/3711310024054613604/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/3711310024054613604?isPopup=true' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/3711310024054613604'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/3711310024054613604'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/06/cifrador-y-descifrador-del-metodo-de.html' title='Cifrador y Descifrador del método de Sustitución Monoalfabético, Monográmico con Desplazamiento N en Java'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1eoce2X6tUOZdpMCEVSIW3LSxUQNJ0rcD_RUjDClVxw40-_x52WMJFF28wnhWVEtbgcRgDjmr2bRFjpLGb2pJ2_gLGJA6ZBtlGV5xaUgNNan7UzrVcC1ktfQFruewKtMhAjd_rajpNdAK/s72-c/Gaius_Julius_Caesar+-+copia.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-2592325015552975030</id><published>2012-05-31T20:55:00.000-07:00</published><updated>2012-08-22T03:55:29.149-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cifrado de César"/><category scheme="http://www.blogger.com/atom/ns#" term="Desencriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Encriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><title type='text'>Cifrador y Descifrador del método de César en Java</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-size: large;&quot;&gt;&lt;i&gt;&lt;b&gt;El cifrado de César&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjW2Lq5tMB2f2YE6_ODOmjbhoPgjat7vxThd61jDv1QS6ZpPCWUEq4uGswHV3jdimndO5_vkNQVBNkf603qqU6351KSdj5QEJTlgMbqhqQtE-jVTbTqEVFs5wmPi9CKpYao6Dq_94kAO5x/s1600/cifrador_cesar+copia.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;232&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjW2Lq5tMB2f2YE6_ODOmjbhoPgjat7vxThd61jDv1QS6ZpPCWUEq4uGswHV3jdimndO5_vkNQVBNkf603qqU6351KSdj5QEJTlgMbqhqQtE-jVTbTqEVFs5wmPi9CKpYao6Dq_94kAO5x/s320/cifrador_cesar+copia.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 16px; line-height: 20px; word-spacing: 1px;&quot;&gt;A pesar de ser uno de los métodos criptográficos más simples, el “&lt;/span&gt;&lt;strong style=&quot;border: 0px; font-size: 16px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; word-spacing: 1px;&quot;&gt;&lt;em style=&quot;border: 0px; display: inline; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px 0px 15px; vertical-align: baseline;&quot;&gt;cifrado de César&lt;/em&gt;&lt;/strong&gt;&lt;span style=&quot;font-size: 16px; line-height: 20px; word-spacing: 1px;&quot;&gt;” permitió a Julio César proteger sus mensajes importantes de las miradas no autorizadas. Consiste en substituir cada letra del mensaje por otra que se encuentre un número fijo de posiciones más adelante en el alfabeto, y aunque hoy puede ser “&lt;/span&gt;&lt;em style=&quot;border: 0px; display: inline; font-size: 16px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px 0px 15px; vertical-align: baseline; word-spacing: 1px;&quot;&gt;descifrado&lt;/em&gt;&lt;span style=&quot;font-size: 16px; line-height: 20px; word-spacing: 1px;&quot;&gt;” hasta por un niño, hace 2000 años -en un mundo en el que pocas personas sabían leer y escribir- este mecanismo era considerado lo suficientemente seguro como para confiar en el la seguridad de un estado.[&lt;a href=&quot;http://www.neoteo.com/el-cifrado-del-cesar&quot; target=&quot;_blank&quot;&gt;http://www.neoteo.com/el-cifrado-del-cesar&lt;/a&gt;]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;Ahora veremos cómo cifrar y descifrar por el método de César, una vez más p&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;ara la simplicidad del caso; vamos a trabajarlo en&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;Consola,&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;&amp;nbsp;ya Uds. pueden hacerle una interfaz y trabajar con ella;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;Bueno vamos con el caso; primero veamos la estructura de carpetas con las que contará nuestro proyecto,&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;ProyectoEncriptacionSI&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-_VuD8pReGKWKcd7_8zJpxkxteJ2OwCw8jcF97t7idJjzsxHXopGPPvM5sTi0XObyPJKAJpl_m0TOrfsi1fzGb4_PIUV8y859EqkVC-SECZ1pNnQeu61dIqO2TyI07CvnMxpMCLGtlkrv/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-_VuD8pReGKWKcd7_8zJpxkxteJ2OwCw8jcF97t7idJjzsxHXopGPPvM5sTi0XObyPJKAJpl_m0TOrfsi1fzGb4_PIUV8y859EqkVC-SECZ1pNnQeu61dIqO2TyI07CvnMxpMCLGtlkrv/s400/1_.png&quot; width=&quot;257&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhtz0gSqzZ3BJsgQ4fE46997mJCq037xeFmR0jZwI5C6QKldzQ5uYpLuCwwugq54LZZZSSVoYTEbl_WFUb8ycOwfLdkxggYcYxKpBJ8e94UJLMbRj-O8u3F1Pr3S3Y7HkZD1yiQIvBnbU/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como se muestra los paquetes y las respectivas clases que contiene:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Pasamos a ver las clases&amp;nbsp;&lt;b&gt;CifradorCesar.java&lt;/b&gt;&amp;nbsp;y&amp;nbsp;&lt;b&gt;DescifradorCesar.java&amp;nbsp;&lt;/b&gt;y claro la clase&amp;nbsp;&lt;b&gt;CodigoCesar.java&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;CifradorCesar&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;.java&lt;/b&gt;: Que será la encarga de cifrar las letras que se le envíe:&lt;/span&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=YArrarXd&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;DescifradorCesar&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;.java&lt;/b&gt;: La cual se encargará de descifrar las letras que se le envíe:&lt;/span&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=f2Wsbi96&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;CodigoCesar.java&lt;/b&gt;: Que se encargará de la gestión del cifrado y descifrado.&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=P5BRbLCT&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y claro la clase&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Pruebas.java&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;donde veremos algunas comprobaciones de nuestro encriptador y desencriptador:&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=gTQqZrPL&quot; style=&quot;border: none; height: 70%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Al ejecutar ésta última clase nos deberá mostrar algo como lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiERcXB65mRYeFHPfNy9KI3-T-4T2FlEsR1WXy-Cvk8i9WuegI5w7-poQ1TTEDHddbzJIIXN6gd5KnDgn5LM84LJ_vHVMPVbgNJE3CAfXg8K97gFWZisLnLTEk2FiraIrrgJN76tk5vIUzp/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiERcXB65mRYeFHPfNy9KI3-T-4T2FlEsR1WXy-Cvk8i9WuegI5w7-poQ1TTEDHddbzJIIXN6gd5KnDgn5LM84LJ_vHVMPVbgNJE3CAfXg8K97gFWZisLnLTEk2FiraIrrgJN76tk5vIUzp/s640/2_.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno eso es todo por el momento, espero sus dudas y/o sugerencias; gracias totales!! :D&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #990000; font-family: Verdana, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/2592325015552975030/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/2592325015552975030?isPopup=true' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/2592325015552975030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/2592325015552975030'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/05/cifrador-y-descifrador-del-metodo-de.html' title='Cifrador y Descifrador del método de César en Java'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgjW2Lq5tMB2f2YE6_ODOmjbhoPgjat7vxThd61jDv1QS6ZpPCWUEq4uGswHV3jdimndO5_vkNQVBNkf603qqU6351KSdj5QEJTlgMbqhqQtE-jVTbTqEVFs5wmPi9CKpYao6Dq_94kAO5x/s72-c/cifrador_cesar+copia.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-4198781131958037649</id><published>2012-05-28T21:18:00.004-07:00</published><updated>2012-08-22T03:55:49.897-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Desencriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Encriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Vigenere"/><title type='text'>Cifrador y Descifrador del método Vigenere en Java</title><content type='html'>&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1bwRMB4hkuMd9_GI1SIX_8dflCo687TRfsRQVdhyhka71H-WuhGjlP53pD69yQDizSW60cIGiprOntxnMXNVQanyLoCt0wxTxJhqM6v6-2Hn6Vj7z9llc77jO987Z8Dzjj6lyEJVwIss/s1600/vigenere-o-cara.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1bwRMB4hkuMd9_GI1SIX_8dflCo687TRfsRQVdhyhka71H-WuhGjlP53pD69yQDizSW60cIGiprOntxnMXNVQanyLoCt0wxTxJhqM6v6-2Hn6Vj7z9llc77jO987Z8Dzjj6lyEJVwIss/s200/vigenere-o-cara.png&quot; width=&quot;148&quot; /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;Blaise de Vigenere&lt;/i&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;Ahora veremos cómo encriptar por el método de Vigenere, nuevamente p&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;ara la simplicidad del caso; vamos a trabajarlo en&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;Consola&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;; ya Uds. pueden hacerle una interfaz y trabajar con ella;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;Bueno vamos con el caso; primero veamos la estructura de carpetas con las que contará nuestro proyecto,&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;ProyectoEncriptacionSI...&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhtz0gSqzZ3BJsgQ4fE46997mJCq037xeFmR0jZwI5C6QKldzQ5uYpLuCwwugq54LZZZSSVoYTEbl_WFUb8ycOwfLdkxggYcYxKpBJ8e94UJLMbRj-O8u3F1Pr3S3Y7HkZD1yiQIvBnbU/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrhtz0gSqzZ3BJsgQ4fE46997mJCq037xeFmR0jZwI5C6QKldzQ5uYpLuCwwugq54LZZZSSVoYTEbl_WFUb8ycOwfLdkxggYcYxKpBJ8e94UJLMbRj-O8u3F1Pr3S3Y7HkZD1yiQIvBnbU/s400/1_.png&quot; width=&quot;278&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como se muestra los paquetes y las respectivas clases que contiene:&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Pasamos a ver las clases&amp;nbsp;&lt;b&gt;CifradorVigenere.java&lt;/b&gt;&amp;nbsp;y&amp;nbsp;&lt;b&gt;DescifradorVigenere.java &lt;/b&gt;y claro la clase &lt;b&gt;Vigenere.java&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;CifradorVigenere&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;.java&lt;/b&gt;: Que será la encarga de cifrar las letras que se le envíe:&lt;/span&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=i8csDhGa&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;DescifradorVigenere&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;.java&lt;/b&gt;: La cual se encargará de descifrar las letras que se le envíe:&lt;/span&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=Zc8hTH7H&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Vigenere.java&lt;/b&gt;: Que se encargará de la gestión del cifrado y descifrado.&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=inMLL85f&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y claro la clase&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Pruebas.java&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;donde veremos algunas comprobaciones de nuestro encriptador:&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=4mJqjbpE&quot; style=&quot;border: none; height: 80%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Al ejecutar ésta última clase nos deberá mostrar algo como lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQN5Rye5Y7DyeEEIQhpE5RT-006Fp43NEhE50bQIyuDQa3kAVUrEgUDXv0z3fQaW_Mq8u9d_W2ho2RGM-VHhQg6F4nkw9UVsGp5FcHBN8KWItOlc6O8jrwfdY_BG7vItc_MddoiXYHpau1/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQN5Rye5Y7DyeEEIQhpE5RT-006Fp43NEhE50bQIyuDQa3kAVUrEgUDXv0z3fQaW_Mq8u9d_W2ho2RGM-VHhQg6F4nkw9UVsGp5FcHBN8KWItOlc6O8jrwfdY_BG7vItc_MddoiXYHpau1/s640/2_.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno eso es todo por el momento, espero sus dudas y/o sugerencias; gracias!!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/4198781131958037649/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/4198781131958037649?isPopup=true' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/4198781131958037649'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/4198781131958037649'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/05/cifrador-y-descifrador-del-metodo_28.html' title='Cifrador y Descifrador del método Vigenere en Java'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEie1bwRMB4hkuMd9_GI1SIX_8dflCo687TRfsRQVdhyhka71H-WuhGjlP53pD69yQDizSW60cIGiprOntxnMXNVQanyLoCt0wxTxJhqM6v6-2Hn6Vj7z9llc77jO987Z8Dzjj6lyEJVwIss/s72-c/vigenere-o-cara.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-4559369078052988782</id><published>2012-05-28T07:24:00.000-07:00</published><updated>2012-08-22T03:55:57.748-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Desencriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Ecriptación"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><category scheme="http://www.blogger.com/atom/ns#" term="Polybios"/><title type='text'>Cifrador y Descifrador del método Polybios en Java</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;i&gt;&lt;b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;¿Ho&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;la cómo es&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-large;&quot;&gt;t&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;án...?&lt;/span&gt;&lt;/b&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno, éste post será el comienzo de una serie pequeña de métodos de encriptación, ejemplos básicos, sencillos, OJO: básicos y sencillos, la sesión de hoy vamos a ver un método algo interesante (Polybios); bueno los conceptos básicos imagino ya la conocen; pero en unas pocas palabras voy a resumirlo.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM7loVL6CqGoOTBXyGJmW_sy9eyt7nDTKwmw4xYgJ3Bp5gAuJ5ffzIi8kMFHmw-4htVIs2zwA6Aat6p5BX2qD1JV0i6QETerBVS1dGPb6GAv2wBPXDdbJDQKna8aKleQtZdW_LLCfxq4wh/s1600/tablas2+copia.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;186&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM7loVL6CqGoOTBXyGJmW_sy9eyt7nDTKwmw4xYgJ3Bp5gAuJ5ffzIi8kMFHmw-4htVIs2zwA6Aat6p5BX2qD1JV0i6QETerBVS1dGPb6GAv2wBPXDdbJDQKna8aKleQtZdW_LLCfxq4wh/s400/tablas2+copia.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para cifrar la letra &quot;&lt;b&gt;S&lt;/b&gt;&quot; en cualquiera de las dos tablas; le corresponden la columna y fila que hacen que al intersectarse generan dicha letra, para nuestro caso en la primera tabla sería &quot;&lt;b&gt;DC&lt;/b&gt;&quot; y en la segunda sería &quot;&lt;b&gt;43&lt;/b&gt;&quot;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para la simplicidad del caso; vamos a trabajarlo en &lt;b&gt;Consola&lt;/b&gt;; ya Uds. pueden hacerle una interfaz y trabajar con ella;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno vamos con el caso; primero veamos la estructura de carpetas con las que contará nuestro proyecto, &lt;b&gt;ProyectoEncriptacionSI&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPUNQmlIZlrvsBLv7W3UnqK09e8AyZiQdw9vI2JdnsOYe0bdECHSAHtytMKRqT3BFZbvenBDhklLT5w5dxYhSpmfLua3rVVqRSDiEiEuP7APPIyH6e9nFV7UAT3q5u76eWHGNOsMqA22hJ/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjPUNQmlIZlrvsBLv7W3UnqK09e8AyZiQdw9vI2JdnsOYe0bdECHSAHtytMKRqT3BFZbvenBDhklLT5w5dxYhSpmfLua3rVVqRSDiEiEuP7APPIyH6e9nFV7UAT3q5u76eWHGNOsMqA22hJ/s400/1_.png&quot; width=&quot;261&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como se muestra los paquetes y las respectivas clases que contiene:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Pasamos a ver las clases &lt;b&gt;CifradorPolybios.java&lt;/b&gt; y &lt;b&gt;DescifradorPolybios.java&lt;/b&gt;&amp;nbsp;así como también la clase &lt;b&gt;Polybios.java.&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;CifradorPolybios.java&lt;/b&gt;: Que será la encarga de cifrar las letras que se le envíe:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=k6As71Kt&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;DescifradorPolybios.java&lt;/b&gt;: La cual se encargará de descifrar las letras que se le envíe:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=QZPd7X04&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Polybios.java&lt;/b&gt;: Quien se encargará de gestionar el cifrado y descifrado:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=4jtiaMPi&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y claro la clase &lt;b&gt;Pruebas.java&lt;/b&gt; donde veremos algunas comprobaciones de nuestro encriptador:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=FEsLWymd&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Al ejecutar ésta última clase nos deberá mostrar algo como lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizPiC8yKbwCh8C9XcEbd6UzWbliW8XShBR9YR4N_XnbeQr_R1MtLmXeCY5bbvmK1Ch0wFoEREx5XEDJu2MjZf6kl_oa4dHHzhR9PpzqaMOBuOV7ix0lJa8M_aMZhyphenhyphen8L6u5dUMuwxq0aUsm/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizPiC8yKbwCh8C9XcEbd6UzWbliW8XShBR9YR4N_XnbeQr_R1MtLmXeCY5bbvmK1Ch0wFoEREx5XEDJu2MjZf6kl_oa4dHHzhR9PpzqaMOBuOV7ix0lJa8M_aMZhyphenhyphen8L6u5dUMuwxq0aUsm/s640/2_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno eso es todo por el momento, espero sus dudas y/o sugerencias; gracias!!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/4559369078052988782/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/4559369078052988782?isPopup=true' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/4559369078052988782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/4559369078052988782'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/05/cifrador-y-descifrador-del-metodo.html' title='Cifrador y Descifrador del método Polybios en Java'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjM7loVL6CqGoOTBXyGJmW_sy9eyt7nDTKwmw4xYgJ3Bp5gAuJ5ffzIi8kMFHmw-4htVIs2zwA6Aat6p5BX2qD1JV0i6QETerBVS1dGPb6GAv2wBPXDdbJDQKna8aKleQtZdW_LLCfxq4wh/s72-c/tablas2+copia.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-7735183659093441222</id><published>2012-05-22T18:57:00.001-07:00</published><updated>2012-08-22T03:56:05.650-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="e-mail"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaMail"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><category scheme="http://www.blogger.com/atom/ns#" term="SMTP"/><title type='text'>Enviar e-mail desde Java con una cuenta de Hotmail</title><content type='html'>&lt;div style=&quot;text-align: right;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;buen día...!!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjksUMQhWAPGLFNUZtwWOOentabkyL0XlBgAhrg2pqnrqSqNOY4P0QMvVMg4YZtZHhlhEp9Sboctc6C3Y_MKOE09oLrVLaG2VtF82HRZnWN1I_zxp2OTutv_LThOC2BHANoS9qBKhVXLr7n/s1600/imagen_hotmail.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;94&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjksUMQhWAPGLFNUZtwWOOentabkyL0XlBgAhrg2pqnrqSqNOY4P0QMvVMg4YZtZHhlhEp9Sboctc6C3Y_MKOE09oLrVLaG2VtF82HRZnWN1I_zxp2OTutv_LThOC2BHANoS9qBKhVXLr7n/s320/imagen_hotmail.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Muchas veces a nu&lt;span style=&quot;background-color: white;&quot;&gt;estras aplicaciones necesitamos agregar&lt;/span&gt;le más funcionalidad (bueno, ello depende de las necesidades que los usuarios tengan) y lo que les presento ahora trata de ello; nuestra aplicación enviará correos electrónicos ya sea a uno o varios contactos.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para ello como ya es habitual vamos a listar las herramientas que necesitamos:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href=&quot;http://www.oracle.com/technetwork/java/javamail/index-138643.html&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot; target=&quot;_blank&quot;&gt;&lt;i&gt;JavaMail.jar&lt;/i&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;: &lt;i&gt;Que nos brindará las bondades de la API JavaMail.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;a href=&quot;http://netbeans.org/&quot;&gt;Netbeans 7.0.1&lt;/a&gt;, indistintamente de cualquier otro IDE.&lt;/i&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;i&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Empezaremos mencionando que el protocolo que usaremos el&amp;nbsp;&lt;/span&gt;&lt;/i&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;SMTP&lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;&lt;b&gt;(&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Simple Mail Transfer Protocol&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;) &lt;/b&gt;-&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Protocolo Simple de Transferencia de Correo&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Electrónico.&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora en primer lugar la estructura de carpetas que manejaremos en el desarrollo de nuestro proyecto:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha84SQGqBUX9zVk-arzjQMWa_aZDTMMSUuJLIdQ7ZQosmlD4Ln5cae2CLVd5xRp9dhB2J04WFsH2BLeoAO3qWNXOPPMhlSwUHAdKlu_tAqZ6at6EwZEdNjRNIoJPKTt9JwkM_YV5NuJUJe/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEha84SQGqBUX9zVk-arzjQMWa_aZDTMMSUuJLIdQ7ZQosmlD4Ln5cae2CLVd5xRp9dhB2J04WFsH2BLeoAO3qWNXOPPMhlSwUHAdKlu_tAqZ6at6EwZEdNjRNIoJPKTt9JwkM_YV5NuJUJe/s400/1_.png&quot; width=&quot;310&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como observamos el proyecto cuenta con dos paquetes: &lt;b&gt;enviarmensajehotmail &lt;/b&gt;que contendrá a la clase &lt;b&gt;EnviarMensajeHotmail.java&lt;/b&gt;, la encargada de enviar el mensaje; &lt;b&gt;unsch.efpis.Mensaje&lt;/b&gt; que contendrá a &lt;b&gt;Mensaje.java&lt;/b&gt;, que será la encargada de gestionar el envío del mensaje.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;También observamos que hemos agregado nuestro &lt;b&gt;mail.jar&lt;/b&gt;&amp;nbsp;(que por cierto la encontrarán comprimida en el&amp;nbsp;&lt;i&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/java/javamail/index-138643.html&quot; target=&quot;_blank&quot;&gt;JavaMail.jar&lt;/a&gt;&lt;/i&gt;).&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Sin más rodeos veamos la clase &lt;b&gt;Mensaje.java&lt;/b&gt;: Que se encargará de lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Establecer las propiedades para el protocolo que vamos a usar; el &lt;b&gt;SMTP&lt;/b&gt; (líneas 26 al 28).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Crear&amp;nbsp;sesión de&amp;nbsp;correo&amp;nbsp;(línea 32).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Construir un mensaje vacío (línea 36).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Rellenamos los campos necesarios del mensaje construido (asunto, emisor, receptor, etc) (líneas 39 al 53).&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Enviamos el mensaje con los campos rellenados (línea 55 al 59).&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=FuL3XqtH&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora veamos nuestra clase&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;EnviarMensajeHotmail.java&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;: Que enviará los e-mail y mostrará un mensaje si la operación se realizó con éxito.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=v08B7Jhs&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Al ejecutarla debería mostrarnos&amp;nbsp;en la consola&amp;nbsp;algo como lo siguiente :&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqAvDdu-OyRNSs8f9Q9n_Dil-LQ6SepkjfUuPUacP4E6Z-gNZzqqgu8tLv_jVC5ed4CYLLLs7bpM6u1F8Sb9n-ocYYIyhdGxRyRtaJgUNy9T2p5yt-ERSfNsRdEhFaGAUULW0t8H-1qLzO/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqAvDdu-OyRNSs8f9Q9n_Dil-LQ6SepkjfUuPUacP4E6Z-gNZzqqgu8tLv_jVC5ed4CYLLLs7bpM6u1F8Sb9n-ocYYIyhdGxRyRtaJgUNy9T2p5yt-ERSfNsRdEhFaGAUULW0t8H-1qLzO/s400/2_.png&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y en las bandejas de entrada de los e-mail&#39;s que pusimos como receptores debería haber llegado el mensaje enviado; algo como lo siguiente,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para el caso, en mi bandeja de &lt;b&gt;Hotmail&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72fe8RyCzYw5_sucv_BAmv8XCTRkRmT98aiXlbbjnLSsQul16dmsu74R9SjNAsjHkb45aQs6iYea4t3osp3gqQqrj0hALrLLQhikKwZHK7wby9Pv53DEAhAQoNgzDdR0X-btlr_iVVLsq/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg72fe8RyCzYw5_sucv_BAmv8XCTRkRmT98aiXlbbjnLSsQul16dmsu74R9SjNAsjHkb45aQs6iYea4t3osp3gqQqrj0hALrLLQhikKwZHK7wby9Pv53DEAhAQoNgzDdR0X-btlr_iVVLsq/s640/3_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;En mi bandeja de &lt;b&gt;Gmail&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKcb32kvMdNEx3_m09Jn29RJ3QhJFUn-FCOcG8WGEWlvav_G8PCTGcgWMYXfpYkxj_uk9bkIEYMVbtF4MgohrqLCNzqisRraFej5iXoQOWTRWtMGsavPOw9kA_n48E9JDB_vp_0_LEFdal/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;260&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKcb32kvMdNEx3_m09Jn29RJ3QhJFUn-FCOcG8WGEWlvav_G8PCTGcgWMYXfpYkxj_uk9bkIEYMVbtF4MgohrqLCNzqisRraFej5iXoQOWTRWtMGsavPOw9kA_n48E9JDB_vp_0_LEFdal/s640/4_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;Bueno, eso fue todo por hoy; espero sus dudas y/o comentarios sobre el tema. Muchas gracias, hasta luego!!&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/7735183659093441222/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/7735183659093441222?isPopup=true' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7735183659093441222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7735183659093441222'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/05/enviar-e-mail-desde-java-con-una-cuenta.html' title='Enviar e-mail desde Java con una cuenta de Hotmail'/><author><name>Roger Soto</name><uri>http://www.blogger.com/profile/00509517174089705994</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjksUMQhWAPGLFNUZtwWOOentabkyL0XlBgAhrg2pqnrqSqNOY4P0QMvVMg4YZtZHhlhEp9Sboctc6C3Y_MKOE09oLrVLaG2VtF82HRZnWN1I_zxp2OTutv_LThOC2BHANoS9qBKhVXLr7n/s72-c/imagen_hotmail.gif" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-2990891208443790938</id><published>2012-05-08T14:17:00.004-07:00</published><updated>2012-08-22T03:56:38.610-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="Base de Datos"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><category scheme="http://www.blogger.com/atom/ns#" term="Servlet"/><title type='text'>Conexión a MySQL, Login de usuario desde un Servlet con Netbeans</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Buen día!!&lt;/span&gt;&lt;/span&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDve3y0glurpFKxLVpAMk58O01UlrQQxhkW-gEPbLpA11UzkQPfWlvzzDtta4gFJWGxm5s1QareqCw8Rzdi0kcG06NnBuARC7nPMPjYe05hls_AUqwFU2X3lRHQh8y1-OyU72jqIdP71Q/s1600/Document+Code+JSP.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDve3y0glurpFKxLVpAMk58O01UlrQQxhkW-gEPbLpA11UzkQPfWlvzzDtta4gFJWGxm5s1QareqCw8Rzdi0kcG06NnBuARC7nPMPjYe05hls_AUqwFU2X3lRHQh8y1-OyU72jqIdP71Q/s200/Document+Code+JSP.jpg&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-large;&quot;&gt;&lt;i&gt;Hoy trataremos&amp;nbsp;Conexión a MySQL y Login de usuario desde un Servlet con Netbeans&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Hoy veremos un ejemplo de cómo hacer el Logeo desde un servlet consultando a una base de datos.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Serán cuestiones básicas; para no complicar las cosas. Puesto que todo ello se puede trabajar mediante capas o módulos.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Empezemos nuevamente mencionando las herramientas que necesitamos:&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html&quot;&gt;MySQL 5.5&lt;/a&gt;: Es el SGBD (indistintamente de cualquier otro).&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/&quot;&gt;mysql-connector-java&lt;/a&gt;: El conector entre &lt;b&gt;MySQL&lt;/b&gt; y &lt;b&gt;Java&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/gui-tools/5.0.html&quot;&gt;MySQL GUI Tools&lt;/a&gt;: Interfaz para &lt;b&gt;MySQL&lt;/b&gt;, nos facilitará mucho nuestro trabajo de crear las tablas e ingresar algunos datos de referncia.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://netbeans.org/&quot;&gt;Netbeans&lt;/a&gt;: &lt;b&gt;IDE&lt;/b&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;(indistintamente de cualquier otro)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;Apache Tomcat&lt;/a&gt;: Nuestro Servidor.
&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Imagino que ya se tienen creadas la base de datos y la tabla en nuestro SGBD &lt;b&gt;MySQL&lt;/b&gt;, como la imagen siguiente, claro que para este caso nuestra BD se llama &quot;&lt;b&gt;mydb&lt;/b&gt;&quot; y contiene a la tabla &lt;b&gt;Usuario&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSglMbXAKQAg-U8q3VXUo0Kn1_bi8P72RMAmI3cm54Z-9OKTJyejldKdkZ8WXnBYjRSRjFZf9yuIc37ypYA4URdhDd-zXeZGKh1Cr4nWLNKtC62FeLUCPPIpa4qboWXRlgr-a-cyQgPFU/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;377&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhSglMbXAKQAg-U8q3VXUo0Kn1_bi8P72RMAmI3cm54Z-9OKTJyejldKdkZ8WXnBYjRSRjFZf9yuIc37ypYA4URdhDd-zXeZGKh1Cr4nWLNKtC62FeLUCPPIpa4qboWXRlgr-a-cyQgPFU/s640/1_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora veamos la estructura de carpetas y archivos de nuestro &lt;b&gt;Proyecto Web&lt;/b&gt; creado en &lt;b&gt;Netbeans&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOtzIG_aUlJEdbkYx6rJGlGb2VXAQeMUySepxV-o0M705aLW7gllq8HKgv-qa8tFRvfBz2XRB4SUk_y3osNycvNpGQxQO7t1rbktBf-c1roTQWASuT6y_hyBVY9pitYvH1cl2rxXHx4Sw/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOtzIG_aUlJEdbkYx6rJGlGb2VXAQeMUySepxV-o0M705aLW7gllq8HKgv-qa8tFRvfBz2XRB4SUk_y3osNycvNpGQxQO7t1rbktBf-c1roTQWASuT6y_hyBVY9pitYvH1cl2rxXHx4Sw/s400/2_.png&quot; width=&quot;221&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como vemos entre las librerías está nuestro&amp;nbsp;&lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/&quot;&gt;mysql-connector-java&lt;/a&gt;&amp;nbsp;y el servidor&amp;nbsp;&lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;Apache Tomcat&lt;/a&gt;, el archivo de configuración &lt;b&gt;web.xml&lt;/b&gt;. Entre nuestros archivos de web tenemos a &lt;b&gt;bienvenida.jsp, errorLogin.jsp, index.jsp&lt;/b&gt;. Ahora veamos los paquetes de nuestras clases; &lt;b&gt;unsch.efpis.ConexionDB&lt;/b&gt; que contendrá nuestra clase &lt;b&gt;Conexión, unsch.efpis.Servlet&lt;/b&gt; que contendrá a &lt;b&gt;HolaUsuarioServlet&lt;/b&gt; (el servlet).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para empezar veamos entonces la clase &lt;b&gt;Conexion&lt;/b&gt;, que se encargará de devolver una conexión a nuestra BD:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=N0CrVkc8&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora veamos la clase &lt;b&gt;HolaUsuarioServlet,&lt;/b&gt;&amp;nbsp;éste es nuestro &lt;b&gt;Servlet,&lt;/b&gt;&amp;nbsp;la&amp;nbsp;encargada de gestionar la conexión y realizar la consulta a la BD. También será la que nos&amp;nbsp;redirija&amp;nbsp;hacia una o otro archivo jsp dependiendo de los resultados que se obtengan dentro de ella.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=RYitm6Xf&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;Ahora veamos los archivos jsp:&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;tenemos &lt;b&gt;index.jsp&lt;/b&gt;, será la encargada de mostrar la página inicial, con los cuadros de texto y botones:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=cchS9Jyf&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora la clase &lt;b&gt;bienvenida.jsp;&lt;/b&gt;&amp;nbsp;que se mostrará en caso de que un usuario este registrado&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=YscTerBW&quot; style=&quot;border: none; height: 90%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;El errorLogin.jsp; que se mostrará para el caso en que el usuario no este registrado en nuestra BD.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=hcmthjWd&quot; style=&quot;border: none; height: 60%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Y por último nuestro descriptor &lt;b&gt;web.xml,&lt;/b&gt;&amp;nbsp;que nos va a describir las características de nuestro proyecto.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=xnKvguWX&quot; style=&quot;border: none; height: 90%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;No olvidemos tener activos nuestros servicios de&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-large;&quot;&gt;MySQL&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;&amp;nbsp;y&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-large;&quot;&gt;Apache Tomcat&lt;/b&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora al ejecutar nuestro proyecto:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXERhQD6SwLdffKwOUa_AFCHQP0SS7WCO03_jtNFb_yJSWB6DTHqneYny1HDniFy4g2oSdzqU9kxyBJpz6f1UNMs0YQucCLEe2Db4MbRSZ9BGrSbfTYdKBujgZEHjFygN59AOVPMMv49k/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;219&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXERhQD6SwLdffKwOUa_AFCHQP0SS7WCO03_jtNFb_yJSWB6DTHqneYny1HDniFy4g2oSdzqU9kxyBJpz6f1UNMs0YQucCLEe2Db4MbRSZ9BGrSbfTYdKBujgZEHjFygN59AOVPMMv49k/s640/3_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para el caso de ser un usuario deberá mostrar:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxc71rvZx7JjXX8Dfu9bS6JCY0n66cgdbrDVS-iyC1_n00WA45OoOJN4-xCGVgFtJdS2WQRZ715KwG7qQIIdbuHumuVFKKFnxfXqKO1KWAvvGEpkd7q0pB8zSfRCvNwB1JsY4wOOQ0K7M/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;172&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxc71rvZx7JjXX8Dfu9bS6JCY0n66cgdbrDVS-iyC1_n00WA45OoOJN4-xCGVgFtJdS2WQRZ715KwG7qQIIdbuHumuVFKKFnxfXqKO1KWAvvGEpkd7q0pB8zSfRCvNwB1JsY4wOOQ0K7M/s640/4_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;En caso contrario:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiimwHzLaUqgpAUSoobpBaR6yOJ14_G8p0XIzLxEcsL7sml5Gaj5UYhiPd-DB8hVKyrcaTyQA4G2tdGmMgyt_3Ct4ce6XOtcP5FUThbSGutDfwSUKC35CTZwATEfqaCeWV8VBbXJj4KTe4/s1600/5_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;150&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiimwHzLaUqgpAUSoobpBaR6yOJ14_G8p0XIzLxEcsL7sml5Gaj5UYhiPd-DB8hVKyrcaTyQA4G2tdGmMgyt_3Ct4ce6XOtcP5FUThbSGutDfwSUKC35CTZwATEfqaCeWV8VBbXJj4KTe4/s640/5_.png&quot; width=&quot;640&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;Muchas gracias, espero sus dudas y sugerencias...&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/2990891208443790938/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/2990891208443790938?isPopup=true' title='5 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/2990891208443790938'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/2990891208443790938'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/05/conexion-mysql-login-de-usuario-desde.html' title='Conexión a MySQL, Login de usuario desde un Servlet con Netbeans'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgDve3y0glurpFKxLVpAMk58O01UlrQQxhkW-gEPbLpA11UzkQPfWlvzzDtta4gFJWGxm5s1QareqCw8Rzdi0kcG06NnBuARC7nPMPjYe05hls_AUqwFU2X3lRHQh8y1-OyU72jqIdP71Q/s72-c/Document+Code+JSP.jpg" height="72" width="72"/><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-6077920613138375339</id><published>2012-05-01T08:18:00.001-07:00</published><updated>2012-08-22T03:56:45.830-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache Tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="Eclipse"/><title type='text'>Solucionado el Conflicto entre Eclipse y Apache Tomcat en Windows</title><content type='html'>&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;Hola, ante todo un gran saludo a todos los &lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-large;&quot;&gt;Trabajadores&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;, Feliz día!!&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj97GiEvD2jE0qVqn7aBZB3IOb0CmtvL6bVZedmE7WbWyrZAWeYi745TTW28kbXU49thyphenhyphenjKoktQM9T6OitOVX-nLsGhFsbyhsnTMtdfiEP2x210jWd6PM3JcBbPXcHHspTvSrOhznrVz5Pf/s1600/apache_tomcat_bag.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj97GiEvD2jE0qVqn7aBZB3IOb0CmtvL6bVZedmE7WbWyrZAWeYi745TTW28kbXU49thyphenhyphenjKoktQM9T6OitOVX-nLsGhFsbyhsnTMtdfiEP2x210jWd6PM3JcBbPXcHHspTvSrOhznrVz5Pf/s1600/apache_tomcat_bag.png&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Quiero empezar mencionando que esta situación fue algo desesperante,
ver que Eclipse entra en conflicto con&lt;b&gt; Apache Tomcat&lt;/b&gt;, al no tener respuesta
satisfactoria al ejecutar mis pruebas en algo tan pequeño.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Eclipse&lt;/b&gt; es un gran IDE, muy manejable y sobre todo más ligero a comparación de otras. Pero bueno vayamos al asunto de hoy.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br class=&quot;Apple-interchange-newline&quot; /&gt;Para abordar el tema necesitamos las siguientes herramientas:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.eclipse.org/downloads/&quot;&gt;Eclipse&lt;/a&gt;: Nuestro IDE.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://tomcat.apache.org/download-60.cgi&quot;&gt;Apache Tomcat&lt;/a&gt;: Nuestro Servidor.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Paso a mencionar lo que sucedió y cómo es que lo solucioné:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Normalmente (digo normalmente) cuando vamos a utilizar
Tomcat en nuestra computadora, descargamos la aplicación (.exe) y la instalamos
(claro está siguiendo los pasos que se deben), en otros casos a la hora de instalar otro IDE como &lt;a href=&quot;http://netbeans.org/&quot;&gt;&lt;b&gt;Netbeans&lt;/b&gt;&lt;/a&gt;. Bueno a fin de cuentas. HEMOS INSTALADO.&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora, al intentar ejecutar un proyecto web en &lt;b&gt;Eclipse&lt;/b&gt;, simplemente nos muestra el error “El puerto 8080 ya está en uso…”.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBn5s8piMKlTqtWPFjV7F0qNP92NJc7bQgnfLuPCY3hQBapKThS0DHApWN5KaZu2kfbqOiWtLBOlgqMlBjIxFN0V2p95ssWYdVYipEbP2g4XjOADC0oZEYnIenVyT_pg1hbd0MxO6w7O4/s1600/0_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;193&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBn5s8piMKlTqtWPFjV7F0qNP92NJc7bQgnfLuPCY3hQBapKThS0DHApWN5KaZu2kfbqOiWtLBOlgqMlBjIxFN0V2p95ssWYdVYipEbP2g4XjOADC0oZEYnIenVyT_pg1hbd0MxO6w7O4/s320/0_.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Claro pudo haber sido cualquier otro puerto que hubiéramos puesto al momento de
instalar. A primera vista uno podría imaginar que quizá &lt;b&gt;Apache Tomcat&lt;/b&gt; se inició manual
o automáticamente, fuera de &lt;b&gt;Eclipse&lt;/b&gt; y al utilizarla dentro de ella se produce ese
error, en cierta medida es cierto; pero aunque detengamos el servicio fuera de
&lt;b&gt;Eclipse&lt;/b&gt; seguiremos teniendo el error, dentro de ella&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora, ¿cómo lo solucioné?&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Lo que hice fue descargar la &lt;b&gt;versión comprimida&lt;/b&gt; de &lt;b&gt;Apache Tomcat&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaYbEwS3RBXK2aiv9k5n2uQDQAcnQUtwVu6VNZMWy9dkZh0Pcdt8UZ51xW7e6HPXoiRBbiwmDG9edoBHC_1S5cal3R6p9QTYw9bo1gFiNek7dbIc-FG82InG3gF84h_4I_5J2p3gD-8vU/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaYbEwS3RBXK2aiv9k5n2uQDQAcnQUtwVu6VNZMWy9dkZh0Pcdt8UZ51xW7e6HPXoiRBbiwmDG9edoBHC_1S5cal3R6p9QTYw9bo1gFiNek7dbIc-FG82InG3gF84h_4I_5J2p3gD-8vU/s320/1_.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Luego la descomprimí.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ENwCiRKL41ggAai90RIsmhOJk38V-FZ4KCInoclBaqub7oRvwQVXX1t4h31GbCFl39jU5Q84hab74bm3VIt9T9qWjEI0NAgl99KbmjaU_AhF8i2lxMHwCRHi7MtRiICIHrsRiorpYEo/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0ENwCiRKL41ggAai90RIsmhOJk38V-FZ4KCInoclBaqub7oRvwQVXX1t4h31GbCFl39jU5Q84hab74bm3VIt9T9qWjEI0NAgl99KbmjaU_AhF8i2lxMHwCRHi7MtRiICIHrsRiorpYEo/s320/2_.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;La agregué a los servidores (Server) de &lt;b&gt;Eclipse&lt;/b&gt; y…
Bingo!! Funcionaaa!!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-pRkvNsb2gMDjT29hahDCZSZR413DTZigab769Elj2Ls5O-UYgMRU730vjumtQCeK8sUTF9SWdwpYMRxgsWP3JjVIYH-S55J1GUwZTaI6DQ8puhE5_JIUPcMbftdWhUq-sO8qx3F2hv8/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-pRkvNsb2gMDjT29hahDCZSZR413DTZigab769Elj2Ls5O-UYgMRU730vjumtQCeK8sUTF9SWdwpYMRxgsWP3JjVIYH-S55J1GUwZTaI6DQ8puhE5_JIUPcMbftdWhUq-sO8qx3F2hv8/s320/3_.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Claro que si se desea utilizar otro puerto simplemente hay
que configurarla. Bueno trabajador eso es todo por tu día!&lt;o:p&gt;&lt;/o:p&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Cualquier duda o comentario, hazla llegar. Gracias!!&lt;/span&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/6077920613138375339/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/6077920613138375339?isPopup=true' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/6077920613138375339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/6077920613138375339'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/05/solucionado-el-conflicto-entre-eclipse.html' title='Solucionado el Conflicto entre Eclipse y Apache Tomcat en Windows'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj97GiEvD2jE0qVqn7aBZB3IOb0CmtvL6bVZedmE7WbWyrZAWeYi745TTW28kbXU49thyphenhyphenjKoktQM9T6OitOVX-nLsGhFsbyhsnTMtdfiEP2x210jWd6PM3JcBbPXcHHspTvSrOhznrVz5Pf/s72-c/apache_tomcat_bag.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-1231091862507726830</id><published>2012-04-28T23:34:00.000-07:00</published><updated>2013-07-28T08:40:00.324-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base de Datos"/><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="MySQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Netbeans"/><title type='text'>Conexión Java y MySQL utilizando Netbeans 7</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTf2tJwsmY2zl1wSKTyj8pM84ZLKUMcF6RXOhY4ruzYOpPtAoGmiP8h5yNdjHP_NYjTb2K9qLx3r6FK_V0hkw2KXHDEiZE0ETiv8lUDbL4Gwxt1XReb81bJd6TksZVzxLjX5WHy_1fC_8y/s1600/mysql_copia.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTf2tJwsmY2zl1wSKTyj8pM84ZLKUMcF6RXOhY4ruzYOpPtAoGmiP8h5yNdjHP_NYjTb2K9qLx3r6FK_V0hkw2KXHDEiZE0ETiv8lUDbL4Gwxt1XReb81bJd6TksZVzxLjX5WHy_1fC_8y/s1600/mysql_copia.png&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Particularmente a esta publicación se le debe tomar especial atención (opinión personal); al ser &lt;b&gt;MySQL &lt;/b&gt;el &lt;b&gt;SGBD &lt;/b&gt;la que vamos a utilizar que, además de se consumir pocos recursos es muy manejable.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Veamos las herramientas necesarias:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/tech-resources/articles/mysql-installer-for-windows.html&quot;&gt;MySQL 5.5&lt;/a&gt;: Es el SGBD.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/&quot;&gt;Connector/J&lt;/a&gt;: El conector entre MySQL y Java.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/gui-tools/5.0.html&quot;&gt;MySQL GUI Tools&lt;/a&gt;: Interfaz para MySQL, nos facilitará mucho nuestro trabajo.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://netbeans.org/&quot;&gt;Netbeans&lt;/a&gt;: IDE.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Vamos a iniciar el servicio de &lt;b&gt;Mysql&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Habiendo creado la primera instancia (en el proceso de instalación) con usuario &quot;&lt;b&gt;root&lt;/b&gt;&quot; y &lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;contraseña &quot;&lt;b&gt;123456&lt;/b&gt;&quot;, utilizamos el &lt;b&gt;MySQL Query Browser&lt;/b&gt; que viene incluida entre los&amp;nbsp;&lt;a href=&quot;http://dev.mysql.com/downloads/gui-tools/5.0.html&quot;&gt;MySQL GUI Tools&lt;/a&gt;, bueno una imagen similar a la siguiente es la que se debe mostrar:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgop99ezQok9fawxo6b7UbR1d61-Cm4QTnjsjYJgQwEiPhpkYG1CrHcvwHf9KI_dBm6BxrxMGcg-_wPPRVXv9Y-OPe4Ni1KPEOgIXQcpXO41PZMTo_HRWprOdOx6rrTW1oCirZn5GfWwjg/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgop99ezQok9fawxo6b7UbR1d61-Cm4QTnjsjYJgQwEiPhpkYG1CrHcvwHf9KI_dBm6BxrxMGcg-_wPPRVXv9Y-OPe4Ni1KPEOgIXQcpXO41PZMTo_HRWprOdOx6rrTW1oCirZn5GfWwjg/s320/1_.png&quot; height=&quot;272&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Nos preguntará si deseamos crear un nuevo esquema &quot;&lt;b&gt;miprueba&lt;/b&gt;&quot; le diremos que sí, pues de seguro no existe tal información dentro de nuestro &lt;b&gt;SGBD&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ya dentro de nuestra herramienta para &lt;b&gt;MySQL &lt;/b&gt;vamos a crear la tabla &lt;b&gt;Empleado &lt;/b&gt;con los mismos campos que en las publicaciones anteriores,&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- codigo: entero.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- nombres: cadena.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- apellidos: cadena.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- edad: entero.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- salario: flotante.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- estado: entero.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;y registramos algunos datos:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYfEcaFyosixcTnr0ckT0KM2kj81t70PrI8bpyhjca6Oy_sVj3-b2Y1ReF1wMTv3ZL-PhEqAT4E0Iggvpbsktk0VpltZygtaGcqcDqDnlIWJO8Rf2cuIYLnTmbFxbiePAFDAsZDJ40a4I/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgYfEcaFyosixcTnr0ckT0KM2kj81t70PrI8bpyhjca6Oy_sVj3-b2Y1ReF1wMTv3ZL-PhEqAT4E0Iggvpbsktk0VpltZygtaGcqcDqDnlIWJO8Rf2cuIYLnTmbFxbiePAFDAsZDJ40a4I/s320/2_.png&quot; height=&quot;189&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Eso es todo!! en &lt;b&gt;MySQL &lt;/b&gt;las cosas son muy sencillas...!!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora nos vamos al &lt;b&gt;Netbeans &lt;/b&gt;para hacer la codificación en Java:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;En primer lugar la estructura de carpetas es la siguiente:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju9K_Dz1zZUKZWCwcYb3tiX4g-NfhRZWmqx1oxVejYtwEhqtY_nSIfcZObqmSwxYXn6S69cpmr3Bepfx0zEvVE_eXD3YcvwVenMmKS7gCRYx5KDeeioMkxWmdEGxaS4rMfVsBbLPCiIKs/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEju9K_Dz1zZUKZWCwcYb3tiX4g-NfhRZWmqx1oxVejYtwEhqtY_nSIfcZObqmSwxYXn6S69cpmr3Bepfx0zEvVE_eXD3YcvwVenMmKS7gCRYx5KDeeioMkxWmdEGxaS4rMfVsBbLPCiIKs/s320/3_.png&quot; height=&quot;260&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Notamos que en nuestro proyecto tenemos agregado el &lt;b&gt;driver &lt;/b&gt;(&lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/&quot; style=&quot;text-align: -webkit-auto;&quot;&gt;Connector/J&lt;/a&gt;) que debieron descargar.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Veamos la clase &lt;b&gt;Conexion &lt;/b&gt;que tuvo ligeras variaciones con respecto a publicaciones anteriores pero con la misma funcionalidad:&lt;/span&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=WSeDKKvY&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;y naturalmente la clase &lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;ConexionConsolaJavaMySQL &lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;es la misma que el de las anteriores publicaciones:&lt;/span&gt;&lt;/div&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=4vnp8Kb2&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;&amp;nbsp;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;Ejecutando nuestro proyecto, debería mostrarnos algo como lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmuxaErt62pNr0ewHZ7yrzs9IgfQnjxirGNlXl4xZ-c88zDPXLiKenJrVSRv6SGUZj6g-l6TscE5RGwrqd-rK_dg-amfqh_yFQmEVLH5FKss6YDreAcrDtkpq6rQQUVf4kTh3OhHtkiWE/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmuxaErt62pNr0ewHZ7yrzs9IgfQnjxirGNlXl4xZ-c88zDPXLiKenJrVSRv6SGUZj6g-l6TscE5RGwrqd-rK_dg-amfqh_yFQmEVLH5FKss6YDreAcrDtkpq6rQQUVf4kTh3OhHtkiWE/s320/4_.png&quot; height=&quot;196&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno ya saben; dudas, sugerencias háganlas llegar por favor...&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/1231091862507726830/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/1231091862507726830?isPopup=true' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/1231091862507726830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/1231091862507726830'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/04/conexion-java-y-mysql-utilizando.html' title='Conexión Java y MySQL utilizando Netbeans 7'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTf2tJwsmY2zl1wSKTyj8pM84ZLKUMcF6RXOhY4ruzYOpPtAoGmiP8h5yNdjHP_NYjTb2K9qLx3r6FK_V0hkw2KXHDEiZE0ETiv8lUDbL4Gwxt1XReb81bJd6TksZVzxLjX5WHy_1fC_8y/s72-c/mysql_copia.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-5876878304687305948</id><published>2012-04-27T21:30:00.000-07:00</published><updated>2012-08-22T03:58:07.547-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base de Datos"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft Access"/><title type='text'>Conexión Java y Microsoft Access 2010 desde Netbeans en Windows 7</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXg83H_gGvBqpREq-uJzmuxMKjf83xi0Psrx0w0Rz6tBJ3tUQeUdW8BP1bpnDRnTa3orHoFMZslpwBk5SNjINgzjt7riGIbr4QS63LAzd2FD2Bz6mkkgJakvdd9nFKuRMbJlaJBYDJOa3k/s1600/Microsoft-Access-2010.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXg83H_gGvBqpREq-uJzmuxMKjf83xi0Psrx0w0Rz6tBJ3tUQeUdW8BP1bpnDRnTa3orHoFMZslpwBk5SNjINgzjt7riGIbr4QS63LAzd2FD2Bz6mkkgJakvdd9nFKuRMbJlaJBYDJOa3k/s200/Microsoft-Access-2010.png&quot; width=&quot;154&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;b&gt;Hola a todos!!&lt;/b&gt;&lt;/span&gt;, esta pubicación está dedicada a todos pero en especial a un compañero de clases; William, bueno&amp;nbsp;empecemos&amp;nbsp;mencionando lo que necesitamos para el correcto funcionamiento de este ejemplo:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Microsoft Access&lt;/b&gt;, en cualquiera de sus versiones ya sea anteriores(2003) como posteriores (trabajé con la versión 2010), lo que cambia es únicamente las extensiones con las que se guarda una Base de Datos.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Una vez abierto Microsoft Access procedemos a crear la Base de Datos, la Tabla y luego rellenamos algunos datos.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFFY6ZfWtZglbWhW9y5HOjPRU1O-VQQGvwfTGFGaB58zE05USAUbP0tshE_Cz_hfFCNyxqp762PaBxrYu1hqYNp5Sjr7AU1CtZcLrPJrCwkXae3rLmDvPDiJY73dTNe5cHgdcxidmfZ0A/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFFY6ZfWtZglbWhW9y5HOjPRU1O-VQQGvwfTGFGaB58zE05USAUbP0tshE_Cz_hfFCNyxqp762PaBxrYu1hqYNp5Sjr7AU1CtZcLrPJrCwkXae3rLmDvPDiJY73dTNe5cHgdcxidmfZ0A/s320/1_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;*Nota 01: Si no logras cambiar el nombre de la BD a tu preferencia, hazlo ubicando el archivo origen.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;*Nota 02: Observa que la extensión de la BD es &quot;.accdb&quot; (esto en versiones superiores desde M. Access 2007), cosa que en versiones inferiores al 2007 es &quot;.mdb&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;*Nota 03: Guarda la BD en la dirección por defecto que Access tiene asignado en el sistema (&quot;C:\Users\&quot;tu_usuario&quot;\Documents&quot; en Windows7), puesto que esta publicación será para &lt;b&gt;Conexiones &lt;/b&gt;indirectas o estáticas.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Con lo cual deberá quedar de la siguiente manera:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIQ1X1wJ_nFqgLHpAA4DUH_ErKeuNJ_b05mvw956Wghw0HUssRTftiyjZw0_X-b4wTagJro6GnB3QBoEUZBHVTzWqUdcvtPe28Yu45p5JUs0TDnu3W76mD9mDMYRBXK75IfaHMnhpIMzU/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIQ1X1wJ_nFqgLHpAA4DUH_ErKeuNJ_b05mvw956Wghw0HUssRTftiyjZw0_X-b4wTagJro6GnB3QBoEUZBHVTzWqUdcvtPe28Yu45p5JUs0TDnu3W76mD9mDMYRBXK75IfaHMnhpIMzU/s320/2_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ya tenemos la base de datos!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno ahora vamos a configurar el servicio como en los otros casos (&lt;b&gt;Derby&lt;/b&gt;), vamos al panel de control:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Buscamos &quot;&lt;b&gt;ODBC&lt;/b&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP4HNF4jLSK_HCgfJHd9XwE3M4dfGePoZpQxmN9puX5YYzhTlapFPxEImxl310ug8RI-OFgPOecQilI3PUBcCkObeevHAv6v1aw1PRNiz2ZqIlodCXXHT4mDkCvkSRbknksgYWHXEg_U4/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgP4HNF4jLSK_HCgfJHd9XwE3M4dfGePoZpQxmN9puX5YYzhTlapFPxEImxl310ug8RI-OFgPOecQilI3PUBcCkObeevHAv6v1aw1PRNiz2ZqIlodCXXHT4mDkCvkSRbknksgYWHXEg_U4/s320/3_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora estamos en la pestaña &quot;&lt;b&gt;DSN Usuario&lt;/b&gt;&quot; y escogemos tal como se muestra en la siguiente imagen:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6r-1dwTvMXUN1v6YcLDDZOfI4E5XTe7Cr3wjLo5802P9NwzvtvuF7lml57DSwzMvrmgeFafQMRdke3FJfoNtFM6LwFby-0Sa1yS7ik8Eq4W5T-l6jHVeDSYFT8e-OhVKz0Xx-_F5TQ-U/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj6r-1dwTvMXUN1v6YcLDDZOfI4E5XTe7Cr3wjLo5802P9NwzvtvuF7lml57DSwzMvrmgeFafQMRdke3FJfoNtFM6LwFby-0Sa1yS7ik8Eq4W5T-l6jHVeDSYFT8e-OhVKz0Xx-_F5TQ-U/s320/4_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;A nuestro &lt;b&gt;DSN (Data Source Name)&lt;/b&gt; lo llamaremos &quot;&lt;b&gt;ADB&lt;/b&gt;&quot;, luego ubicaremos el archivo de la BD, tal como se muestra en la imagen:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizNeHXqKut9H0ddHeRvwVyou5YILBdeQkOoc4XZBD14iNx6yXMVpvey707gXQTj_q4KdWTud9AVyaliJyabhtlzCmrqcYvuZSeE3lB81WunNzMe-CDUycf0Y1zKrhKLmUprKk4BQINaRs/s1600/5_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizNeHXqKut9H0ddHeRvwVyou5YILBdeQkOoc4XZBD14iNx6yXMVpvey707gXQTj_q4KdWTud9AVyaliJyabhtlzCmrqcYvuZSeE3lB81WunNzMe-CDUycf0Y1zKrhKLmUprKk4BQINaRs/s320/5_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora vamos a agregarle una contraseña&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-YYCE7pToZQHr9MFIE9lNjddXWN-REl0FYKkID3rWzvtoeZfEgslKg4uVweviMkpP3RIihCn9Y78wHUvaRIBkFBH5IFXHDe4x8hXhqwsfoMoFWYkfZupMRHo4t0EVV9qomh7ByJfiqcM/s1600/9_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;214&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-YYCE7pToZQHr9MFIE9lNjddXWN-REl0FYKkID3rWzvtoeZfEgslKg4uVweviMkpP3RIihCn9Y78wHUvaRIBkFBH5IFXHDe4x8hXhqwsfoMoFWYkfZupMRHo4t0EVV9qomh7ByJfiqcM/s320/9_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #38761d; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: x-small;&quot;&gt;*Nota: Aunque por razones que están en proceso de investigación la contraseña que se pone aquí no se activa (por decirlo de otra forma, osea pongamos o no contraseña da lo mismo). Veremos más adelante cómo ponerle una contraseña a nuestra BD!!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Nos queda &lt;b&gt;Aceptar &lt;/b&gt;y &lt;b&gt;Aceptar&lt;/b&gt;!!&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXATwFVg9letmESSR8PnZeJDf5e71sl_KiKZoF-hmbHFk7lQuheUyC2JLSiVuJAo7wPjXsvOXCiuewTLMEcP8bnj_ySxv7O-WMEsrTAH-h_mQvyHnrPOnQhYVSYfeJ_VVvn0i53Ec1k8/s1600/6_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRXATwFVg9letmESSR8PnZeJDf5e71sl_KiKZoF-hmbHFk7lQuheUyC2JLSiVuJAo7wPjXsvOXCiuewTLMEcP8bnj_ySxv7O-WMEsrTAH-h_mQvyHnrPOnQhYVSYfeJ_VVvn0i53Ec1k8/s320/6_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora veamos el &lt;b&gt;código fuente&lt;/b&gt; del proyecto:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Recibirá el nombre y la estructura de carpetas que se muestra a continuación:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMk91IpOG5IS81VvnxJt7CYDsght4HodmoLVcZR9fj0UzI2S2r3jEQ-aoo23FDfc4bziUKEZ7gePWmoCWUF-RHWznAzkkViOA2cnf_pl089wvn4857UQBUNnoDgVUNcl1WmqOgmZfzWu4/s1600/8_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;285&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMk91IpOG5IS81VvnxJt7CYDsght4HodmoLVcZR9fj0UzI2S2r3jEQ-aoo23FDfc4bziUKEZ7gePWmoCWUF-RHWznAzkkViOA2cnf_pl089wvn4857UQBUNnoDgVUNcl1WmqOgmZfzWu4/s320/8_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Veamos la clase &lt;b&gt;Conexion &lt;/b&gt;que varió ligeramente:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=7YX2QPnP&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;

&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como en este caso no hemos utilizando un driver como en casos anteriores; trabajamos con &lt;b&gt;Class.forName(&quot; &quot;)&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Se preguntarán qué hace esa &lt;b&gt;contraseña &lt;/b&gt;ahí (&quot;&lt;b&gt;123456&lt;/b&gt;&quot;); si lineas arriba mencioné que daba igual ponerla o no; pues bien, lo que dije es cierto; pueden modificar la &lt;b&gt;contraseña &lt;/b&gt;de esta clase y con normalidad seguirá haciendo la conexión y consulta.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Y claro la clase &lt;b&gt;ConexionConsolaJavaAccess &lt;/b&gt;seguirá siendo la misma que de los proyectos anteriores (&lt;a href=&quot;http://javaenaccion.blogspot.com/2012/04/conexion-java-y-derby-utilizando.html&quot;&gt;Conexión Java y Derby utilizando Netbeans 7&lt;/a&gt;&amp;nbsp;(&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;ConexionConsolaJavaDerby&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;):&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora ejecutando nuestra clase&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;ConexionConsolaJavaAccess&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt; debería mostrarnos lo siguiente:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3hYKkKI66elDNCewrnsP7Gsm7UXg_IHjRIS8RmAnKi2rqpgKc6NVxwsKklUbjxIZzXAsprw6jikOpNMxw7wqBgIhckPJR-4fUnGUsmtj30P_z_Go_q2cQwvovl5XzbcUSl0L9icmeGB0/s1600/7_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;124&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3hYKkKI66elDNCewrnsP7Gsm7UXg_IHjRIS8RmAnKi2rqpgKc6NVxwsKklUbjxIZzXAsprw6jikOpNMxw7wqBgIhckPJR-4fUnGUsmtj30P_z_Go_q2cQwvovl5XzbcUSl0L9icmeGB0/s320/7_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Pero, sobre la contraseña:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;¿Eso quiere decir que nuestra base de datos está desprotegida?. Pues cualquiera pudiese ingresar a ella.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;La solución a ese problema se tiene que implementar desde el mismo Microsoft Access de la siguiente forma:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Abrimos la base de datos &lt;b&gt;&quot;AccessBD.accdb&quot;&lt;/b&gt; en&lt;b&gt; &quot;Abrir en modo exclusivo&quot; &lt;/b&gt;como se muestra:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXYIgqLIKnx-ll7jqN-_EGtnemeh7nEcBiINTUCxOQx_nUjK9PrBxrHq4FTn6N04Xep6-LZPQ48DGg5vzQ41imXL2OP66vCGEFSBvBy5GO7dEEC0z6c_U2zVbFMSlacCQgUnD2nyOcfGg/s1600/10_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;163&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXYIgqLIKnx-ll7jqN-_EGtnemeh7nEcBiINTUCxOQx_nUjK9PrBxrHq4FTn6N04Xep6-LZPQ48DGg5vzQ41imXL2OP66vCGEFSBvBy5GO7dEEC0z6c_U2zVbFMSlacCQgUnD2nyOcfGg/s320/10_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Ahora hacemos lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglR_dSSUBLAPZOBtweOlHTsJdFW9NZ0_xfFz5f8AWYqF55ABfdMrazC6LbjR79aBTD1wQcrpqC0E2rJfFm9cldBqs-HsivQso-EPcj5HHqfzv6R1rzcTiIyPM4bdsOK2Kd59ORFgts-g0/s1600/11_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;190&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglR_dSSUBLAPZOBtweOlHTsJdFW9NZ0_xfFz5f8AWYqF55ABfdMrazC6LbjR79aBTD1wQcrpqC0E2rJfFm9cldBqs-HsivQso-EPcj5HHqfzv6R1rzcTiIyPM4bdsOK2Kd59ORFgts-g0/s320/11_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Finalmente ponemos la &lt;b&gt;contraseña &lt;/b&gt;y damos &lt;b&gt;Aceptar &lt;/b&gt;y &lt;b&gt;Aceptar&lt;/b&gt;!!!&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2XihXl5mF-qqpnuajLaXe_QEvOY8w7FNppyU3W5b2IxJuDusZdN0Vgc9ZF7FkNitbPmrJfrpIjIA2Gceuj6IyxLXdNI9CyFd74ro6d3KqX_G0JtEC13gzJVUEKe83kJaQoeCUYwVLf6U/s1600/12_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2XihXl5mF-qqpnuajLaXe_QEvOY8w7FNppyU3W5b2IxJuDusZdN0Vgc9ZF7FkNitbPmrJfrpIjIA2Gceuj6IyxLXdNI9CyFd74ro6d3KqX_G0JtEC13gzJVUEKe83kJaQoeCUYwVLf6U/s320/12_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora sí verás que la contraseña hace efecto a nuestra BD&lt;b&gt; &quot;&lt;span style=&quot;text-align: left;&quot;&gt;AccessBD.accdb&lt;/span&gt;&quot;&lt;/b&gt;, y si en la clase &lt;b&gt;Conexion &lt;/b&gt;modificas la contraseña, nuestro proyecto no tendrá permisos para acceder a la BD.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;Dudas y sugerencias, háganlas llegar... gracias!&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/span&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/5876878304687305948/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/5876878304687305948?isPopup=true' title='9 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/5876878304687305948'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/5876878304687305948'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/04/conexion-java-y-microsoft-access-2010.html' title='Conexión Java y Microsoft Access 2010 desde Netbeans en Windows 7'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXg83H_gGvBqpREq-uJzmuxMKjf83xi0Psrx0w0Rz6tBJ3tUQeUdW8BP1bpnDRnTa3orHoFMZslpwBk5SNjINgzjt7riGIbr4QS63LAzd2FD2Bz6mkkgJakvdd9nFKuRMbJlaJBYDJOa3k/s72-c/Microsoft-Access-2010.png" height="72" width="72"/><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-2543682537699186958</id><published>2012-04-26T00:09:00.002-07:00</published><updated>2012-08-22T03:58:15.062-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base de Datos"/><category scheme="http://www.blogger.com/atom/ns#" term="Derby"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Conexión Java y Derby utilizando Netbeans 7</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG1KLhrk76xNz7fiOrBUAmtPiyK6sC7wu8MvCBmbwvCloDI4psFMru4hDIjD_9ZS4sdbO0k4aPytzZn4VUKduFVEI4TAxz-3Pn4BYuGXmJItjvSn-1zlOw35EibnM-LBKP_MqKa9ZOvdP_/s1600/db-logo-white_png.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;67&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG1KLhrk76xNz7fiOrBUAmtPiyK6sC7wu8MvCBmbwvCloDI4psFMru4hDIjD_9ZS4sdbO0k4aPytzZn4VUKduFVEI4TAxz-3Pn4BYuGXmJItjvSn-1zlOw35EibnM-LBKP_MqKa9ZOvdP_/s200/db-logo-white_png.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Todos podrán decir que esta publicación es quizá una redundancia de la anterior &lt;a href=&quot;http://javaenaccion.blogspot.com/2012/04/conexion-java-y-oracle-11g-xe.html&quot;&gt;Conexión Java y Oracle 11g XE&lt;/a&gt;&amp;nbsp;pero les aseguro que en un cierto porcentaje ello no es así; más que un explicativo formal paso a mencionar lo que sucedió al momento de hacer la conexión y CONSULTA a este SGBD.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como ya es habitual, hay ciertos elementos que necesitaremos&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.java2s.com/Code/Jar/d/Downloadderbyclientjar.htm&quot;&gt;derbyclient.jar&lt;/a&gt;: El driver JDBC para Derby.&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Agregando el driver mencionado y las clases respectivas; la estructura de carpetas del proyecto es la siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHbjuw8kbHTGz1r0BBbfIFgjPb0atlh1fO_-aPp_o9EDe9GdyiIzO6RW-PGpnjKexx7VzPQ_F4lZeqHct37ECvAlClmVm40PUs0vt3gB9GsNrGlmSgBRfZgNHkIv2zYjhsqRvFKFIWzhw/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;253&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHbjuw8kbHTGz1r0BBbfIFgjPb0atlh1fO_-aPp_o9EDe9GdyiIzO6RW-PGpnjKexx7VzPQ_F4lZeqHct37ECvAlClmVm40PUs0vt3gB9GsNrGlmSgBRfZgNHkIv2zYjhsqRvFKFIWzhw/s320/2_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora vamos a inicializar el servicio de &lt;b&gt;Derby&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Dentro de &lt;b&gt;Prestaciones &lt;/b&gt;vamos a&lt;b&gt; Java BD&lt;/b&gt; e iniciamos el servidor&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZslhMOkPbbHr1K0v4SuWipqmhfAgCcmnCdU0LujFouma_dZQPoAFjnAQlGpRUf1OhIS1Dp5zkpJukRyOyLmpDWjwuoMjM_I7yo3-45PtVNt0H8XVeTCBMbJkf0KIQrWceJe933kGz9TQ/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZslhMOkPbbHr1K0v4SuWipqmhfAgCcmnCdU0LujFouma_dZQPoAFjnAQlGpRUf1OhIS1Dp5zkpJukRyOyLmpDWjwuoMjM_I7yo3-45PtVNt0H8XVeTCBMbJkf0KIQrWceJe933kGz9TQ/s320/3_.png&quot; width=&quot;282&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ya iniciado el servicio, creamos la base de datos:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF0xEl3_TPVlM0gfOr87aN04Vnbu0XnYck-m5ogzvRAiLuvKZTVB2nu9lvWvpB1kbwvFlk_p4c31bRcvr2I6gJFiscqwf4uq36XYfOnar3Te3caC4NzGd3ugF_wKaW3horgc4vpZqvowo/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgF0xEl3_TPVlM0gfOr87aN04Vnbu0XnYck-m5ogzvRAiLuvKZTVB2nu9lvWvpB1kbwvFlk_p4c31bRcvr2I6gJFiscqwf4uq36XYfOnar3Te3caC4NzGd3ugF_wKaW3horgc4vpZqvowo/s320/4_.png&quot; width=&quot;258&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Registraremos la BD con el nombre &quot;&lt;b&gt;DBDerby&lt;/b&gt;&quot;, usuario &quot;&lt;b&gt;usuarioderby&lt;/b&gt;&quot; y contraseña &quot;&lt;b&gt;123456&lt;/b&gt;&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;La razón de utilizar &quot;&lt;b&gt;usuarioderby&lt;/b&gt;&quot; en lugar de &quot;&lt;b&gt;system&lt;/b&gt;&quot; (como en el caso de &lt;b&gt;Oracle&lt;/b&gt;) es que &lt;b&gt;Netbeans &lt;/b&gt;al crear esta base de datos apuntará al &lt;b&gt;ESQUEMA &lt;/b&gt;(dentro de la cual estará nuestra tabla &lt;b&gt;Empleado&lt;/b&gt;) del mismo nombre que el usuario, osea &lt;b&gt;usuarioderby &lt;/b&gt;(la cual posteriormente crearemos); y si ponemos como usuario &quot;&lt;b&gt;system&lt;/b&gt;&quot;, creará la BD con ese usuario, pero al momento que intentemos crear el esquema con ese nombre (&lt;b&gt;system&lt;/b&gt;) no nos lo permitirá (compruébalo y verás que lo que te digo es cierto).&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEsD2BFRm6lrve8itCeJRox9QzvgihFrmwJEZngI7WDyHHU9_rGIelTrWVZnhAqbGOBrJ-MaxGRT0gp-Xw18-mBK-IvF9IyN5fVF6tRapOxPphtfUM_JnTs5YuiYBtxn-taVUNO6kXEJQ/s1600/5_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEsD2BFRm6lrve8itCeJRox9QzvgihFrmwJEZngI7WDyHHU9_rGIelTrWVZnhAqbGOBrJ-MaxGRT0gp-Xw18-mBK-IvF9IyN5fVF6tRapOxPphtfUM_JnTs5YuiYBtxn-taVUNO6kXEJQ/s320/5_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: -webkit-auto;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora conectamos el servicio.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPAg2H1WXfEGV4hbQVhfRSBND9tYEtp8Im26YcH3FAnplLCcpO-zjrmkZNNfwYyX40KwjnCuKoGMYLO6MZQvFFO4BoHq36lmeJNalLUnVR1fjZWZS475kKdXUrEAgKhheo9uvS69sst4c/s1600/6_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;270&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPAg2H1WXfEGV4hbQVhfRSBND9tYEtp8Im26YcH3FAnplLCcpO-zjrmkZNNfwYyX40KwjnCuKoGMYLO6MZQvFFO4BoHq36lmeJNalLUnVR1fjZWZS475kKdXUrEAgKhheo9uvS69sst4c/s320/6_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Vamos a crear nuestro esquema:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzKs8l0Yu1U_G-mpdjDfdXWjxXaP05LWbZ62X046VhoYArmjIgtseZDq8gcwJdG4RrRF2sQXTnXOPLpbHqrVIdaf6QYtHRr2uYEgkldlp3xa1Gu_aRWmKNUkaBH3PTAypGkoHNvyYsL-M/s1600/7_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzKs8l0Yu1U_G-mpdjDfdXWjxXaP05LWbZ62X046VhoYArmjIgtseZDq8gcwJdG4RrRF2sQXTnXOPLpbHqrVIdaf6QYtHRr2uYEgkldlp3xa1Gu_aRWmKNUkaBH3PTAypGkoHNvyYsL-M/s320/7_.png&quot; width=&quot;270&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Creamos el esquema &lt;b&gt;usuarioderby&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoyLuAPu2xjua9UVSGP2l5EFdDzcWHENEP87O7geBeM0ip7wvU-nHZiioFJI6_Uuob198_FbepIEreTtjwgrx_s3fETxOY3Iw1w8PZ6P6c2UM5wyPmkG4HRT4jHnI5C3i5Jot04-Anf9A/s1600/8_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;188&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoyLuAPu2xjua9UVSGP2l5EFdDzcWHENEP87O7geBeM0ip7wvU-nHZiioFJI6_Uuob198_FbepIEreTtjwgrx_s3fETxOY3Iw1w8PZ6P6c2UM5wyPmkG4HRT4jHnI5C3i5Jot04-Anf9A/s320/8_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora vamos a crear nuestra tabla &lt;b&gt;Empleado&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLY6biFa0_U25UnINRv1qCMQ0Tvl5CmlVXsaV_fo3Efh_gk68352W2Sg6YfO2M-fcxCkZR9aqf1uyxOTChbndCUyvOMnJW22bh0XwI-TUKGgfzMujlhK9kIFvJE7PyZPmkJXbDCTGcWzA/s1600/9_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhLY6biFa0_U25UnINRv1qCMQ0Tvl5CmlVXsaV_fo3Efh_gk68352W2Sg6YfO2M-fcxCkZR9aqf1uyxOTChbndCUyvOMnJW22bh0XwI-TUKGgfzMujlhK9kIFvJE7PyZPmkJXbDCTGcWzA/s320/9_.png&quot; width=&quot;189&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Nuestra tabla tendrá la siguiente estructura con los campos que se muestran a continuación:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDJ6kvcoKjGjCoD55SrbdOSO81Q4n5zUX1FXwiMy_VWJ64-J6oROV2mi_2rMB_H6Bt2yAJDW-ALH3xJtoTBjUTcveCHNivKP2nFnJ3pyZmxnuoNhzPTJ4Tg7Q_lgpxIPIUj5cI19ASfzw/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;166&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDJ6kvcoKjGjCoD55SrbdOSO81Q4n5zUX1FXwiMy_VWJ64-J6oROV2mi_2rMB_H6Bt2yAJDW-ALH3xJtoTBjUTcveCHNivKP2nFnJ3pyZmxnuoNhzPTJ4Tg7Q_lgpxIPIUj5cI19ASfzw/s320/1_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Ahora vamos a insertar unos datos de referencia para la prueba:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9P0jYx_mSlCvCPq9spH5AISoTXXEreZPluDJ6osvB1eW1bSNoz5ALlwDKiCuPZcJ2KxmkqAUgpDCTk5z-Ow8Kgz6rrJPQgrqpu1QvH0VZ4I0jjA6L_PeA3F5RmqGasITWImiUAqWtIsc/s1600/10_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi9P0jYx_mSlCvCPq9spH5AISoTXXEreZPluDJ6osvB1eW1bSNoz5ALlwDKiCuPZcJ2KxmkqAUgpDCTk5z-Ow8Kgz6rrJPQgrqpu1QvH0VZ4I0jjA6L_PeA3F5RmqGasITWImiUAqWtIsc/s320/10_.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora vamos a las clases:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Lo que esencialmente cambia en la codificación es la clase &lt;b&gt;Conexion &lt;/b&gt;(el &lt;b&gt;driver&lt;/b&gt;, la &lt;b&gt;URL &lt;/b&gt;y el &lt;b&gt;usuario&lt;/b&gt;),&amp;nbsp;veamos:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=NVj2BsXF&quot; style=&quot;border: none; height: 90%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;La otra clase&amp;nbsp;&lt;b&gt;ConexionConsolaJavaDerby &lt;/b&gt;es la misma que&amp;nbsp;&lt;b&gt;ConexionConsolaJavaOracle&amp;nbsp;&lt;/b&gt;(osea en la que se realizan las consultas), publicado en&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://javaenaccion.blogspot.com/2012/04/conexion-java-y-oracle-11g-xe.html&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Conexión Java y Oracle 11g XE&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;, tal como se ve:&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=N6p4e5uq&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora con todas esas modificaciones: ejecutamos nuestro &lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;ConexionConsolaJavaDerby&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;y nos deberá mostrar aproximadamente lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8oJvZfGRedEH57ykhFzwK5CCBSlscGpxBMijqyP_X3h8PR6Ax1cNkW75EesSDAINA3y-Jy39YdNQWynX-Xv-xzAs8Dh91IvwU8cr2TjIUe0CY6Un1B4Sz0NtD-58m0NvLmLwoBmExvLg/s1600/12_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;117&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8oJvZfGRedEH57ykhFzwK5CCBSlscGpxBMijqyP_X3h8PR6Ax1cNkW75EesSDAINA3y-Jy39YdNQWynX-Xv-xzAs8Dh91IvwU8cr2TjIUe0CY6Un1B4Sz0NtD-58m0NvLmLwoBmExvLg/s320/12_.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno, eso fue todo en cuánto a este tema, nuevamente espero les sirva y claro; háganme llegar sus dudas en caso existieran.&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/2543682537699186958/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/2543682537699186958?isPopup=true' title='11 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/2543682537699186958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/2543682537699186958'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/04/conexion-java-y-derby-utilizando.html' title='Conexión Java y Derby utilizando Netbeans 7'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiG1KLhrk76xNz7fiOrBUAmtPiyK6sC7wu8MvCBmbwvCloDI4psFMru4hDIjD_9ZS4sdbO0k4aPytzZn4VUKduFVEI4TAxz-3Pn4BYuGXmJItjvSn-1zlOw35EibnM-LBKP_MqKa9ZOvdP_/s72-c/db-logo-white_png.png" height="72" width="72"/><thr:total>11</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-1862173513913141362</id><published>2012-04-25T23:49:00.001-07:00</published><updated>2012-08-22T03:58:25.078-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base de Datos"/><category scheme="http://www.blogger.com/atom/ns#" term="JasperReport"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Creación de Reportes con Java, Netbeans y Oracle 11g XE - Parte II</title><content type='html'>&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;AHORA TRABAJAREMOS CON &lt;b&gt;&lt;i&gt;PARÁMETROS&lt;/i&gt;&lt;/b&gt; EN JasperReport!&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0w2XpQrpE6hfQ2Ix6_KDI0UgJIlAVe0Z4AGsQYRZdVZqK96hPpTlRwT7AXugXFlXal3fBOeH3meW4xSm0iM9yonsNgoXA49-tHI45rvCDEhTUdgVyKnAXWLCKAgvYlZCfy72HsZqDuqd/s1600/studio_logo_png.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;74&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0w2XpQrpE6hfQ2Ix6_KDI0UgJIlAVe0Z4AGsQYRZdVZqK96hPpTlRwT7AXugXFlXal3fBOeH3meW4xSm0iM9yonsNgoXA49-tHI45rvCDEhTUdgVyKnAXWLCKAgvYlZCfy72HsZqDuqd/s200/studio_logo_png.png&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;En este publicación vamos a mejorar lo que hicimos en&amp;nbsp;&lt;a href=&quot;http://javaenaccion.blogspot.com/2012/04/creacion-de-reportes-con-java-netbeans.html&quot;&gt;Creación de Reportes con Java, Netbeans y Oracle 11g XE - Parte I&lt;/a&gt;, pues si bien cierto en ella nos mostraba un reporte con todos los elementos (empleados) que teníamos registrados en nuestra base de datos, pero ¿cómo haríamos para mostrar los datos que necesitemos de un empleado en específico?&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para solucionar ese gran dolor de cabeza están los &lt;b&gt;PARÁMETROS&lt;/b&gt;; que dependiendo del valor que reciba tal parámetro nos mostrará uno u otro &lt;b&gt;Empleado&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Vamos con ello:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Lo primero que tenemos que hacer es agregar los parámetros a la &lt;b&gt;PLANTILLA&lt;/b&gt;(reportempleado.jrxml, de la publicación anterior&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://javaenaccion.blogspot.com/2012/04/creacion-de-reportes-con-java-netbeans.html&quot; style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Creación de Reportes con Java, Netbeans y Oracle 11g XE - Parte I&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;, eso lo hacemos dentro de la ventana &quot;Report Inspector&quot; osea:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSov3_Y8SpAcRrV92GvcyCmCveoLpsInDrwVCYVp7Vvss4QAOzb7e0BxobiwN1OYjbWYKShl9pGglGusrF46m5wrpuSB095dBo95ewAkjp19QJoTAhsL8yBEnn96-lXUN_PCB-NkRs_Xo/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSov3_Y8SpAcRrV92GvcyCmCveoLpsInDrwVCYVp7Vvss4QAOzb7e0BxobiwN1OYjbWYKShl9pGglGusrF46m5wrpuSB095dBo95ewAkjp19QJoTAhsL8yBEnn96-lXUN_PCB-NkRs_Xo/s320/1_.png&quot; width=&quot;141&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: red; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: xx-small;&quot;&gt;&lt;i&gt;*Nota: Si no logras hacer aparecer el &quot;&lt;b&gt;Report Inspector&lt;/b&gt;&quot; restaura tu ventana de &lt;b&gt;Netbeans&lt;/b&gt;, osea, click en menú &lt;b&gt;Ventana&lt;/b&gt; y luego en &lt;b&gt;Restaurar&lt;/b&gt; &lt;b&gt;ventana&lt;/b&gt;.&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora vamos a cambiar de nombre al parámetro &quot;&lt;b&gt;parameter1&lt;/b&gt;&quot; por &quot;&lt;b&gt;codigo_empleado&lt;/b&gt;&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEAhBxpOn4Ni8qHS2sZEJZhq4Q0qZgotiRMkCidrEuV-LzkGMD-feO12MXm5UgYxdLBMbd9wvE7jL5RSYjV7AnQ7-WjB3INJdAXmPPMnhO2JEfhAXU7L75po0UgxWIPJxdNcYveuyMJ9Y/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgEAhBxpOn4Ni8qHS2sZEJZhq4Q0qZgotiRMkCidrEuV-LzkGMD-feO12MXm5UgYxdLBMbd9wvE7jL5RSYjV7AnQ7-WjB3INJdAXmPPMnhO2JEfhAXU7L75po0UgxWIPJxdNcYveuyMJ9Y/s320/2_.png&quot; width=&quot;156&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como se ve:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZyMszq24qIrAoSaLjPlXSbhRG1szEASowkl9fDYJuq5IKFzW25u-HyA2PcZ1tFoMQzvJkYbHsuGQsmyXHe3CEiG5f8jhbC0neOLee4oDgmJf3L0lOotq0KFr7Svps27tbblNMVKImFgU/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;128&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZyMszq24qIrAoSaLjPlXSbhRG1szEASowkl9fDYJuq5IKFzW25u-HyA2PcZ1tFoMQzvJkYbHsuGQsmyXHe3CEiG5f8jhbC0neOLee4oDgmJf3L0lOotq0KFr7Svps27tbblNMVKImFgU/s320/3_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Seguidamente vamos a cambiar el tipo de variable por &lt;b&gt;Integer&lt;/b&gt; (esto depende del tipo de variable que este registrado en la base de datos Empleado, que para nuestro caso es Integer):&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNS2U3KrfFgb2LBvo4DR6vIMBAB60rw2k2oZAfsSDyLFL6AVL1fqW04vXQMS6nNbqKZvX2wkkT77SLIqR19s2_zwd65nkyathcAgZyFbp2puX3tenLGcoh9qEu-LLclDWxWk3WRUpzTTg/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNS2U3KrfFgb2LBvo4DR6vIMBAB60rw2k2oZAfsSDyLFL6AVL1fqW04vXQMS6nNbqKZvX2wkkT77SLIqR19s2_zwd65nkyathcAgZyFbp2puX3tenLGcoh9qEu-LLclDWxWk3WRUpzTTg/s320/4_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Ahora vamos a modificar la consulta como se muestra en la imagen, haciendo referencia al &lt;b&gt;parámetro (&lt;/b&gt;&lt;/span&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; text-align: left;&quot;&gt;codigo_empleado&lt;/b&gt;&lt;b style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;)&lt;/b&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh6-gAOvcZh9VOEZ2m2ES8vo_t1WEYzWPeMD1xhCPaW2tC6UKyAg0Uc04-ZvZlGrDvmidE-JlNHDpTSD9BeuMlPrz6vyv8sDZAGmQPgMEfsQMNcudekaA00ZseLjWHcFTuSrucFHluz4M/s1600/5_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhh6-gAOvcZh9VOEZ2m2ES8vo_t1WEYzWPeMD1xhCPaW2tC6UKyAg0Uc04-ZvZlGrDvmidE-JlNHDpTSD9BeuMlPrz6vyv8sDZAGmQPgMEfsQMNcudekaA00ZseLjWHcFTuSrucFHluz4M/s320/5_.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;damos en &lt;b&gt;Ok&lt;/b&gt; y eso es todo en cuanto a la vista.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora Vamos a la codificación:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Lo que en realidad cambia en un pequeño porcentaje es la clase&amp;nbsp;&lt;b&gt;ConexionConsolaJavaOracle&lt;/b&gt; específicamente en el método&amp;nbsp;&lt;b&gt;mostrarReporte()&lt;/b&gt;, veamos:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=YmfnmtPn&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Nos queda ejecutar la clase&amp;nbsp;&lt;b&gt;ConexionConsolaJavaOracle&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6u4LlYzravNczdFqjhybeawRYLF7HPZza4Uav1EOWjmrBlFXsRPwVuFil232OHtqzfKXt0YNBotXd3ixGaGoZvaqB8qASChKW656g2Cmu3VdM8azlqTuDx4SS5REpOdxuRVdxJ6fHV7I/s1600/6_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6u4LlYzravNczdFqjhybeawRYLF7HPZza4Uav1EOWjmrBlFXsRPwVuFil232OHtqzfKXt0YNBotXd3ixGaGoZvaqB8qASChKW656g2Cmu3VdM8azlqTuDx4SS5REpOdxuRVdxJ6fHV7I/s320/6_.png&quot; width=&quot;281&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Luego debería mostrarnos algo semejante a la siguiente imagen:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD-wuEvYhjT9T1Q31tWarZ4eexiUWoVD0akpxK7B8lnkWV0BYAwF1EH3DiA-qNYmugODggWViK5kwCWfL9ajGkPOa-vgH2XBimV7cn43bFTAopRkE-JmT2X1LXY87ScMP33ktgwUXPhQw/s1600/7_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;258&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjD-wuEvYhjT9T1Q31tWarZ4eexiUWoVD0akpxK7B8lnkWV0BYAwF1EH3DiA-qNYmugODggWViK5kwCWfL9ajGkPOa-vgH2XBimV7cn43bFTAopRkE-JmT2X1LXY87ScMP33ktgwUXPhQw/s320/7_.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno a mí me corre normalmente, si existe alguna duda o dificultad no duden en comentarlo.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/1862173513913141362/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/1862173513913141362?isPopup=true' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/1862173513913141362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/1862173513913141362'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/04/creacion-de-reportes-con-java-netbeans_25.html' title='Creación de Reportes con Java, Netbeans y Oracle 11g XE - Parte II'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0w2XpQrpE6hfQ2Ix6_KDI0UgJIlAVe0Z4AGsQYRZdVZqK96hPpTlRwT7AXugXFlXal3fBOeH3meW4xSm0iM9yonsNgoXA49-tHI45rvCDEhTUdgVyKnAXWLCKAgvYlZCfy72HsZqDuqd/s72-c/studio_logo_png.png" height="72" width="72"/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-3457706708837474523</id><published>2012-04-23T23:01:00.002-07:00</published><updated>2013-07-28T08:42:49.928-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base de Datos"/><category scheme="http://www.blogger.com/atom/ns#" term="iReport"/><category scheme="http://www.blogger.com/atom/ns#" term="JasperReport"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="plugin iReport"/><category scheme="http://www.blogger.com/atom/ns#" term="Report"/><category scheme="http://www.blogger.com/atom/ns#" term="Reporte"/><title type='text'>Creación de Reportes con Java, Netbeans y Oracle 11g XE - Parte I</title><content type='html'>&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Hola!!&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Hoy veremos cómo crear los clásicos reportes Java con una gran herramienta como es &lt;b&gt;JasperReport&lt;/b&gt;; sin más preámbulos vamos directamente al tema:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0w2XpQrpE6hfQ2Ix6_KDI0UgJIlAVe0Z4AGsQYRZdVZqK96hPpTlRwT7AXugXFlXal3fBOeH3meW4xSm0iM9yonsNgoXA49-tHI45rvCDEhTUdgVyKnAXWLCKAgvYlZCfy72HsZqDuqd/s1600/studio_logo_png.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0w2XpQrpE6hfQ2Ix6_KDI0UgJIlAVe0Z4AGsQYRZdVZqK96hPpTlRwT7AXugXFlXal3fBOeH3meW4xSm0iM9yonsNgoXA49-tHI45rvCDEhTUdgVyKnAXWLCKAgvYlZCfy72HsZqDuqd/s200/studio_logo_png.png&quot; height=&quot;74&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Como ya antes vimos, el primer paso es tener los elementos necesarios, ahora ya no listaré las que imagino ya tienes&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;; pues además mencioné&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;en el post anterior&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;de dónde obtenerlas . Cosa contraria que haré con los elementos que aún no cuentas posiblemente.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://plugins.netbeans.org/plugin/4425/ireport&quot;&gt;plugin iReport&lt;/a&gt;: Este complemento nos ayudará en la gestión de la conexión a &lt;b&gt;Oracle &lt;/b&gt;o cualquier otro SGBD con &lt;b&gt;Netbeans&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;https://skydrive.live.com/#cid=66041545F3F833D0&amp;amp;id=66041545F3F833D0%21556&quot;&gt;.jar Necesarios_Reportes &lt;/a&gt;: Son los .jar necesarios para la creación de Reportes con Java.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;En esta ocasión continuamos usando el SGBD &lt;b&gt;Oracle&lt;/b&gt;, indistintamente de poder usar cualquier otro.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno,&amp;nbsp;empecemos:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Si leíste el post anterior, ahora lo que haremos será seguir trabajando sobre ella, osea, utilizaremos el mismo proyecto:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Luego de haber descargado el plugin iReport encontraras los archivos que tendrás que agregar al Netbeans:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgudkbxnRR74618jHP45-unqAk8rrp2usKWWfbujDM-N_1XNfk8fnKmXE0rarYqtP3yJ4GUla5fzDirBaTv2Ag2jhsXcOlMN9j4zvU1ZeAi-XAlytrpRoLVV9htE7ugQj-eAD6rS5mpUJM/s1600/plugin_ireport.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgudkbxnRR74618jHP45-unqAk8rrp2usKWWfbujDM-N_1XNfk8fnKmXE0rarYqtP3yJ4GUla5fzDirBaTv2Ag2jhsXcOlMN9j4zvU1ZeAi-XAlytrpRoLVV9htE7ugQj-eAD6rS5mpUJM/s400/plugin_ireport.png&quot; height=&quot;266&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Vamos a &lt;b&gt;Netbeans&lt;/b&gt; y en &lt;b&gt;Herramientas&lt;/b&gt;, &lt;b&gt;Complementos&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcc3mjTSt6rq7W9Dz05m0LS9swgr320SRnpI7ezqVHf1sNm2XYgjcBaeUYv2tXK4sXfgbl2zvKU_2pgO9V7lae3rxZthJ3b-3FGdhCgQaLeEYuLTzKKpFi9HR-u70EPF9Oc5FC5atxbgw/s1600/1_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgcc3mjTSt6rq7W9Dz05m0LS9swgr320SRnpI7ezqVHf1sNm2XYgjcBaeUYv2tXK4sXfgbl2zvKU_2pgO9V7lae3rxZthJ3b-3FGdhCgQaLeEYuLTzKKpFi9HR-u70EPF9Oc5FC5atxbgw/s320/1_.png&quot; height=&quot;320&quot; width=&quot;167&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora agregaremos los archivos contenidos en el plugin&lt;b&gt; &lt;/b&gt;iReport (anteriormente descargado)&lt;span style=&quot;color: red;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;Agregar&lt;/b&gt; &lt;b&gt;plugins&lt;/b&gt; (seleccionas todas); esperas un momento y cuando aparezca la lista le das en &lt;b&gt;Instalar&lt;/b&gt; y en esta parte posiblemente tengas que esperar algo más pues descargará otros archivos y las configurará.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggGBnES3YZMOX8XtsQBmZCvnifzfduE1xd76hGeuHJA-Wds_8QnjYXkP_l3AufPGfi_E-y8M_t43IhpBqk0sPCK9Cp5-e-hr9zt2J-KmcGGf5uBJyKwH0DxYxMFZq3z2vl7qPRDVm2IY4/s1600/2_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEggGBnES3YZMOX8XtsQBmZCvnifzfduE1xd76hGeuHJA-Wds_8QnjYXkP_l3AufPGfi_E-y8M_t43IhpBqk0sPCK9Cp5-e-hr9zt2J-KmcGGf5uBJyKwH0DxYxMFZq3z2vl7qPRDVm2IY4/s400/2_.png&quot; height=&quot;248&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Después de terminado el paso anterior aparecerá un nuevo botón en la barra de botones de Netbeans, como se muestra en la imagen siguiente:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJL64rxc2WDJkB4f-gps0aqcqwL-nxRdBzVy5nQcBrAOz8YxcFAxe-tKTRqc1NEfDaOd1dhWLn3vJz5ysewsEW6Bcblel4Jw7wbEWyMiMiCZuKMUeq2WwweXAhq8_HfH-8qvVPo2qic68/s1600/3_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhJL64rxc2WDJkB4f-gps0aqcqwL-nxRdBzVy5nQcBrAOz8YxcFAxe-tKTRqc1NEfDaOd1dhWLn3vJz5ysewsEW6Bcblel4Jw7wbEWyMiMiCZuKMUeq2WwweXAhq8_HfH-8qvVPo2qic68/s320/3_.png&quot; height=&quot;88&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora le damos click en el nuevo&amp;nbsp;botón&amp;nbsp;y aparecerá la imagen que se muestra a continuación; en esta parte agregaremos una nueva conexión que será utilizado luego en la plantilla de &lt;b&gt;JasperReport&lt;/b&gt; que nos servirá para crear nuestros reportes.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Seguidamente nos aparecerá la imagen de fondo y le damos en &lt;b&gt;New&lt;/b&gt; y, nos muestra la imagen del frente.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp_bshjMw1pNbP3HrmtfwyVrKdulTuyN1vrZNY24hptnyYCij941Pq59FLqtLwY2-P4NTn5EwR5712aazlwP9SWT8lKew_F0NCGsdxdr-N_fS806X2NU2YoKiFY4aRAy3GNiI818Hbfpc/s1600/4_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhp_bshjMw1pNbP3HrmtfwyVrKdulTuyN1vrZNY24hptnyYCij941Pq59FLqtLwY2-P4NTn5EwR5712aazlwP9SWT8lKew_F0NCGsdxdr-N_fS806X2NU2YoKiFY4aRAy3GNiI818Hbfpc/s400/4_.png&quot; height=&quot;235&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Seleccionamos la opción &lt;b&gt;Database JDBC Connection&lt;/b&gt; y le damos en &lt;b&gt;Next&lt;/b&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora ingresamos los parámetros necesarios como se muestra en la imagen y testeamos, recordar que nuestra clave es la misma con la que creamos nuestro proyecto incial y la que ingresamos al momento de instalar Oracle.&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmGkF2IDz1CP4mMwIcCnRMM2db7iIvCSArFbgmy4WmLfg_twVMI9fJQJtXBiprmawArY9U4IDw2oAhji65o25FhebRNAaAKkZaOZF7-zHSTgMPLS8dDaCflgmFSrOsq_K_KkYFdqUoOFM/s1600/5_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgmGkF2IDz1CP4mMwIcCnRMM2db7iIvCSArFbgmy4WmLfg_twVMI9fJQJtXBiprmawArY9U4IDw2oAhji65o25FhebRNAaAKkZaOZF7-zHSTgMPLS8dDaCflgmFSrOsq_K_KkYFdqUoOFM/s400/5_.png&quot; height=&quot;236&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y luego deberá mostrarnos que la conexion es satisfactoria.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwQhYx9zmbZ1ZTANLVPxWKx5Sou85L9yplhEcOSWsBCNQpF_-LG17-h76mzNDQYI9b8pT9pGZK1OtAzyFHgLdOT-p7eKMWw3Fchr9cCgso6mGLMGj_zyFUBDnjpMzeYd-7tjl_IsN01R0/s1600/_6.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwQhYx9zmbZ1ZTANLVPxWKx5Sou85L9yplhEcOSWsBCNQpF_-LG17-h76mzNDQYI9b8pT9pGZK1OtAzyFHgLdOT-p7eKMWw3Fchr9cCgso6mGLMGj_zyFUBDnjpMzeYd-7tjl_IsN01R0/s1600/_6.png&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Aceptamos y guardamos la&amp;nbsp;conexión.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora &amp;nbsp;vamos a crear nuestras plantillas de JasperReport, empezamos agregando un nuevo archivo como sigue:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZdwveFP5yXBBR5ctSiAjOswTkqYgAN_T0hFFIuoifDaXIcwiFn7VmOwt1m2GYjevpvzt3FnHGmj8xBLtVK1duIgLs013OSKCA72pjNr_eNTrkpFytDQo2rgxEaWnH9qpbejBHhiO_vyA/s1600/7_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZdwveFP5yXBBR5ctSiAjOswTkqYgAN_T0hFFIuoifDaXIcwiFn7VmOwt1m2GYjevpvzt3FnHGmj8xBLtVK1duIgLs013OSKCA72pjNr_eNTrkpFytDQo2rgxEaWnH9qpbejBHhiO_vyA/s400/7_.png&quot; height=&quot;301&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Seleccionamos tal como se muestra en la siguiente imagen, &lt;b&gt;Report&lt;/b&gt; y &lt;b&gt;Report wizard&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCLylN3C6p6z4tqV8CVgTCLB8lJV8n58uOZor7kMw8ui4WBPUHZ9buHmxRAmNVe93EIq7ooZ6xRyveVbo0tE55ECRmwEGNAv-YfxDwXUKMmGNEdIjZKGoisS5hJzDDAyon09XRAxFVIv8/s1600/8_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCLylN3C6p6z4tqV8CVgTCLB8lJV8n58uOZor7kMw8ui4WBPUHZ9buHmxRAmNVe93EIq7ooZ6xRyveVbo0tE55ECRmwEGNAv-YfxDwXUKMmGNEdIjZKGoisS5hJzDDAyon09XRAxFVIv8/s400/8_.png&quot; height=&quot;275&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Escogemos la plantilla, para el caso seleccioné la &lt;b&gt;Leaf Green&lt;/b&gt;&lt;span style=&quot;text-align: -webkit-auto;&quot;&gt;&amp;nbsp;(preferentemente para que te guíes con el ejemplo)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyJuFZ_R7-FZs88Z3_d2kvDmoTzj_W1HwccXrNXfT7mvsq5LdjSajkZyLJMxkJCP1AwjdcsfvqTWp7A_rG9tnVgzndPa41wC0rqwsNT-NeZmdFrHxOnoIsx4XGwnCxYZMGBNI4P2krels/s1600/9_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyJuFZ_R7-FZs88Z3_d2kvDmoTzj_W1HwccXrNXfT7mvsq5LdjSajkZyLJMxkJCP1AwjdcsfvqTWp7A_rG9tnVgzndPa41wC0rqwsNT-NeZmdFrHxOnoIsx4XGwnCxYZMGBNI4P2krels/s400/9_.png&quot; height=&quot;288&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Registramos el nombre de nuestra plantilla, para el caso lo llamé &lt;b&gt;reporteempleado.jrxml&lt;/b&gt; y damos en siguiente:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpmCdxIgKaNaymZ946-iTWzqCtRz8o87Ex0I_M0y0olMHu1BH59fiDBSFnlpIdBbsyFzroiSWImp0VQ0fJAOXvDdgbHtSVh7bG4Clf_Pq0A3WJUkpEgg0IDPjDOV8mwdsuxLBFL2OQlKE/s1600/10_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpmCdxIgKaNaymZ946-iTWzqCtRz8o87Ex0I_M0y0olMHu1BH59fiDBSFnlpIdBbsyFzroiSWImp0VQ0fJAOXvDdgbHtSVh7bG4Clf_Pq0A3WJUkpEgg0IDPjDOV8mwdsuxLBFL2OQlKE/s400/10_.png&quot; height=&quot;288&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora le damos en &lt;b&gt;Design Query&lt;/b&gt; para agregar la(s) tabla(s) que van a ser consultadas desde el reporte, luego seleccionamos el usuario con el cual fue creado el reporte y le damos &lt;b&gt;doble click&lt;/b&gt; en nuestra tabla, osea &lt;b&gt;Empleado&lt;/b&gt;, damos en &lt;b&gt;Ok&lt;/b&gt;:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzMtqWZk1efEAWCdCF-bbrg5Vs6SOXzUjB6dEtVd3kSE5V2QgpkPmDAwikY5VV8Dscx_f8bxa06P5CG9dnJ9bTBgf7CJAj206QJ4IXdpCXEoNFJa4AUa4YMynzc7NSLBkTJb45_YmGLok/s1600/11_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjzMtqWZk1efEAWCdCF-bbrg5Vs6SOXzUjB6dEtVd3kSE5V2QgpkPmDAwikY5VV8Dscx_f8bxa06P5CG9dnJ9bTBgf7CJAj206QJ4IXdpCXEoNFJa4AUa4YMynzc7NSLBkTJb45_YmGLok/s400/11_.png&quot; height=&quot;210&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Deberá aparecer lo siguiente:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_gQsCMyAl22QIbhWR9bBtKtgi8NSL0-ZEgTo4Pt6FtOJn5g5V1uklU_qn_div-wNH7x1RG-iRFmOpHBlySktSCZ-XzCpBoY390j9VF38nRYkVkWmktv6drnmGRIiGE_-yNOPQvYg8dTw/s1600/12_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_gQsCMyAl22QIbhWR9bBtKtgi8NSL0-ZEgTo4Pt6FtOJn5g5V1uklU_qn_div-wNH7x1RG-iRFmOpHBlySktSCZ-XzCpBoY390j9VF38nRYkVkWmktv6drnmGRIiGE_-yNOPQvYg8dTw/s400/12_.png&quot; height=&quot;288&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;De igual forma agregamos los campos que deseamos que aparezcan en el reporte; para nuestro caso seleccionamos todo pues queremos que todos los campos de &lt;b&gt;Empleado &lt;/b&gt;aparezcan en el reporte, eso ya depende cada quien:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmeGQjPF5YAoyCXOypQL7UxEmefpcKeUqf9lIjFbwRyM6aU6q9NL9FFq5GwwF_JoJCjGZ82NwjWxzecIGDavFw-UnieSO07sypL8uOpaMcm_IPLPwG30wKQAHeaMh-7Ml_nu7EDsivJJo/s1600/13_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmeGQjPF5YAoyCXOypQL7UxEmefpcKeUqf9lIjFbwRyM6aU6q9NL9FFq5GwwF_JoJCjGZ82NwjWxzecIGDavFw-UnieSO07sypL8uOpaMcm_IPLPwG30wKQAHeaMh-7Ml_nu7EDsivJJo/s400/13_.png&quot; height=&quot;288&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Damos &lt;b&gt;Siguiente&lt;/b&gt; puesto que no tenemos nada que agrupar&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkhCtGOqMDAG3LDnGFQ64mjUJ5-8kT_TBA8heW9eOhbVH3Mc4Kqf0BCDv8BhbYnfQ4IOuPrQF1uGqjcXB3KzzGW-SGvTMt7vYxIYVAPb4CUXKIsxMQ5wq6_orlLcK32c4kxsvkcundoIY/s1600/14_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkhCtGOqMDAG3LDnGFQ64mjUJ5-8kT_TBA8heW9eOhbVH3Mc4Kqf0BCDv8BhbYnfQ4IOuPrQF1uGqjcXB3KzzGW-SGvTMt7vYxIYVAPb4CUXKIsxMQ5wq6_orlLcK32c4kxsvkcundoIY/s400/14_.png&quot; height=&quot;288&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;Finalmente deberá aparecer la última ventana que mostrará que los pasos realizados con anterioridad fueron correctos. damos en Terminar.&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlEeqV1E7Sqt2So7QsCf-4zeAmv4ixmFeDEkoIF-gHSVw56kCJj-5A0qJtPjEVfTrKntFJVQvkZi8utZgTTkeRzwUt-sjUvZ6BEA7gvldmtuh3JHjnaCv7hZVKXBoYcyUWjEskgpjYhnY/s1600/15_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlEeqV1E7Sqt2So7QsCf-4zeAmv4ixmFeDEkoIF-gHSVw56kCJj-5A0qJtPjEVfTrKntFJVQvkZi8utZgTTkeRzwUt-sjUvZ6BEA7gvldmtuh3JHjnaCv7hZVKXBoYcyUWjEskgpjYhnY/s400/15_.png&quot; height=&quot;288&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Deberá mostrarnos los archivos y la plantilla como lo siguiente:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnkSIigyKACXfD8fovoaWGzKWdokrktvP4Vq5YzGDBR0SgfwssdgkvM07EM_fG9WPUE_scUixX2MVyzinrm9y2HXlonKmjLlYdHoKvvdCR608ZtIQ-aX8GZaR7WpCmphi6vxCP2wzN8Bw/s1600/16_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgnkSIigyKACXfD8fovoaWGzKWdokrktvP4Vq5YzGDBR0SgfwssdgkvM07EM_fG9WPUE_scUixX2MVyzinrm9y2HXlonKmjLlYdHoKvvdCR608ZtIQ-aX8GZaR7WpCmphi6vxCP2wzN8Bw/s400/16_.png&quot; height=&quot;190&quot; width=&quot;400&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora veremos la parte de la codificación:&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Hemos modificado la clase&amp;nbsp;&lt;b&gt;ConexionConsolaJavaOracle&lt;/b&gt; agregando el método &lt;b&gt;mostrarReporte&lt;/b&gt; y luego llamándola desde el método &lt;b&gt;main&lt;/b&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=tWRjNKMk&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Posiblemente nos muestre errores, es porque aún no hemos agregado los .jar necesarios para JasperReport (arbitrariamente tienen que ser todas las descargadas con anterioridad). Agregándolas nos quedará de la siguiente forma:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCubphOcAURbKlSfGMZuFTVWbsC06zJQyEQHKY5n5LIqIysYG-6zbooqPLHdqm49r8tvYH4-mnGpuZYYNxJOFHjgwI15BdntHnkNO4xP6RavRAoVV91n7rxGxqNZfzUhYBZPTwPrgdF5s/s1600/17_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCubphOcAURbKlSfGMZuFTVWbsC06zJQyEQHKY5n5LIqIysYG-6zbooqPLHdqm49r8tvYH4-mnGpuZYYNxJOFHjgwI15BdntHnkNO4xP6RavRAoVV91n7rxGxqNZfzUhYBZPTwPrgdF5s/s320/17_.png&quot; height=&quot;299&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Nos queda ejecutar el proyecto y &lt;b&gt;Bingo!! &lt;/b&gt;Seguro que aún hay un error; para desaparecer ese error quiten la imagen que se mostraba en la plantilla &lt;b&gt;reporteempleado.jrxml&lt;/b&gt; &amp;nbsp;y claro también del paquete(por algún motivo que todavía está en investigación, que posiblemente sea la versión, &lt;b&gt;Netbeans&lt;/b&gt; no reconoce la ruta de la imagen correctamente), ahora debería quedar así:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlM0tfl3tEwEbp8GWj6aROQ_tVgwzzzL62bFm-bqkUDuUNUq8Q_S00isx7SBhoB3DMoszo9VL7NQ1wM_A-Ou5DO8k9EvrGe9Ph8dOQyt7I9Fkx3z1CJ_CDqY6RGgdTJzlomsSnCHSzxlQ/s1600/18_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhlM0tfl3tEwEbp8GWj6aROQ_tVgwzzzL62bFm-bqkUDuUNUq8Q_S00isx7SBhoB3DMoszo9VL7NQ1wM_A-Ou5DO8k9EvrGe9Ph8dOQyt7I9Fkx3z1CJ_CDqY6RGgdTJzlomsSnCHSzxlQ/s400/18_.png&quot; height=&quot;159&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora sí, ejecutamos nuestro&amp;nbsp;&lt;b&gt;ConexionConsolaJavaOracle&lt;/b&gt; y &lt;b&gt;Bingooo&lt;/b&gt;!!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy4ove4U0GVioEdWqEbLvo90c95D7waTzaU79WnOgYqjMbhSyLDI26C-LnvSPxvrQxHbh_TfLSXR48Yqa3u6ti6Bypa-eLgjZ_mmKaVPZK3XQRxEagub7n47h-kzwdlKE9jwbxWX87E44/s1600/19_.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy4ove4U0GVioEdWqEbLvo90c95D7waTzaU79WnOgYqjMbhSyLDI26C-LnvSPxvrQxHbh_TfLSXR48Yqa3u6ti6Bypa-eLgjZ_mmKaVPZK3XQRxEagub7n47h-kzwdlKE9jwbxWX87E44/s400/19_.png&quot; height=&quot;250&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Bueno esto fue la primera parte del tema, como ya saben si tienen dudas háganlas llegar. Nos vemos!!&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/3457706708837474523/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/3457706708837474523?isPopup=true' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/3457706708837474523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/3457706708837474523'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/04/creacion-de-reportes-con-java-netbeans.html' title='Creación de Reportes con Java, Netbeans y Oracle 11g XE - Parte I'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgK0w2XpQrpE6hfQ2Ix6_KDI0UgJIlAVe0Z4AGsQYRZdVZqK96hPpTlRwT7AXugXFlXal3fBOeH3meW4xSm0iM9yonsNgoXA49-tHI45rvCDEhTUdgVyKnAXWLCKAgvYlZCfy72HsZqDuqd/s72-c/studio_logo_png.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-3442552102508401311</id><published>2012-04-21T10:14:00.000-07:00</published><updated>2012-08-22T03:59:45.479-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Base de Datos"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><title type='text'>Conexión Java y Oracle 11g XE</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE3DmZiY09aXM-bMJD_0kzrBSDjEPhDaOHTWBIVHJvA4wmFHgldjeEegJc-t78vkxkEpwSLtwZjhEQfAsfgXGXxAFRXeMBrrupTzw2JMWOW3lFwkv5lheLMKvWqZrVqfZTFILecD-GVlvI/s1600/Sun_Oracle_logo.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE3DmZiY09aXM-bMJD_0kzrBSDjEPhDaOHTWBIVHJvA4wmFHgldjeEegJc-t78vkxkEpwSLtwZjhEQfAsfgXGXxAFRXeMBrrupTzw2JMWOW3lFwkv5lheLMKvWqZrVqfZTFILecD-GVlvI/s1600/Sun_Oracle_logo.png&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;En esta ocasión vamos a tratar sobre Java y Oracle 11g XE, específicamente la conexión conexión de Java a &lt;b&gt;Oracle&lt;/b&gt;, y una consulta a ésta última; bueno imagino que ya tienes el software necesario (al menos como ejemplo los que yo utilicé):&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;a href=&quot;http://netbeans.org/&quot;&gt;Netbeans 7.0.1&lt;/a&gt;, indistintamente de cualquier otro IDE.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html&quot;&gt;jdk-6u17-windows-i586&lt;/a&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;, aunque ésta ya viene incluida en Netbeans.&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/database/enterprise-edition/jdbc-112010-090769.html&quot;&gt;ojdbc6&lt;/a&gt;, el driver de conexión entre Java y Oracle.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/products/express-edition/downloads/index.html&quot;&gt;Oracle 11g XE&lt;/a&gt;, el motor Oracle.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;Adicional a éstas una interfaz de desarrollo para Oracle:&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;a href=&quot;http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html&quot;&gt;&lt;i&gt;Oracle SQL Developer 3.1 (3.1.07.42)&lt;/i&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Recordemos que después de haber hecho la instalación de Oracle se debe iniciar el servicio&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;(aunque este gestor de BD es muy pesado pues consume demasiados recursos de memoria).&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Para ello también habremos creado o tendremos una tabla denominada Empleado, con los campos siguientes:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- codigo: entero.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- nombres: cadena.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- apellidos: cadena.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- edad: entero.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- salario: flotante.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;i&gt;- estado: entero.&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0mInytmMBSbpWQgjK6y_VujO7GRJdCQbncZZmUP0HN6hfXOOsXS6sqsJJciSDAmw53X0WhaoOrBG8sSZ4sb5s0QicdtUgXeQBOHN9cpLFMbtgSgznIn373U2CK3o2byaSqeqVbSnLaQQ/s1600/sqldeveloper.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;189&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0mInytmMBSbpWQgjK6y_VujO7GRJdCQbncZZmUP0HN6hfXOOsXS6sqsJJciSDAmw53X0WhaoOrBG8sSZ4sb5s0QicdtUgXeQBOHN9cpLFMbtgSgznIn373U2CK3o2byaSqeqVbSnLaQQ/s320/sqldeveloper.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Naturalmente Uds tendrán que llenar algunos datos para poder hacer la prueba.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora Iniciamos nuestro Netbeans y creamos un nuevo proyecto Java, en caso mío lo llamé indistintamente&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;ConexionConsolaJavaOracle, el cual contendrá dos paquetes:&amp;nbsp;&lt;b&gt;unsch.efpis.ConexionConsolaJavaOracle&lt;/b&gt; (en ésta estará contenida la clase&amp;nbsp;&lt;b&gt;ConexionConsolaJavaOracle&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;)y&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;unsch.efpis.ConexionDB&lt;/b&gt; (conteniendo a la clase&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Conexion&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;) como se ve a continuación:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaFl86P9I_fMJOaBRerlPQuEmr2efNul-9rBRUv3xsfmq01q2mDB73aJfd0TPhhNO9GyO-ZHAXJeKoV28gP55PsU06OA2orn04jIz0ZDRXTs-reeZ460ca44tIwMcoltTUzL_KkiU_VIA/s1600/estructura+de+carpetas.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;139&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaFl86P9I_fMJOaBRerlPQuEmr2efNul-9rBRUv3xsfmq01q2mDB73aJfd0TPhhNO9GyO-ZHAXJeKoV28gP55PsU06OA2orn04jIz0ZDRXTs-reeZ460ca44tIwMcoltTUzL_KkiU_VIA/s320/estructura+de+carpetas.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;b&gt;Ahora veamos el código de cada clase:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Primero veamos la clase &lt;b&gt;Conexion&lt;/b&gt;:&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Quién será la encargada de brindarnos la conexión a Oracle (estoy utilizando el &lt;b&gt;usuario &lt;/b&gt;por defecto que tiene Oracle, el cual es &quot;system&quot; y la &lt;b&gt;contraseña &lt;/b&gt;es la que en el momento de instalar pusieron Uds. lo que en mi caso puse &quot;123456&quot;).&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=e39YdrMB&quot; style=&quot;border: none; height: 85%; width: 100%;&quot;&gt;&lt;/iframe&gt;
&lt;span style=&quot;color: #181818;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 22px; white-space: pre;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;y la otra clase&amp;nbsp;&lt;b&gt;ConexionConsolaJavaOracle&lt;/b&gt;: Que se encargará de gestionar el acceso a Oracle y obtener datos de ella.&lt;/span&gt;&lt;br /&gt;
&lt;iframe src=&quot;http://pastebin.com/embed_iframe.php?i=qX98muEp&quot; style=&quot;border: none; height: 100%; width: 100%;&quot;&gt;&amp;amp;amp;lt;p&amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/ iframe&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;
&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;
&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;br /&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/div&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;amp;amp;amp;amp;lt;/p&amp;amp;amp;amp;amp;amp;amp;gt;&amp;amp;amp;lt;/p&amp;amp;amp;gt;&lt;/iframe&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Adicional a todo esto código, tenemos que agregar nuestro &lt;b&gt;driver &lt;/b&gt;al proyecto; puesto que sin ella no podríamos hacer que la línea 14 de la clase &lt;b&gt;Conexion &lt;/b&gt;sea válida; ahora la nueva estructura de carpetas quedará así:&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-rjAYIxNdKVgatC-SHGJy1VYIx-omaotKLlizwaVBlYTcyGixq2vgd6agDXy6m_aFOni0jpepF7_-xDP_QHVzRxj8ugIptLIjdZ7qledcqwVoWyw9FEUAEI5DtyAkvfWZ-LJ5ArlocnA/s1600/driver_cargado.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;171&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-rjAYIxNdKVgatC-SHGJy1VYIx-omaotKLlizwaVBlYTcyGixq2vgd6agDXy6m_aFOni0jpepF7_-xDP_QHVzRxj8ugIptLIjdZ7qledcqwVoWyw9FEUAEI5DtyAkvfWZ-LJ5ArlocnA/s320/driver_cargado.png&quot; width=&quot;320&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;si nos percatamos de algo; utilizamos el &lt;b&gt;ojdbc6 &lt;/b&gt;y no quizá otra versión; puesto que esto depende de nuestra versión de JDK que para el caso es también la 1.6.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Ahora nos queda ejecutar nuestra clase &lt;b&gt;ConexionConsolaJavaOracle&lt;/b&gt;, y debería mostrarnos algo similar a la siguiente imagen:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif; margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-7P6InS9ROSPBFUL3dxyvIJenczknXHknkIxLEsRuPBNz1Zpuw3iPU15BQmtOpH9DOlylpYLl8USyB1eeWulA3JqJ0UIjUvn2q4sYHBXJzfSg7cxFD2SG6aMZyUeT9Xu-eaF2JiA_AE8/s1600/resultado.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;136&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-7P6InS9ROSPBFUL3dxyvIJenczknXHknkIxLEsRuPBNz1Zpuw3iPU15BQmtOpH9DOlylpYLl8USyB1eeWulA3JqJ0UIjUvn2q4sYHBXJzfSg7cxFD2SG6aMZyUeT9Xu-eaF2JiA_AE8/s320/resultado.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;Espero que haya servido de algo, cualquier duda o comentario por favor; háganla llegar que, en la brevedad del caso trataré de solucionarla.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Ahhhhhhh y por favor si el material te fue útil ayúdame&amp;nbsp;recomendando&amp;nbsp;por las redes sociales; dando &quot;Me gusta&quot; en&amp;nbsp;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&amp;nbsp;en Facebook&amp;nbsp;o &quot;+1&quot; en Google+, etc etc.&lt;/span&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&amp;nbsp;en :D.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/3442552102508401311/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/3442552102508401311?isPopup=true' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/3442552102508401311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/3442552102508401311'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/04/conexion-java-y-oracle-11g-xe.html' title='Conexión Java y Oracle 11g XE'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhE3DmZiY09aXM-bMJD_0kzrBSDjEPhDaOHTWBIVHJvA4wmFHgldjeEegJc-t78vkxkEpwSLtwZjhEQfAsfgXGXxAFRXeMBrrupTzw2JMWOW3lFwkv5lheLMKvWqZrVqfZTFILecD-GVlvI/s72-c/Sun_Oracle_logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7395253990942430692.post-7840232443717777500</id><published>2012-04-21T05:50:00.000-07:00</published><updated>2012-08-22T04:00:36.505-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Javaenaccion"/><category scheme="http://www.blogger.com/atom/ns#" term="UNSCH"/><title type='text'>Mi primera publicación</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlpjKWbChamv7C9MSMn-XGKnUE_bXUt7dNdqKDYhflJIi-YX8SbQwmZY8mDfy4Ts7Ftjh-DPVz0ImUBIKFI-NNup4Y0Mf0OATq2PZ2Vg3o3nyv8J7qptw0AIFddB6fZrTyb__46Bna8-gC/s1600/logo_portada_javaenaccion.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;237&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlpjKWbChamv7C9MSMn-XGKnUE_bXUt7dNdqKDYhflJIi-YX8SbQwmZY8mDfy4Ts7Ftjh-DPVz0ImUBIKFI-NNup4Y0Mf0OATq2PZ2Vg3o3nyv8J7qptw0AIFddB6fZrTyb__46Bna8-gC/s640/logo_portada_javaenaccion.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; color: orange; font-family: &#39;Trebuchet MS&#39;, sans-serif; font-size: large;&quot;&gt;¡¡Javaenaccion da la bienvenida!!&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;text-align: start;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;a href=&quot;https://www.facebook.com/Javaenaccion&quot; target=&quot;_blank&quot;&gt;Javaenaccion&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxIaxoHxcv1zAobI5MU27JpMpp53YkJYr5le7NvS0WzdIjJzbvYFieGzg4LE6GqE_aaGlLG2QZJlSP1usG-fxQJjKigaT32gNaCzReoibHNchOEgBUme13Ql_cYfgdgNrirJ6-mX5c5EA/s1600/logo_unsch2.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxIaxoHxcv1zAobI5MU27JpMpp53YkJYr5le7NvS0WzdIjJzbvYFieGzg4LE6GqE_aaGlLG2QZJlSP1usG-fxQJjKigaT32gNaCzReoibHNchOEgBUme13Ql_cYfgdgNrirJ6-mX5c5EA/s1600/logo_unsch2.gif&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;span style=&quot;color: #00b0f0; font-family: &#39;Trebuchet MS&#39;, sans-serif;&quot;&gt;UNIVERSIDAD NACIONAL DE SAN CRISTÓBAL DE HUAMANGA&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://javaenaccion.blogspot.com/feeds/7840232443717777500/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/7395253990942430692/7840232443717777500?isPopup=true' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7840232443717777500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7395253990942430692/posts/default/7840232443717777500'/><link rel='alternate' type='text/html' href='http://javaenaccion.blogspot.com/2012/04/mi-primera-publicacion.html' title='Mi primera publicación'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlpjKWbChamv7C9MSMn-XGKnUE_bXUt7dNdqKDYhflJIi-YX8SbQwmZY8mDfy4Ts7Ftjh-DPVz0ImUBIKFI-NNup4Y0Mf0OATq2PZ2Vg3o3nyv8J7qptw0AIFddB6fZrTyb__46Bna8-gC/s72-c/logo_portada_javaenaccion.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>