This chapter is from the book
Q&A
A JSP declaration element is good for declaring data and methodsanything else?
Yes, as you'll see in Day 8, you can also declare Java classes in a JSP declaration element.
Can a method return multiple values?
Some languages like Perl let you return multiple values from a method. In Java, you can do that by returning an array, or by creating a custom object that holds the data values you want, but you can't return multiple single values from a method in Java.