<?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-2421325542792244899</id><updated>2024-09-19T20:12:30.744+02:00</updated><category term="linux"/><category term="centos"/><category term="debian"/><category term="javascript"/><category term="html"/><category term="tomcat"/><category term="eclipse"/><category term="sts"/><category term="monitorización"/><category term="java"/><category term="css"/><category term="correo"/><category term="maven"/><category term="seguridad"/><category term="springframework"/><category term="virtual"/><category term="vmware"/><category term="dvcs"/><category term="mercurial"/><category term="iptables"/><category term="html5"/><category term="rendimiento"/><category term="json"/><category term="xml"/><title type='text'>Ayuda IT</title><subtitle type='html'>La tecnología está para ayudarte.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>116</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-8755344150153260669</id><published>2012-07-09T20:21:00.000+02:00</published><updated>2012-07-09T20:25:22.342+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>Crear un nuevo volumen logico en linux CentOS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Un volumen lógico tiene unas propiedades muy parecidas a una partición normal y corriente, pero con algunas ventajas, como la facilidad a la hora de hacer backups.&lt;br /&gt;
&lt;br /&gt;
Para crear un volumen lógico nuevo en nuestra máquina linux CentOS, lo primero que debemos hacer es comprobar si tenemos espacio disponible en alguno de nuestros grupos de volúmenes.&lt;br /&gt;
&lt;br /&gt;
Esto lo podemos hacer con el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
vgdisplay&lt;/div&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;/div&gt;
que nos mostrará los nombres de los grupos de volúmenes y el espacio disponible en cada uno de ellos.&lt;br /&gt;
&lt;br /&gt;
Para crear el volumen lógico usaremos el comando &quot;&lt;i&gt;lvcreate&lt;/i&gt;&quot;. Si, por ejemplo, queremos crear un nuevo volumen lógico que se llame &quot;&lt;i&gt;dbdata01&lt;/i&gt;&quot; usando el grupo de volúmenes &quot;&lt;i&gt;vg00&lt;/i&gt;&quot; con una capacidad de 4 Gb usaremos el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
lvcreate -n dbdata01 -L 4G vg00&lt;/div&gt;
&lt;br /&gt;
Una vez creado el nuevo volumen lógico podremos ver sus propiedades (y las de los demás volúmenes lógicos que tengamos) con el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
lvdisplay&lt;/div&gt;
&lt;br /&gt;
Ahora sólo debéis crear un sistema de ficheros sobre el nuevo volumen lógico (formatearlo con &quot;&lt;i&gt;mkfs&lt;/i&gt;&quot;) y ya podéis empezar a usarlo.&lt;br /&gt;
&lt;br /&gt;
Sencillo y útil, ¿no es así?&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/0xmd2lfqwp4?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/8755344150153260669/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/crear-un-nuevo-volumen-logico-en-linux.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8755344150153260669'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8755344150153260669'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/crear-un-nuevo-volumen-logico-en-linux.html' title='Crear un nuevo volumen logico en linux CentOS'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-3226424003424491845</id><published>2012-07-07T12:02:00.002+02:00</published><updated>2012-07-07T12:02:15.032+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="centos"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="virtual"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>Añadir un disco a un volumen logico de linux CentOS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Con el paso del tiempo la &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2011/05/instalacion-basica-de-linux-centos-en.html&quot;&gt;máquina que instalamos con linux CenOS&lt;/a&gt; se nos habra ido quedando sin espacio en disco.&lt;br /&gt;
&lt;br /&gt;
Podemos añadir un nuevo disco a nuestro sistema para conseguir más espacio.&lt;br /&gt;
&lt;br /&gt;
Usaremos este disco nuevo para extender el espacio disponible en nuestro volumen lógico.&lt;br /&gt;
&lt;br /&gt;
Una vez añadido el nuevo disco debemos crear un nuevo volumen físico sobre él.&lt;br /&gt;
&lt;br /&gt;
Para saber a qué dispositivo corresponde el nuevo disco que hemos añadido podemos usar el comando&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;

