Hi Everyone,
I am still trying to get a grip of writing JSP pages and have a couple of simple questions:
From what I have read it is possible to include any evaluator normally found in Java within a jsp expression.
e.g.: <%= 2 + 8 %>
I figure that this should evaluate to 10.
If I am correct then I also guess that the result 10 is actually converted to a string and then written to the output (web page presumably).
Now if I am correct so far is it viable to do the following?
e.g.: <%= 2 + beanName.getBeanProperty() %>
And if the bean property happens to be an integer value of 8, then again 10 will be output onto the web page.
If anybody could let me know if I am on the right track or not it will be greatly appreciated.
Thanks
Regards
David