Grokbase
Topics Posts Groups | in
x
[ help ]

(khamr...@yahoo.fr)

Profile | Posts (1)

User Information

Display Name:
Partial Email Address:khamr...@yahoo.fr
Posts:
1 total
1 in struts-user@jakarta.apache.org

1 Most Recent Post

1) Logic:iterate
| +1 vote
Hellow all: in my LogonAction i have this code : DataAccess da = if (da == null) { da = new...
struts-user@jakarta.apache.org
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
Hellow all:
in my LogonAction i have this code :
DataAccess da =
(DataAccess)request.getSession().getAttribute("DATAACCESS");
if (da == null) {
da = new DataAccess();
request.getSession().setAttribute("DATAACCESS", da);
}
Vector vecteur = da.recupererNomChu();
request.setAttribute("CHUS", vecteur);

I want to post the contents of the vector in my
listchu.jsp page so I put:
<logic:iterate id="mesElements" name="CHUS" >
  <html:link  forward="contenu" paramId="nom"
paramName="mesElements">
      <bean:write name="mesElements" />
  </html:link>
  <br>
</logic:iterate>
But it gives me the following error:
javax.servlet.ServletException: Cannot find bean CHUS
in scope null
Cordiallement .

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com

--
To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>

spacer
Profile | Posts (1)