fdisk -l&lt;/div&gt;
que nos mostrará los dispositivos (discos) disponibles.&lt;br /&gt;
El que no contiene ninguna partición es nuestro nuevo disco (por ejemplo /dev/sdb)&lt;br /&gt;
&lt;br /&gt;
Para crear el nuevo volumen físico usaremos el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
pvcreate /dev/sdb &lt;/div&gt;
&lt;br /&gt;
Podemos visualizar los volumenes físicos de nuestro sistema con el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
pvdisplay&lt;/div&gt;
&lt;br /&gt;
Ahora debemos extender un grupo de volumenes usando el nuevo volumen físico que acabamos de crear.&lt;br /&gt;
&lt;br /&gt;
Para saber cuales son los grupos de volumenes disponibles en nuestro sistema usaremos el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
vgdisplay&lt;/div&gt;
&lt;br /&gt;
Si el grupo de volumenes que queremos extender es, por ejemplo, &lt;i&gt;VolGroup00&lt;/i&gt;, debemos usar el comando&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;vgextend VolGroup00 /dev/sdb&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Una vez que el grupo de volumenes tiene más espacio disponible podemos extender el volumen lógico que queramos.&lt;br /&gt;
&lt;br /&gt;
Para saber los volumenes lógicos que tenemos disponibles en nuestro sistema podemos usar el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
lvdisplay&lt;/div&gt;
&lt;br /&gt;
Si quisieramos, por ejemplo, añadir 2 Gb más de capacidad al volumen&amp;nbsp; lógico &lt;i&gt;/dev/VolGroup00/LogVol00&lt;/i&gt; tendríamos que usar el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
lvextend -L +2GB /dev/VolGroup00/LogVol00&lt;/div&gt;
&lt;br /&gt;
Por último, para que el nuevo espacio añadido al volumen lógico esté disponible para su uso debemos usar el comando &lt;i&gt;resize&lt;/i&gt; para agrandar la partición correspondiente.&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
resize2fs /dev/VolGroup00/LogVol00&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/rApw9lROzJE?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/3226424003424491845/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/anadir-un-disco-un-volumen-logico-de.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3226424003424491845'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3226424003424491845'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/anadir-un-disco-un-volumen-logico-de.html' title='Añadir un disco a un volumen logico de linux CentOS'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-7880651314085329825</id><published>2012-07-05T19:36:00.001+02:00</published><updated>2012-07-05T19:36:21.360+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="debian"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="virtual"/><category scheme="http://www.blogger.com/atom/ns#" term="vmware"/><title type='text'>Añadir un nuevo disco a nuestra máquina linux Debian</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Con el paso del tiempo la &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2011/05/instalacion-basica-de-linux-debian-en.html&quot;&gt;máquina que instalamos con linux Debian&lt;/a&gt; se nos habra ido quedando sin espacio en disco.&lt;br /&gt;
&lt;br /&gt;
Podemos añadir un nuevo disco a nuestro sistema para conseguir más espacio.&lt;br /&gt;
&lt;br /&gt;
Una vez añadido el nuevo disco debemos crear una nueva partición y formatearla antes de poder montar el disco para poder usarlo.&lt;br /&gt;
&lt;br /&gt;
Para saber a qué dispositivo corresponde el nuevo disco que hemos añadido podemos usar el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
fdisk -l&lt;/div&gt;
que nos mostrará los dispositivos (discos) disponibles.&lt;br /&gt;
El que no contiene ninguna partición es nuestro nuevo disco (por ejemplo /dev/sdb)&lt;br /&gt;
&lt;br /&gt;
Para crear las particiones usaremos el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
fdisk /dev/sdb&lt;/div&gt;
y seguimos las instrucciones.&lt;br /&gt;
&lt;br /&gt;
A continuación creamos un sistema de ficheros en la nueva partición.&lt;br /&gt;
&lt;br /&gt;
Para saber cúal es el formato de las particiones que ya tenemos en nuestro sistema podemos usar el comando&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
df -hT&lt;/div&gt;
&lt;br /&gt;
Para crear el nuevo sistema de ficheros usamos el comando&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;mkfs.ext3 /dev/sdb1&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Ahora ya podemos montar y empezar a usar el nuevo disco con el comando&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;mount /dev/sdb1 /mnt&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Si queremos que el nuevo disco se monte automáticamente al iniciar linux podemos modificar el fichero&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
/etc/fstab&lt;/div&gt;
para añadir el nuevo dispositivo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/lOVQnEgDURg?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/7880651314085329825/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/anadir-un-nuevo-disco-nuestra-maquina.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/7880651314085329825'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/7880651314085329825'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/anadir-un-nuevo-disco-nuestra-maquina.html' title='Añadir un nuevo disco a nuestra máquina linux Debian'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-8575977843317304800</id><published>2012-07-03T19:12:00.001+02:00</published><updated>2012-07-03T19:12:43.081+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="seguridad"/><title type='text'>Cambiar el puerto TCP del servicio sshd</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Podemos evitar la gran mayoría de los ataques automáticos contra nuestro servidor simplemente cambiando el puerto TCP donde corre el demonio &lt;i&gt;sshd&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Para hacer esto sólo tenemos que modificar el fichero &lt;i&gt;/etc/ssh/sshd_config&lt;/i&gt; cambiando la entrada&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;Port 22&lt;/i&gt;&lt;/div&gt;
por el número de puerto de nuestra elección, por ejemplo&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&lt;i&gt;Port 1222&lt;/i&gt;&lt;/div&gt;
&lt;br /&gt;
Después debemos reiniciar el servidor ssh para que empiece a escuchar en el nuevo puerto.&lt;br /&gt;
&lt;br /&gt;
Simple y muy efectivo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/jU2dvmQsCik?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/8575977843317304800/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/cambiar-el-puerto-tcp-del-servicio-sshd.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8575977843317304800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8575977843317304800'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/07/cambiar-el-puerto-tcp-del-servicio-sshd.html' title='Cambiar el puerto TCP del servicio sshd'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-8918115400540153420</id><published>2012-06-18T14:41:00.000+02:00</published><updated>2012-06-18T14:41:00.579+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="json"/><title type='text'>Convertir entre un objecto java y json</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
La forma más sencilla de convertir entre un objecto java y xml es mediante el uso de las librerias de &lt;a href=&quot;http://jettison.codehaus.org/&quot;&gt;Jettison&lt;/a&gt; y &lt;a href=&quot;http://xstream.codehaus.org/&quot;&gt;XStream&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;Lo único que debemos hacer es usar los métodos &lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;toXML()&lt;/span&gt;&lt;/i&gt; y &lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;toJava()&lt;/span&gt;&lt;/i&gt; de la propia clase &lt;i style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;XStream&lt;/i&gt; para convertir de objeto java a una cadena json y de una cadena json a objecto java respectivamente.&lt;br /&gt;&lt;br /&gt;Muy sencillo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/W5toR1FoJyo?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/8918115400540153420/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/06/convertir-entre-un-objecto-java-y-json.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8918115400540153420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8918115400540153420'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/06/convertir-entre-un-objecto-java-y-json.html' title='Convertir entre un objecto java y json'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-3961968051586207003</id><published>2012-06-06T20:56:00.001+02:00</published><updated>2012-06-06T20:56:37.326+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="xml"/><title type='text'>Convertir entre un objecto java y xml</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
La forma más sencilla de convertir entre un objecto java y xml es mediante el uso de la libreria &lt;a href=&quot;http://xstream.codehaus.org/&quot;&gt;XStream&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;Lo único que debemos hacer es usar los métodos &lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;toXML()&lt;/span&gt;&lt;/i&gt; y &lt;i&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;toJava()&lt;/span&gt;&lt;/i&gt; de la propia clase &lt;i style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;XStream&lt;/i&gt; para convertir de objeto java a xml y de xml a objecto java respectivamente&lt;br /&gt;&lt;br /&gt;Increiblemente simple.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/BNHtM16hwK0?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/3961968051586207003/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/06/convertir-entre-un-objecto-java-y-xml.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3961968051586207003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3961968051586207003'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/06/convertir-entre-un-objecto-java-y-xml.html' title='Convertir entre un objecto java y xml'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-3894898567338872990</id><published>2012-05-31T19:46:00.002+02:00</published><updated>2012-05-31T19:46:25.434+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="springframework"/><title type='text'>Añadir un controller de spring a nuestra aplicación web</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Un &lt;i&gt;Controller&lt;/i&gt; de &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/05/anadir-un-fichero-de-configuracion-de.html&quot;&gt;spring&lt;/a&gt; se encarga de mapear las url de nuestra web con los programas java que se ejecutan.&lt;br /&gt;&lt;br /&gt;Para añadir un controller sólo debemos añadir una clase java y marcarla con la anotación java &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;@Controller&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;A continuación podemos marcar algunos métodos de la clase java con la anotación java &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;@RequestMapping &lt;/span&gt;indicando que este método se debe ejecutar en respuesta a una petición a la url que indiquemos como valor.&lt;br /&gt;&lt;br /&gt;También podemos marcar el valor devuelto por la función con la anotación java &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;@ResponseBody&lt;/span&gt; para que el &lt;i&gt;Controller&lt;/i&gt; de spring use el valor devuelto por el método como el cuerpo de la respuesta html a la url anterior.&lt;br /&gt;&lt;br /&gt;Es muy simple.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;object width=&quot;320&quot; height=&quot;266&quot; class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://i.ytimg.com/vi/uel_xqP7Chs/0.jpg&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/uel_xqP7Chs?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; /&gt;
&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;
&lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;http://www.youtube.com/v/uel_xqP7Chs?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/3894898567338872990/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/anadir-un-controller-de-spring-nuestra.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3894898567338872990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3894898567338872990'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/anadir-un-controller-de-spring-nuestra.html' title='Añadir un controller de spring a nuestra aplicación web'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-5547970051386549247</id><published>2012-05-24T21:06:00.002+02:00</published><updated>2012-05-24T21:06:49.203+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="springframework"/><category scheme="http://www.blogger.com/atom/ns#" term="sts"/><title type='text'>Añadir un fichero de configuración de springframework en springsource tool suite</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
La forma más sencilla de añadir un fichero de configuración de &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/05/cambiar-la-localizacion-del-fichero-de.html&quot;&gt;springframework&lt;/a&gt; a nuestro proyecto usando &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/02/subir-cambios-al-repositorio-mercurial.html&quot;&gt;springsource tool suite&lt;/a&gt; es usando el diálogo que aparece cuando hacemos click en el menú &quot;&lt;i&gt;File - New - Other...&lt;/i&gt;&quot; y a continuación filtramos por &quot;&lt;i&gt;spring&lt;/i&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
Seleccionamos la opción &quot;&lt;i&gt;Spring Bean Configuration File&lt;/i&gt;&quot; y seguimos las instrucciones.&lt;br /&gt;
&lt;br /&gt;
Podremos añadir &lt;i&gt;beans&lt;/i&gt; y contextos de &lt;i&gt;spring&lt;/i&gt; de una forma muy fácil.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/68QI-dXWwGU?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/5547970051386549247/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/anadir-un-fichero-de-configuracion-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/5547970051386549247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/5547970051386549247'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/anadir-un-fichero-de-configuracion-de.html' title='Añadir un fichero de configuración de springframework en springsource tool suite'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-1893026121432600386</id><published>2012-05-19T18:58:00.000+02:00</published><updated>2012-05-19T18:58:02.068+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="springframework"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><title type='text'>Cambiar la localización del fichero de configuración de springframework</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Cuando usamos el &lt;i&gt;DispatchServlet&lt;/i&gt; de &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/05/anadir-las-librerias-de-springframework.html&quot;&gt;springframework en nuestro proyecto web&lt;/a&gt;, este, por defecto, busca un archivo de configuración en el directorio WEB-INF con el siguiente nombre:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: Arial,Helvetica,sans-serif;&quot;&gt;
&quot;nombre-del-servlet&quot;-servlet.xml&lt;/div&gt;
&lt;br /&gt;
Muchas veces nos será útil cambiar la localización y el nombre de este fichero para mantener todos los ficheros de configuración en el mismo sitio.&lt;br /&gt;
&lt;br /&gt;
Para hacer esto podemos usar el parámetro de inicio llamado &quot;&lt;i&gt;contextConfigLocation&lt;/i&gt;&quot; que indicará el nombre y localización del fichero de configuración.&lt;br /&gt;
&lt;br /&gt;
Así, nuetro fichero &lt;i&gt;web.xml&lt;/i&gt; quedaría algo como:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;web-app&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;display-name&amp;gt;Nioos Api - Login&amp;lt;/display-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;servlet&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;servlet-name&amp;gt;dispatcherServlet&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;servlet-class&amp;gt;org.springframework.web.servlet.DispatcherServlet&amp;lt;/servlet-class&amp;gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;init-param&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param-name&amp;gt;contextConfigLocation&amp;lt;/param-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param-value&amp;gt;/WEB-INF/conf/spring-config.xml&amp;lt;/param-value&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;Spring Framework context configuarion files location&amp;lt;/description&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/init-param&amp;gt;&lt;/b&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;load-on-startup&amp;gt;1&amp;lt;/load-on-startup&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/servlet&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;servlet-mapping&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;servlet-name&amp;gt;dispatcherServlet&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/servlet-mapping&amp;gt;&lt;br /&gt;&amp;lt;/web-app&amp;gt;&lt;/div&gt;
&lt;br /&gt;
Útil si nos gusta tener la cosas ordenadas.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/HL-2BcVCYfo?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/1893026121432600386/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/cambiar-la-localizacion-del-fichero-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1893026121432600386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1893026121432600386'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/cambiar-la-localizacion-del-fichero-de.html' title='Cambiar la localización del fichero de configuración de springframework'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-1897345107619470852</id><published>2012-05-18T21:14:00.002+02:00</published><updated>2012-05-18T21:14:57.705+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="maven"/><category scheme="http://www.blogger.com/atom/ns#" term="springframework"/><title type='text'>Añadir las librerias de springframework usando maven</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
La forma más sencilla de añadir las librerías de &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/05/agregar-springframework-nuestro.html&quot;&gt;spring a nuestro proyecto web&lt;/a&gt; es usando &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/02/anadir-una-dependencia-con-maven.html&quot;&gt;maven&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Lo único que hay que hacer es añadir la dependencia &quot;&lt;i&gt;spring-web&lt;/i&gt;&quot; al fichero &lt;i&gt;pom.xml&lt;/i&gt; de &lt;i&gt;maven.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
El fichero en cuestión quedará algo como:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;groupId&amp;gt;com.nioos.api&amp;lt;/groupId&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;artifactId&amp;gt;NioosApiLogin&amp;lt;/artifactId&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;packaging&amp;gt;war&amp;lt;/packaging&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;version&amp;gt;0.0.1-SNAPSHOT&amp;lt;/version&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;name&amp;gt;Nioos Login Webapp&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;url&amp;gt;https://api.nioos.com/NioosApiLogin&amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;build&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;finalName&amp;gt;NioosApiLogin&amp;lt;/finalName&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/build&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;b style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;org.springframework&amp;lt;/groupId&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;spring-webmvc&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;3.1.1.RELEASE&amp;lt;/version&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;/project&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Esta única dependencia añadirá todo el resto de librerías necesarias para nuestro proyecto.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/IVDwYoJd0aI?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/1897345107619470852/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/anadir-las-librerias-de-springframework.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1897345107619470852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1897345107619470852'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/anadir-las-librerias-de-springframework.html' title='Añadir las librerias de springframework usando maven'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-3376975256297158319</id><published>2012-05-16T20:39:00.002+02:00</published><updated>2012-05-16T20:39:34.311+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="springframework"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><title type='text'>Agregar springframework a nuestro proyecto web</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://www.springsource.org/&quot;&gt;Spring&lt;/a&gt; es un framework de desarrollo de aplicaciones java muy popular que podemos usar para desarrollar nuestras aplicaciones web.&lt;br /&gt;
&lt;br /&gt;
Para empezar a usarlo en nuestro &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/04/anadir-jquery-ui-al-proyecto-web.html&quot;&gt;proyecto web&lt;/a&gt; lo más simple es añadir uno de los &lt;i&gt;servlets&lt;/i&gt; que vienen empaquetados con este framework, en concreto, el DispatcherServlet.&lt;br /&gt;
&lt;br /&gt;
Para hacer esto sólo tenemos que modificar el fichero &lt;i&gt;web.xml&lt;/i&gt; de nuestra aplicacion web y añadir el &lt;i&gt;servlet&lt;/i&gt; y el mapeo correspondiente.&lt;br /&gt;
&lt;br /&gt;
Por ejemplo:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;web-app&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;display-name&amp;gt;Nioos Api - Login&amp;lt;/display-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;servlet&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;servlet-name&amp;gt;dispatcherServlet&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;servlet-class&amp;gt;org.springframework.web.servlet.DispatcherServlet&amp;lt;/servlet-class&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;load-on-startup&amp;gt;1&amp;lt;/load-on-startup&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/servlet&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;servlet-mapping&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;servlet-name&amp;gt;dispatcherServlet&amp;lt;/servlet-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/servlet-mapping&amp;gt;&lt;br /&gt;&amp;lt;/web-app&amp;gt;&lt;/div&gt;
&lt;br /&gt;
Fácil, ¿verdad?&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;object width=&quot;320&quot; height=&quot;266&quot; class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://i.ytimg.com/vi/25SUZ_hy864/0.jpg&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/25SUZ_hy864?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; /&gt;
&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;
&lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;http://www.youtube.com/v/25SUZ_hy864?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/3376975256297158319/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/agregar-springframework-nuestro.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3376975256297158319'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3376975256297158319'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/05/agregar-springframework-nuestro.html' title='Agregar springframework a nuestro proyecto web'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-4153454997591897647</id><published>2012-04-17T21:24:00.000+02:00</published><updated>2012-04-17T21:24:07.832+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="css"/><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Añadir jQuery UI al proyecto web</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;a href=&quot;http://jqueryui.com/&quot;&gt;jQuery UI&lt;/a&gt; es una librería muy conocida y útil que nos permite añadir de una forma muy sencilla elementos dinámicos a nuestro interface de usuario (la página web).&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;jQuery UI&lt;/i&gt; nos permitirá añadir cuadros de diálogo, selectores, desplegables, botones, animaciones, etc.&lt;br /&gt;
&lt;br /&gt;
Lo único que debemos hacer es añadir la librería javascript&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/themes/base/jquery-ui.css&quot; /&amp;gt; &lt;/div&gt;
&lt;br /&gt;
y la hoja de estilo&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/div&gt;
&lt;br /&gt;
en la cabecera de nuestra página web.&lt;br /&gt;
&lt;br /&gt;
Para poder usar esta librería también debemos &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2011/11/anadir-jquery-al-proyecto-web.html&quot;&gt;añadir la librería jQuery a nuestra página web&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
La forma más sencilla de encontrar las últimas versiones de estas librerías y hojas de estilo es visitando el &lt;a href=&quot;http://blog.jqueryui.com/&quot;&gt;blog de jQuery UI&lt;/a&gt;.&lt;br /&gt;
Allí podremos encontrar enlaces al CDN de Google, al CDN de Microsoft o descargar las últimas versiones de la librería y de las hojas de estilo (hay varias, una para cada combinación de colores).&lt;br /&gt;
&lt;br /&gt;
Muy sencillo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/nF4ZgrjGPrY?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/4153454997591897647/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/04/anadir-jquery-ui-al-proyecto-web.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/4153454997591897647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/4153454997591897647'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/04/anadir-jquery-ui-al-proyecto-web.html' title='Añadir jQuery UI al proyecto web'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-2719765674802794358</id><published>2012-04-14T19:27:00.001+02:00</published><updated>2012-04-14T19:27:13.630+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><title type='text'>Personalizar la página de error con el widget de Google</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Google proporciona un &lt;a href=&quot;http://support.google.com/webmasters/bin/answer.py?hl=es&amp;amp;answer=136085&quot;&gt;widget de busqueda especial&lt;/a&gt; que podemos usar en nuestras &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/04/personalizar-las-paginas-de-error-de.html&quot;&gt;páginas personalizadas de error&lt;/a&gt; para ofrecer a nuestros usuarios la oportunidad de buscar la página en la que realmente están interesados.&lt;br /&gt;
&lt;br /&gt;
Lo único que hay que hacer es añadir el código a nuestra página de error personalizada:&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;
  var GOOG_FIXURL_LANG = &#39;es&#39;;
  var GOOG_FIXURL_SITE = &#39;http://nioos.com&#39;
