Passer une variable du JSP à JAVA
Bonjour,
j'ai une page page1.jsp
Code:
1 2 3 4 5 6 7
|
...................
...............
<%String champ=(String) cols.get(j) ;%>//champ est de type String
<a href="ressources.jsp<%=champ%></a>
..............
................... |
et j'ai une classe Snmpwalk.java dont je peux instancier un objet comme suivant
Code:
1 2
|
Snmpwalk wk=new Snmpwalk("127.0.0.1"); //elle prend en paramètre une adresse ip de type String |
Maquestion est comment je peux passer la variable champ du page1.jsp pour sera entrée en paramètre à ma classe Snmpwalk.java
merci