How to create an object in my jsp page ??
843835Mar 6 2002 — edited Mar 6 2002Hi,
I wonder how I could in my jsp page create an object of a java class that I have written in a separate file then the jsp file. I thought that �include file� should solve my problem and let me create the object. I have also tried to copy the class from the file to my jsp page but when I then try to create the object I still get the error that it could not find the class in the jsp file.
Here is part of my code to get an idea of what I have done so fare:
In the jsp file I try to create a new object:
<%
�.
String data = �Hello�;
Sendsms sms = new Sendsms(data);
�..
%>
Is this possible and I just doing some mistake otherwise please tell me how to go further.
/Thanks in advance!!