&amp;lt;/script&amp;gt;
&amp;lt;script type=&quot;text/javascript&quot;
  src=&quot;http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js&quot;&amp;gt;
&amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;br /&gt;
Donde &quot;&lt;i&gt;GOOG_FIXURL_LANG&lt;/i&gt;&quot; es el idioma en el que aparecerá diálogo de búsqueda de Google y &quot;&lt;i&gt;GOOG_FIXURL_SITE&lt;/i&gt;&quot; es la dirección de nuestro sitio web.&lt;br /&gt;
&lt;br /&gt;
Fácil, ¿verdad?&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/MsUdGwxEr7c?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/2719765674802794358/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/04/personalizar-la-pagina-de-error-con-el.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/2719765674802794358'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/2719765674802794358'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/04/personalizar-la-pagina-de-error-con-el.html' title='Personalizar la página de error con el widget de Google'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-1565413470568479283</id><published>2012-04-01T21:14:00.002+02:00</published><updated>2012-04-01T21:14:37.214+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><title type='text'>Personalizar las páginas de error de tomcat</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Personalizar las páginas de error de &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2011/09/configuracion-basica-de-tomcat.html&quot;&gt;tomcat&lt;/a&gt; es muy sencillo, lo único que hay que hacer es modificar el fichero &lt;i&gt;web.xml&lt;/i&gt; de la aplicación web y añadir los parámetros:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;b&gt;&lt;i&gt;error-page error-code&lt;/i&gt;&lt;/b&gt;: es el &lt;a href=&quot;http://es.wikipedia.org/wiki/Anexo:C%C3%B3digos_de_estado_HTTP&quot;&gt;código de error HTTP&lt;/a&gt; que queremos personalizar, por ejemplo 404 significa &quot;archivo no encontrado&quot;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;error-page location&lt;/b&gt;&lt;/i&gt;: es la página web que queremos mostrar como respuesta a este error&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;!DOCTYPE web-app PUBLIC&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&quot;-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN&quot;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&quot;http://java.sun.com/dtd/web-app_2_3.dtd&quot; &amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;web-app&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;display-name&amp;gt;Nioos Web Application&amp;lt;/display-name&amp;gt;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;filter&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filter-name&amp;gt;simplePageCachingFilter&amp;lt;/filter-name&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filter-class&amp;gt;net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter&amp;lt;/filter-class&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;init-param&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param-name&amp;gt;cacheName&amp;lt;/param-name&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param-value&amp;gt;simplePageCachingFilter&amp;lt;/param-value&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/init-param&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/filter&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;filter-mapping&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filter-name&amp;gt;simplePageCachingFilter&amp;lt;/filter-name&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/filter-mapping&amp;gt;&amp;nbsp; &lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;error-page&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;error-code&amp;gt;404&amp;lt;/error-code&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;location&amp;gt;/no-encontrado.html&amp;lt;/location&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/error-page&amp;gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;/b&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;/web-app&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Realmente muy sencillo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/cUxilRCKhP4?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/1565413470568479283/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/04/personalizar-las-paginas-de-error-de.html#comment-form' title='4 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1565413470568479283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1565413470568479283'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/04/personalizar-las-paginas-de-error-de.html' title='Personalizar las páginas de error de tomcat'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-6679000190250117404</id><published>2012-03-31T20:05:00.000+02:00</published><updated>2012-03-31T20:05:00.551+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><category scheme="http://www.blogger.com/atom/ns#" term="maven"/><title type='text'>Automatizar las fechas del archivo sitemap.xml con maven</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Es posible automatizar la fechas del &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2012/03/el-archivo-sitemapxml.html&quot;&gt;archivo sitemap.xml&lt;/a&gt; usando &lt;a href=&quot;http://ayuda-it.blogspot.com.es/2011/08/crear-un-proyecto-web-con-maven-y.html&quot;&gt;maven&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Para esto debemos crear una nueva carpeta de recursos web (por ejemplo &quot;&lt;i&gt;src/main/webresources&lt;/i&gt;&quot;) donde dejaremos una versión modificada de nuestro fichero &lt;i&gt;sitemap.xml&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Este fichero sitemap.xml ya no contendra las fechas explícitamente, sino que tendrá la variable &lt;i&gt;${timestamp}&lt;/i&gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;urlset xmlns=&quot;http://www.sitemaps.org/schemas/sitemap/0.9&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loc&amp;gt;http://nioos.com&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lastmod&amp;gt;${timestamp}&amp;lt;/lastmod&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loc&amp;gt;http://nioos.com/login.html&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lastmod&amp;gt;${timestamp}&amp;lt;/lastmod&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loc&amp;gt;http://nioos.com/sitemap.html&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lastmod&amp;gt;${timestamp}&amp;lt;/lastmod&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loc&amp;gt;http://nioos.com/politica-privacidad.html&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lastmod&amp;gt;${timestamp}&amp;lt;/lastmod&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loc&amp;gt;http://nioos.com/condiciones-servicio.html&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lastmod&amp;gt;${timestamp}&amp;lt;/lastmod&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loc&amp;gt;http://nioos.com/politica-contenido.html&amp;lt;/loc&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;lastmod&amp;gt;${timestamp}&amp;lt;/lastmod&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;/urlset&amp;gt;&lt;/span&gt; &lt;br /&gt;
&lt;br /&gt;La variable &lt;i&gt;${timestamp}&lt;/i&gt; la definiremos en el fichero de configuración de nuestro de &lt;i&gt;maven&lt;/i&gt;, al igual que nuestra nueva carpeta de recursos:&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd&quot;&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;modelVersion&amp;gt;4.0.0&amp;lt;/modelVersion&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;groupId&amp;gt;ui.nioos.com&amp;lt;/groupId&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;artifactId&amp;gt;NioosUI&amp;lt;/artifactId&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;version&amp;gt;0.0.1-SNAPSHOT&amp;lt;/version&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;packaging&amp;gt;war&amp;lt;/packaging&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;name&amp;gt;NioosUI Webapp&amp;lt;/name&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;url&amp;gt;http://www.nioos.com&amp;lt;/url&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;!--&amp;nbsp; --&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;properties&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;timestamp&amp;gt;${maven.build.timestamp}&amp;lt;/timestamp&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;maven.build.timestamp.format&amp;gt;yyyy-MM-dd&amp;lt;/maven.build.timestamp.format&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/properties&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;!--&amp;nbsp; --&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;build&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;finalName&amp;gt;NioosUI&amp;lt;/finalName&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;nbsp; --&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;plugins&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;plugin&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;maven-war-plugin&amp;lt;/artifactId&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;2.2&amp;lt;/version&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;webResources&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resource&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filtering&amp;gt;true&amp;lt;/filtering&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;directory&amp;gt;src/main/webresources&amp;lt;/directory&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/resource&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/webResources&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/plugin&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/plugins&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!--&amp;nbsp; --&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/build&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;dependencies&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;dependency&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;groupId&amp;gt;net.sf.ehcache&amp;lt;/groupId&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;ehcache-web&amp;lt;/artifactId&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;2.0.4&amp;lt;/version&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;scope&amp;gt;runtime&amp;lt;/scope&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/dependency&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;nbsp; &amp;lt;/dependencies&amp;gt;&lt;/span&gt;&lt;br style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot; /&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&amp;lt;/project&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;
Aquí hemos definido las propiedades:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;properties&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;project.build.sourceEncoding&amp;gt;UTF-8&amp;lt;/project.build.sourceEncoding&amp;gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp; &amp;lt;timestamp&amp;gt;${maven.build.timestamp}&amp;lt;/timestamp&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;maven.build.timestamp.format&amp;gt;yyyy-MM-dd&amp;lt;/maven.build.timestamp.format&amp;gt;&lt;/b&gt;&amp;lt;/properties&amp;gt;&lt;/div&gt;
&lt;br /&gt;
que posteriormente serán usadas en el nuevo fichero &lt;i&gt;sitemap.xml&lt;/i&gt;, y también hemos configurado el &lt;a href=&quot;http://maven.apache.org/plugins/maven-war-plugin/&quot;&gt;plugin war de maven&lt;/a&gt; para que actualize los ficheros de la nueva carpeta con la fecha de la última compilación:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;plugins&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;plugin&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;artifactId&amp;gt;maven-war-plugin&amp;lt;/artifactId&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;version&amp;gt;2.2&amp;lt;/version&amp;gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;configuration&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;webResources&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;resource&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;filtering&amp;gt;true&amp;lt;/filtering&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;directory&amp;gt;src/main/webresources&amp;lt;/directory&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/resource&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/webResources&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/configuration&amp;gt;&lt;/b&gt;&amp;nbsp; &amp;lt;/plugin&amp;gt;&lt;br /&gt;&amp;lt;/plugins&amp;gt;&lt;/div&gt;
&lt;br /&gt;
De esta forma cada vez que compilemos el proyecto web usando &lt;i&gt;maven&lt;/i&gt; el fichero &lt;i&gt;sitemap.xml&lt;/i&gt; estará actualizado con la fecha de la última compilación de nuestro proyecto y los buscadores podrán actualizar sus índices de búsqueda de una forma más sencilla.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/Gjm81nGI62I?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/6679000190250117404/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/03/automatizar-las-fechas-del-archivo.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/6679000190250117404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/6679000190250117404'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/03/automatizar-las-fechas-del-archivo.html' title='Automatizar las fechas del archivo sitemap.xml con maven'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-7398180823147767159</id><published>2012-03-24T10:56:00.002+01:00</published><updated>2012-03-24T10:56:49.498+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><title type='text'>El archivo sitemap.xml</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
A veces es recomendable crear un archivo &lt;i&gt;sitemap.xml&lt;/i&gt; para nuestro sitio web para que los motores de búsqueda tengan más sencillo indexar nuestras páginas web.&lt;br /&gt;
&lt;br /&gt;
Este archivo se debe dejar en el directorio raiz de nuestro sitio web.&lt;br /&gt;
&lt;br /&gt;
Su formato es muy sencillo, se encuentra definido en &lt;a href=&quot;http://www.sitemaps.org/&quot;&gt;http://www.sitemaps.org/&lt;/a&gt;, y básicamente es la lista de las páginas web de nuestro sitio web junto con la fecha de su última modificación.&lt;br /&gt;
Así los motores de búsqueda sabran cuando han cambiado nuestras páginas y volverán a indexarlas.&lt;br /&gt;
&lt;br /&gt;
Crear este fichero no requiere mucho trabajo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/XtZrElVlFBU?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/7398180823147767159/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/03/el-archivo-sitemapxml.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/7398180823147767159'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/7398180823147767159'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/03/el-archivo-sitemapxml.html' title='El archivo sitemap.xml'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-1075988216674859390</id><published>2012-03-14T21:37:00.001+01:00</published><updated>2012-03-14T21:37:12.388+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="html"/><title type='text'>El archivo robots.txt</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Si nuestro sitio web contiene páginas antiguas, o directorios que contienen imagenes sin importancia, o por cualquier razón queremos avisar a Google o cualquier otro buscador que no estamos interesados en que indexe ciertas páginas ó directorios de nuestro sitio web debemos usar un archivo &lt;i&gt;robots.txt&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Este archivo se debe dejar en el directorio raíz de nuestro sitio web.&lt;br /&gt;
&lt;br /&gt;
La sintaxis concreta de este archivo es muy sencilla y se puede encontrar en &lt;a href=&quot;http://www.robotstxt.org/&quot;&gt;http://www.robotstxt.org/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/bgAuxWuls04?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/1075988216674859390/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/03/el-archivo-robotstxt.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1075988216674859390'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/1075988216674859390'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/03/el-archivo-robotstxt.html' title='El archivo robots.txt'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-6237655130313818188</id><published>2012-02-27T19:11:00.001+01:00</published><updated>2012-03-09T10:32:04.294+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dvcs"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="mercurial"/><category scheme="http://www.blogger.com/atom/ns#" term="sts"/><title type='text'>Subir cambios al repositorio mercurial</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Una vez que hemos &lt;a href=&quot;http://ayuda-it.blogspot.com/2012/02/instalar-el-plugin-de-mercurial-en.html&quot;&gt;instalado el plugin de mercurial en springsource tool suite&lt;/a&gt; y que hemos &lt;a href=&quot;http://ayuda-it.blogspot.com/2012/02/crear-un-nuevo-repositorio-en-bitbucket.html&quot;&gt;creado un repositorio en bitbucket&lt;/a&gt;, podemos subir nuestros cambios a nuestro repositorio de mercurial.&lt;br /&gt;
&lt;br /&gt;
Si nos posicionamos en la carpeta raíz de nuestro proyecto y hacemos click con el botón derecho aparecerá el dialogo contextual de eclipse.&lt;br /&gt;
&lt;br /&gt;
Desde aquí podemos seleccionar &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Team - Share project...&lt;/span&gt;&quot; y en el diálogo seleccionamos &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Mercurial&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
Después seleccionamos &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Team - Commit...&lt;/span&gt;&quot; y seleccionamos los ficheros que queremos subir al repositorio. Debemos también poner un mensaje al &lt;i&gt;commit&lt;/i&gt;.&lt;br /&gt;
&lt;br /&gt;
Por último seleccionamos &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Team - Commit...&lt;/span&gt;&quot;, rellenamos la URL, usuario y password de nuestro repositorio de &lt;a href=&quot;https://bitbucket.org/&quot;&gt;bitbucket&lt;/a&gt; y le damos al botón de finalizar.&lt;br /&gt;
&lt;br /&gt;
Los nuevos cambios en los ficheros apareceran en nuestro repositorio y los podremos compartir con el resto de nuestro equipo.&lt;br /&gt;
&lt;br /&gt;
Sencillo, ¿verdad?&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/-pJdV4ffHyA?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&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;/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;/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;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/6237655130313818188/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/subir-cambios-al-repositorio-mercurial.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/6237655130313818188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/6237655130313818188'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/subir-cambios-al-repositorio-mercurial.html' title='Subir cambios al repositorio mercurial'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-6044414548850962345</id><published>2012-02-26T18:47:00.000+01:00</published><updated>2012-02-26T18:47:30.978+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dvcs"/><category scheme="http://www.blogger.com/atom/ns#" term="mercurial"/><title type='text'>Crear un nuevo repositorio en bitbucket</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Una vez nos hemos abierto una cuenta en &lt;a href=&quot;https://bitbucket.org/&quot;&gt;bitbucket&lt;/a&gt;, para crear un nuevo repositorio lo único que debemos hacer es ir a &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Repositories - create repository&lt;/span&gt;&quot; y rellenar el formulario que se nos muestra.&lt;br /&gt;
&lt;br /&gt;
Realmente fácil.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;object width=&quot;320&quot; height=&quot;266&quot; class=&quot;BLOGGER-youtube-video&quot; classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0&quot; data-thumbnail-src=&quot;http://i.ytimg.com/vi/jyB7_4dHY1U/0.jpg&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/jyB7_4dHY1U?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; /&gt;
&lt;param name=&quot;bgcolor&quot; value=&quot;#FFFFFF&quot; /&gt;
&lt;embed width=&quot;320&quot; height=&quot;266&quot;  src=&quot;http://www.youtube.com/v/jyB7_4dHY1U?version=3&amp;f=user_uploads&amp;c=google-webdrive-0&amp;app=youtube_gdata&quot; type=&quot;application/x-shockwave-flash&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/6044414548850962345/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/crear-un-nuevo-repositorio-en-bitbucket.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/6044414548850962345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/6044414548850962345'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/crear-un-nuevo-repositorio-en-bitbucket.html' title='Crear un nuevo repositorio en bitbucket'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-3644825777716401852</id><published>2012-02-25T09:48:00.002+01:00</published><updated>2012-02-26T18:38:34.215+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dvcs"/><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="mercurial"/><category scheme="http://www.blogger.com/atom/ns#" term="sts"/><title type='text'>Instalar el plugin de mercurial en springsource tool suite</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
El plugin de &lt;a href=&quot;http://ayuda-it.blogspot.com/2012/02/instalar-el-control-de-versiones.html&quot;&gt;mercurial&lt;/a&gt; no está disponible directamente como una extensión de &lt;a href=&quot;http://ayuda-it.blogspot.com/2011/08/instalar-springsource-tool-suite.html&quot;&gt;SpringSource Tool Suite&lt;/a&gt;, por lo que se debe instalar a traves del &lt;a href=&quot;http://ayuda-it.blogspot.com/2012/02/instalar-el-eclipse-marketplace-client.html&quot;&gt;eclipse marketplace&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Para hacer esto debemos ir al menú &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Help&lt;/span&gt; - &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Eclipse Marketplace...&lt;/span&gt;&quot; y allí buscar &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;mercurial&lt;/span&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
Una vez localizado le damos al botón &quot;Install&quot; y el plugin se instalará.&lt;br /&gt;
&lt;br /&gt;
Es muy sencillo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/CIj8W6KTDXM?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/3644825777716401852/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/instalar-el-plugin-de-mercurial-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3644825777716401852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3644825777716401852'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/instalar-el-plugin-de-mercurial-en.html' title='Instalar el plugin de mercurial en springsource tool suite'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-2200165282809875696</id><published>2012-02-24T20:32:00.003+01:00</published><updated>2012-02-24T20:32:25.651+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="eclipse"/><category scheme="http://www.blogger.com/atom/ns#" term="sts"/><title type='text'>Instalar el eclipse marketplace client en springsource tool suite</title><content type='html'>A veces tendremos que instalar un plugin de &lt;a href=&quot;http://www.eclipse.org/&quot;&gt;eclipse&lt;/a&gt; en nuestra instalación de &lt;a href=&quot;http://ayuda-it.blogspot.com/2011/08/instalar-springsource-tool-suite.html&quot;&gt;SpringSource Tool Suite&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Si el plugin que queremos instalar no está disponible como una extensión de &lt;i&gt;SpringSource Tool Suite&lt;/i&gt; entonces lo más cómodo es usar el eclipse marketplace client para instalarlo.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Eclipse marketplace client&lt;/i&gt; es un módulo de &lt;i&gt;eclipse&lt;/i&gt; que podemos instalar directamente en &lt;i&gt;STS&lt;/i&gt; desde &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Help&lt;/span&gt; - &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Install New Software...&lt;/span&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
Seleccionamos &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Indigo&lt;/span&gt;&quot; en &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;Work with...&lt;/span&gt;&quot; y después podemos encontrar el marketplace client en el apartado &quot;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;General Purpose Tools&lt;/span&gt;&quot;.&lt;br /&gt;
&lt;br /&gt;
Es muy fácil.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/R8Fu0bNv2KM?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/2200165282809875696/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/instalar-el-eclipse-marketplace-client.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/2200165282809875696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/2200165282809875696'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/instalar-el-eclipse-marketplace-client.html' title='Instalar el eclipse marketplace client en springsource tool suite'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-3725452749430396402</id><published>2012-02-23T23:16:00.001+01:00</published><updated>2012-02-24T20:18:20.179+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="dvcs"/><category scheme="http://www.blogger.com/atom/ns#" term="mercurial"/><title type='text'>Instalar el control de versiones mercurial</title><content type='html'>A la hora de desarrollar es importante tener un sistema de control de versiones de nuestro codigo.&lt;br /&gt;
&lt;br /&gt;
Para esto podemos usar un sistema de control de versiones distribuido como es &lt;a href=&quot;http://mercurial.selenic.com/&quot;&gt;mercurial&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
Lo podemos descargar desde la página &lt;a href=&quot;http://mercurial.selenic.com/downloads/&quot;&gt;http://mercurial.selenic.com/downloads/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Instalarlo es muy sencillo, basta con ejecutar el programa.&lt;br /&gt;
&lt;br /&gt;
Después podemos registrarnos en &lt;a href=&quot;https://bitbucket.org/&quot;&gt;Bitbucket&lt;/a&gt;, un servicio de internet que nos permitirá, de forma gratuita, alojar nuestro código en sus servidores usando mercurial.&lt;br /&gt;
El código alojado en este servidor puede ser privado o público y accesible a todo el mundo.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/OIhVXBZxWcI?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/3725452749430396402/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/instalar-el-control-de-versiones.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3725452749430396402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/3725452749430396402'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/instalar-el-control-de-versiones.html' title='Instalar el control de versiones mercurial'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-7690474976261545961</id><published>2012-02-21T22:28:00.000+01:00</published><updated>2012-02-21T22:28:01.949+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><title type='text'>Usar el api de youtube con jquery</title><content type='html'>Al igual que ya hemos hecho con el &lt;a href=&quot;http://ayuda-it.blogspot.com/2011/11/usar-el-api-de-twitter-con-jquery.html&quot;&gt;api de twitter&lt;/a&gt;, es posible usar &lt;a href=&quot;http://code.google.com/intl/en/apis/youtube/2.0/reference.html&quot;&gt;el api de youtube&lt;/a&gt; junto con &lt;a href=&quot;http://ayuda-it.blogspot.com/2011/11/anadir-jquery-al-proyecto-web.html&quot;&gt;jquery&lt;/a&gt;, en concreto con sus potentes &lt;a href=&quot;http://api.jquery.com/category/ajax/&quot;&gt;capacidades ajax&lt;/a&gt;, para mostrar los videos próximos a nuestra zona de &lt;a href=&quot;http://ayuda-it.blogspot.com/2011/09/mostrar-mas-noticias-en-el-mapa.html&quot;&gt;busqueda sobre el mapa&lt;/a&gt; de nuestro sitio web.&lt;br /&gt;
&lt;br /&gt;
El uso de ajax con jquery es muy simple como vamos a ver con la siguiente función:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
function buscarYouTube(distancia, lat, lng) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var youTubeUrl = &quot;https://gdata.youtube.com/feeds/api/videos?alt=jsonc&amp;amp;v=2&amp;amp;max-results=50&amp;amp;orderby=published&amp;amp;location=&quot; + lat + &quot;,&quot; + lng + &quot;&amp;amp;location-radius=&quot; + distancia + &quot;m&quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $.ajax({&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; url: youTubeUrl,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; cache: false,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; dataType: &quot;jsonp&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; beforeSend: mostrarBuscando(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; complete: ocultarBuscando(),&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; success: function(data) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (data) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var innerData = data.data;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (innerData) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var items = innerData.items;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (items) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var len = items.length;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (var i = 0; i &amp;lt; len; i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; var item = items[i];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if (item) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; parsearYouTubeItem(item);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; error: function(jqXHR, textStatus, errorThrown) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //Tracking error youTube&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; _gaq.push([&#39;_trackEvent&#39;, &#39;Error&#39;, &#39;youTubeText&#39;, textStatus]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; _gaq.push([&#39;_trackEvent&#39;, &#39;Error&#39;, &#39;youTubeError&#39;, errorThrown]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;}&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
En primer lugar construimos la URL de búsqueda en youtube con los 
parámetros que queremos, en este caso, la latitud, la longitud, y el 
radio de búsqueda (en metros).&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
var youTubeUrl = 
&quot;https://gdata.youtube.com/feeds/api/videos?alt=jsonc&amp;amp;v=2&amp;amp;max-results=50&amp;amp;orderby=published&amp;amp;location=&quot;
 + lat + &quot;,&quot; + lng + &quot;&amp;amp;location-radius=&quot; + distancia + &quot;m&quot;;&lt;/div&gt;
