struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Billy Ng" <kwo...@earthlink.net>
Subject [off topic] how to define array to jsp
Date Wed, 10 Jul 2002 22:59:48 GMT
I have a array that needs to pass from the Action page to jsp. e.g.

Agent[] agents = getAgents();
session.setAttibute("agents", agent);


In jsp, I try to do this, but it doesn't work

<jsp:useBean id="agents" scope="session" class="[com.myApp.Agent" />

Would anybody please tell how to define the array object in jsp, thanks!

Billt Ng


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message