Forums Register Login

class/function inside JSP

+Pie Number of slices to send: Send
Is it legal to have a Java class/ function inside a JSP?
+Pie Number of slices to send: Send
Yes, you would put the declarations inside the declaration delimiters <%! %>.

Now, as to whether it's a good idea or not is another story. I'd advise against it. The general consensus is that the less Java on a JSP, the better; none being ideal.
[ December 02, 2004: Message edited by: Bear Bibeault ]
Self destruct mode activated. Instructions for deactivation encoded in this tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 520 times.
Similar Threads
Usage of page implicit object
invoking java function with java script Onclick event
Javascript to reach inside a servlet...
A JavaBean inside a JSP function
converting servlet code into jsp
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 05:13:00.