&lt;br /&gt;
El resto ya sabemos como hacerlo.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hay una pequeña demo online en &lt;a href=&quot;http://www.nioos.com/&quot;&gt;http://www.nioos.com&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/LTh88BOcTEU?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/7690474976261545961/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/usar-el-api-de-youtube-con-jquery.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/7690474976261545961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/7690474976261545961'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/usar-el-api-de-youtube-con-jquery.html' title='Usar el api de youtube con jquery'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-4788955880762581514</id><published>2012-02-18T20:49:00.001+01:00</published><updated>2012-02-18T20:49:11.065+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><title type='text'>Configuración básica de ehcache en tomcat</title><content type='html'>Después de &lt;a href=&quot;http://ayuda-it.blogspot.com/2012/02/anadir-un-filtro-nuestra-aplicacion-web.html&quot;&gt;añadir el filtro ehcache a nuestra aplicación web&lt;/a&gt; debemos configurarlo.&lt;br /&gt;
&lt;br /&gt;
Para hacerlo debemos añadir un fichero que se llame &quot;&lt;i&gt;ehcache.xml&lt;/i&gt;&quot; a nuestra aplicación web.&lt;br /&gt;
Este fichero debe estar accesible a en el &lt;i&gt;classpath&lt;/i&gt; de la aplicación web.&lt;br /&gt;
&lt;br /&gt;
Este fichero &quot;&lt;i&gt;ehcache.xml&lt;/i&gt;&quot; tendra un contenido parecido al siguiente:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;&lt;br /&gt;&amp;lt;ehcache xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;http://ehcache.org/ehcache.xsd&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;diskStore path=&quot;java.io.tmpdir&quot;/&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;defaultCache&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxElementsInMemory=&quot;20&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eternal=&quot;false&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timeToIdleSeconds=&quot;60&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timeToLiveSeconds=&quot;3600&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; overflowToDisk=&quot;true&quot;&lt;br /&gt;&amp;nbsp; /&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;!-- Page and Page Fragment Caches --&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;cache name=&quot;simplePageCachingFilter&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; maxElementsInMemory=&quot;20&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eternal=&quot;false&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timeToIdleSeconds=&quot;3600&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; timeToLiveSeconds=&quot;86400&quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; overflowToDisk=&quot;true&quot;&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/cache&amp;gt;&lt;br /&gt;&amp;lt;/ehcache&amp;gt;&lt;/div&gt;
&lt;br /&gt;
El elemento &lt;i&gt;diskStore&lt;/i&gt; indica el directorio donde se almacenarán los ficheros creados por la cache cuando sea necesario.&lt;br /&gt;
&lt;br /&gt;
El elemento &lt;i&gt;defaultCache&lt;/i&gt; contiene la configuración de la cache por defecto.&lt;br /&gt;
&lt;br /&gt;
El elemento &lt;i&gt;cache&lt;/i&gt; es la configuración de cada cache en concreto.&lt;br /&gt;
El valor del parámetro &lt;i&gt;name&lt;/i&gt; debe coincidir con el valor del parámetro &lt;i&gt;cacheName&lt;/i&gt; del filtro previamente añadido.&lt;br /&gt;
El valor del parámetro &lt;i&gt;maxElementsInMemory&lt;/i&gt; indica el máximo número de objectos almacenados en memoria.&lt;br /&gt;
El valor del parámetro &lt;i&gt;timeToIdleSeconds&lt;/i&gt; indica el número de segundos que deben pasar desde la última vez que se accede a un objecto concreto en la cache para que ese objecto sea borrado de la cache.&lt;br /&gt;
El valor del parámetro &lt;i&gt;timeToLiveSeconds&lt;/i&gt; indica el número de segundos
 que deben pasar para que ese objecto sea borrado de la cache, no importa si se ha accedido recientemente al objeto en cache.&lt;br /&gt;
