Can I ask, what is the reason for avoiding the Struts tags and using the
JSTL tags? (It begs the question, what is the purpose of the struts tags?)
Wendy Smoak wrote:
On 12/9/06, Fabio Miranda Hamburger <[EMAIL PROTECTED]>
wrote:
How can I 'send' this array from fooBarStrutsAction.java, and its
method:
public ActionForward execute(...) TO a jsp file, let's say display.jsp?
and by the way, how to access that array within the JSP file.
I think I am missing a crucial concept here, thanks for clarify this.
In your action,
request.setAttribute( "myArray", myArray );
In your JSP use JSTL's <c:forEach> tag to display the values.
(The Struts <logic:iterate> tag can be used instead. While we
recommend JSTL over the equivalent Struts tags, you might want to keep
things simple at first and avoid introducing another library.)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]