Jason Carreira wrote:
Attached is a zip file with TestAction.java, TestAction.properties, a couple jsp files, and xwork.xml which should show what I'm doing and the problem I'm having. You can just unzip the file in your webapp dir and fill in the WEB-INF/lib directory with the appropriate WW2 libs. Notice that the strings are just not being pulled from the properties file. And how exactly do you add an Action to the Value Stack? Say I want to get a List to use in a select tag. If I had a TestAction.getFooList(), I need the Action on the VS to be able to call getFooList, but the TestAction is not automatically loaded into the VS as I'd expect if I specify it in the <ww:form> tag. This in turn is related to my previous question about accessing an Action's mutator. For example, suppose I have to pass a value to this method (e.g. TestAction.getFooList(session.get("Foo"));). I don't seem to be able to call any methods since the Action doesn't appear to be in the VS. Calling <ww:action> seems to work, but then if there's an error on the page and it gets bounced back to the input page, the action is not called again... Sorry about the newbie questions, but I must be missing something fundamental here... Thanks, -Mark |
testapp.zip
Description: Binary data