El parámetro &lt;i&gt;overflowToDisk&lt;/i&gt; indica si, cuando se supera el número máximo de objectos almacenados en memoria, &lt;i&gt;maxElementsInMemory&lt;/i&gt;, los objectos más antiguos se deben almacenar en disco.&lt;br /&gt;
&lt;br /&gt;
No es dificil y las ventajas son muchas.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/sBOau0dlElk?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/4788955880762581514/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/configuracion-basica-de-ehcache-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/4788955880762581514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/4788955880762581514'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/configuracion-basica-de-ehcache-en.html' title='Configuración básica de ehcache en tomcat'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2421325542792244899.post-8332611665328671703</id><published>2012-02-17T20:37:00.001+01:00</published><updated>2012-02-17T20:37:04.906+01:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="tomcat"/><title type='text'>Añadir un filtro a nuestra aplicación web en tomcat</title><content type='html'>Para añadir un filtro a nuestra aplicación web en &lt;a href=&quot;http://ayuda-it.blogspot.com/2011/12/borrar-los-ficheros-logs-antiguos-de.html&quot;&gt;tomcat&lt;/a&gt; debemos editar el fichero &lt;i&gt;web.xml&lt;/i&gt; que se encuentra en el directorio &lt;i&gt;WEB-INF&lt;/i&gt; de nuestra aplicación web.&lt;br /&gt;
&lt;br /&gt;
Por ejemplo, si queremos añadir un filtro que comprima todas las páginas que servimos (aumentando de esta forma el ancho de banda disponible para servir a un mayor número de usuarios), debemos añadir lo siguiente al fichero &lt;i&gt;web.xml&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;
&amp;lt;filter&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;filter-name&amp;gt;simplePageCachingFilter&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;filter-class&amp;gt;net.sf.ehcache.constructs.web.filter.SimplePageCachingFilter&amp;lt;/filter-class&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;init-param&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param-name&amp;gt;cacheName&amp;lt;/param-name&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;param-value&amp;gt;simplePageCachingFilter&amp;lt;/param-value&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/init-param&amp;gt;&lt;br /&gt;&amp;lt;/filter&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;filter-mapping&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;filter-name&amp;gt;simplePageCachingFilter&amp;lt;/filter-name&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;url-pattern&amp;gt;/*&amp;lt;/url-pattern&amp;gt;&lt;br /&gt;&amp;lt;/filter-mapping&amp;gt;&lt;/div&gt;
&lt;br /&gt;
La etiqueta &quot;&lt;i&gt;filter&lt;/i&gt;&quot; contiene el nombre del filtro (&lt;i&gt;filter-name&lt;/i&gt;) que debe coincidir con el nombre que aparece en &quot;&lt;i&gt;filter-mapping&lt;/i&gt;&quot;.&lt;br /&gt;
La etiqueta &quot;&lt;i&gt;filter&lt;/i&gt;&quot; también contiene la clase Java que implementa el filtro, esta clase debe estar disponible en el classpath de nuestra aplicación web (como una librería en el directorio &quot;&lt;i&gt;WEB-INF/lib&lt;/i&gt;&quot; o como una clase compilada en el directorio &quot;&lt;i&gt;WEB-INF/classes&lt;/i&gt;&quot;, si se está &lt;a href=&quot;http://ayuda-it.blogspot.com/2012/02/anadir-una-dependencia-con-maven.html&quot;&gt;usando maven&lt;/a&gt; las librerías de las depedencias se copian al primer directorio automáticamente).&lt;br /&gt;
Por último, dentro de esta etiqueta &quot;filter&quot; se puede añadir los parámetros de inicio &quot;&lt;i&gt;init-param&lt;/i&gt;&quot; necesarios para configurar el filtro.&lt;br /&gt;
&lt;br /&gt;
La etiqueta &quot;&lt;i&gt;filter-mapping&lt;/i&gt;&quot;, además del nombre del filtro (&lt;i&gt;filter-name&lt;/i&gt;) tiene el parámetro &quot;&lt;i&gt;url-pattern&lt;/i&gt;&quot;, que indica sobre qué urls se aplicará el filtro (en el ejemplo &quot;&lt;i&gt;/*&lt;/i&gt;&quot; significa todas las urls).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&#39;allowfullscreen&#39; webkitallowfullscreen=&#39;webkitallowfullscreen&#39; mozallowfullscreen=&#39;mozallowfullscreen&#39; width=&#39;320&#39; height=&#39;266&#39; src=&#39;https://www.youtube.com/embed/bajNe-B2cRQ?feature=player_embedded&#39; frameborder=&#39;0&#39;&gt;&lt;/iframe&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ayuda-it.blogspot.com/feeds/8332611665328671703/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/anadir-un-filtro-nuestra-aplicacion-web.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8332611665328671703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2421325542792244899/posts/default/8332611665328671703'/><link rel='alternate' type='text/html' href='http://ayuda-it.blogspot.com/2012/02/anadir-un-filtro-nuestra-aplicacion-web.html' title='Añadir un filtro a nuestra aplicación web en tomcat'/><author><name>Hipolito Jimenez</name><uri>http://www.blogger.com/profile/05301776656458210111</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhtj2GNdQe0mqz1B_NCNQpf8ZTzaOnivN93BBSZChD4KpwGDmkZD2rgZrEFu3V0_Hh73bMHrKB3iSHfI2rMcLlYS0z9GkQBPVmGKIipv-dhsq35tF08mEEPt6TENb8IvA/s113/Hipolito-Jimenez.jpg'/></author><thr:total>0</thr:total></entry></feed>