A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Could Java class instantiate in jsp scriplet
Joined: Jan 25, 2001
Feb 07, 2001 10:48:00
can we instantiate a
class in a jsp page like
<% MyClass mc = new MyClass();
Joined: Sep 29, 2000
Feb 07, 2001 12:11:00
I don't see why not. I do it all the time and it never gives me any problem. But, it is preferrable to use JavaBeans in place of java classes,going by the MVC
I agree. Here's the link:
subject: Could Java class instantiate in jsp scriplet
which one is better to use jsp:useBean or import statement .
Error in jsp on instanciating a java class
Confusion about class creation inside a class.
Number of instances
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014