Rob Spoor wrote:What's the error you get? Is it perhaps the varargs on line 16?
Stephan van Hulst wrote:It doesn't. Java always decides which methods to use at compile time. The method calls are hardcoded into the program. Example:
This will print "I got an object!"
Originally posted by Nishan Patel:
[QB]Hi,
First of all for Struts 2 validation your xml name must specify by your Action-validation.xml.
Every field in Xml file must with same jsp field name.
When your validation id done your Action not called so if you get contains data from Action class then make data list to global.
If this is not solve your problem then override validate method.
@Override
public void validate() {
call your method which retrieve your data.
}