Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create an object in my jsp page ??

843835Mar 6 2002 — edited Mar 6 2002
Hi,

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!!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2002
Added on Mar 6 2002
3 comments
327 views