Web Service - "javax.xml.bind.JAXBElement@"
Bonjour,
J'ai un soucis avec l'utilisation des données issue de mon web service...
J'arrive à récupérer l'ensemble de mes valeurs ceci dit, l'affichage ne va pas...
Les valeur entière s'affiche correctement dans ma JSP, les chaines de caractère non... Cela affiche : "javax.xml.bind.JAXBElement@" et un chiffre...
Savez-vous me dire comment afficher ça correctement ? Je ne trouve pas de solution sur internet :?
Mon code Jsp est le suivant :
Code:
1 2 3 4 5
|
// String
<td><c:out value="${p.getBandwidth()}"/></td>
//Int
<td><c:out value="${p.getPrix()}"/></td> |
Ma classe Product:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
@XmlElementRef(name = "bandwidth", namespace = "http://schemas.datacontract.org/2004/07/BU", type = JAXBElement.class, required = false)
protected JAXBElement<String> bandwidth;
protected Integer prix;
public JAXBElement<String> getBandwidth() {
return bandwidth;
}
public void setBandwidth(JAXBElement<String> value) {
this.bandwidth = ((JAXBElement<String> ) value);
}
public Integer getPrix() {
return prix;
public void setPrix(Integer value) {
this.prix = value;
}
} |
Merci pour votre précieuse aide..
Arsenik