I am trying to seperate the getters/setters from an ActionSupport class for reuse in other Action Classes. I dont seem to be able to retrieve the values set in the Action class in the view. Im sure I am missing something silly.
Below is a simple example of what I am trying to do. If anyone could point out where I might be going wrong it would be greatly appreciated.
View Page (testaction.jsp):
The results are in the screen shot.
Why can I not retrieve "Hello World" that is set in my Action class?
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
This worked but now in my view page both <s:property value="FirstName" /> AND <s:property value="firstName" /> work to retrieve the value "Hello World" Shouldnt only "firstName" retrieve the value? I dont understand I thought Java was case sensitive.
Here is the altered code from my edited example. Can anyone tell me wy both firstName and FirstName retrieve the value?
Both property values return "Hello World" Shouldnt one or the other return the value but not both?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Can getters/setters be seperated from the ActionSupport class with a bean?