Hi,
I am working on Bee Weblogic Server 5.1. In one of the
JSP file, i am trying to import the
java file ("HelloWorld.java"), using the below syntax,
<%@ page import="HelloWorld" %>
JSP file is located at -- <<instal_dir>>/myserver/public_html
and
Java file, "HelloWorld.java" is located at -- <<instal_dir>>/myserver/servletclasses.
I am getting the below error in browser when loading the JSP file,
---------------------
D:\weblogic5.1c\myserver\classfiles\jsp_servlet\_jsp\__man.java:16: '.' expected
probably occurred due to an error in /jsp/man.jsp line 4:
<%@ page import="HelloWorld" %>
--------------------------------
Please help me in solving the above problem.
One more thing, I am getting the error, when creating the instance of any java class, using the below syntax,
---------------------
<%=new SomeJavaFile()%>
------------------------
By the way, the Java file, "SomeJavaFile.java" is located -- <<instal_dir>>/myserver/servletclasses.
But when, i am able to instantiate the frame work classes and the below coding is working fine and i am getting the proper output of the below code,
--------------------
<%=new Date()%>
----------------------------
It seems, JSP file is failing to locate the custom java classes.
Please do help me in solving the problem. I tried a lot to solve, but couldn't.
Thanks in Advance,
Narasimha.