I'm playing a bit with Webwork, trying to figure out how to do stuff.
I tried to modify the iterator example provided with webwork but I seem
to have forgotten a thing or two about packages, actions and possibly
even more stuff...
In the file d:\testapp\src\resources\web\test.jsp I have the following
code (and more..):
Array as iterator:<br>
<webwork:action name="'action.ProjectList'" id="projekt">
<iterator:subset source="projectArray" start="1">
<webwork:iterator>
<webwork:property/><br>
</webwork:iterator>
</iterator:subset>
</webwork:action>
The file d:\testapp\src\resources\web\action\ProjectList.java has this
snippet of code (and more)
package action;
import webwork.action.ActionSupport;
import java.util.ArrayList;
import java.util.List;
--
public class ProjectList
extends ActionSupport
{......
public Object[] getProjectArray()
{
return projects.toArray();
}
}
When I try do run test.jsp (in Jetty+JBoss by the way) I get:
"Action 'action.ProjectList' not found" even though I have
d:\testapp\src\resources\web in my classpath..
* Have I placed the files in weird directories?
* Have I used the package feature incorrectly?
* Is my webwork syntax incorrect?
* Or, is all of the above WRONG?
The examples provided with Webwork are excellent but I feel that it is
somewhat difficult to backtrace and figure out how the whole thing is
done...
Thanks /Fredrik
_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user