Brij Naald wrote:
Hi,
I want to list all the files in a directory.
How do I start this?
I assume I have to make an action:
<action path="/List"
type="app.ListAction"
name="evaluatieForm">
<forward name="success" path="/pages/ListFiles.jsp"/>
</action>
The action then creates an array of Strings (so String[]).
and puts it in the request (so
request.setAttribute("files",stringArray);)
Then I have to make the jsp-page which uses the strings to display the
page.
Is this the correct way?
How can I access the array of strings from the Jsp-page?
<logic: iterate id = "sArray" property = "stringArray" name = "bean">
<bean:write name = "sArray"/>
</logic:iterate>
Thanks a lot!
_________________________________________________________________
Heb je MSN WebMessenger al ontdekt?
http://webmessenger.msn.com/?mkt=nl-be
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]