Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

afficher une image d'un bean avec struts

1 réponse
Avatar
sebastien mathy
Bonjour,
J'ai un bean employe :

public class Employe {
String nom;
byte[] photo;
}

Je souhaite afficher dans une page jsp la photo de cet employe.

<bean:write name="emp" property="nom"/>
<html:img src=....

Comment afficher cette photo?
Merci

1 réponse

Avatar
Lionel
sebastien mathy wrote:
public class Employe {
String nom;
byte[] photo;
}

<html:img src=....

Comment afficher cette photo?


scr pointe vers une servlet qui écrit le byte[] sur la response.