Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/01/2007, 12:17
congrio7
 
Fecha de Ingreso: noviembre-2005
Mensajes: 172
Antigüedad: 18 años, 5 meses
Puntos: 1
cuestion sobre XML+JSP

Tengo un .xml en WEB-INF:


<gestion>

<OBJECT-TYPE valor="1.3.6.1.2.1.1.1.0">
<Name>sysDescr</Name>
<Syntax>DisplayString (SIZE (0..255))</Syntax>
<Access>read-only</Access>
<Status>mandatory</Status>
<Description>A textual description of the entity. This value should include the full name and version identification of the system's hardware type, software operating-system, and networking software. It is mandatory that this only contain printable ASCII characters.</Description>
</OBJECT-TYPE>
- <OBJECT-TYPE valor="1.3.6.1.2.1.1.2.0">
<Name>sysObjectID</Name>
<Syntax>DisplayString (SIZE (
..
..
..



Y quiero que en un .jsp que tengo, partiendo de un valor ("1.3...."), obtener el <name> de ese OBJECT-TYPE y guardarlo en una variable Java <% .... String pepillo = "ese valor" ..... %>.

¿Lo primero se tiene que hacer partiendo de xtags ? , ¿y lo segundo? (a lo mejor lo 2º es algo demasiado simple y por eso no lo veo)





Espero que alguien me eche un cable, gracias :)