j'ai une petite app, je souhaiterais afficher dans ma page client les détails sur un client.
la classe action :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
....
  public ActionForward edit(ActionMapping mapping,
            ActionForm form,
            HttpServletRequest request,
            HttpServletResponse response) throws java.lang.Exception, HibernateException{
        client = (ClientBean) HibernateSQL.Select();       
request.setAttribute(mapping.getAttribute(),client);
        return mapping.findForward("client");
    }
la methode de classe HibernateSQL.Select() renvoie un bean client ensuite je la passe en paramètre à ma requête.

la JSP
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
....
 <bean:define id="client" name="client" toScope="session"/>
    <body>
        <html:form action="/client">
            <table border="0">
                <tbody>
                    <tr>
                        <th><label for="numero">Numéro:</label></th>
                        <td><html:text name="client" property="numero" readonly="yes"/></td>
                    </tr>
                    <tr>
...
le message d'erreur : javax.servlet.jsp.JspException: Cannot find bean client in any scope
j'ai certainement omis quelque chose!
quelqu'un peut y jeter un coup d'oeil?