Wondering if anyone could help with this 'simple' Struts2
test I'm trying to get to work.
Quite simply trying to click on the action in index.jsp, which runs the ExampleAction, gets the Employee bean and populates 'name' with "Homer Simpson", then opens the example3.jsp and displays the property.
Simple!
No, the value is there in the bean, but the page comes back blank and the 'name' property set back to Null.
I'm trying to do this with Annotations using
Struts 2.1.6, but the examples and tutorials on the Internet are to say 'dodgy', many errors and missing bits. I seems to have to try to mash them together to fill in teh blanks.
I must be missing something stupid, but I am getting knowhere with this.
Is it simply that the Bean (Employee) is not stored in my session, because my understanding was that Struts would atomatically do this (again, based on a tutorial).
Thanks in advance.
Index.jsp
example3.jsp
ExampleAction.class
Employee.class
web.xml
struts.xml