tags:

views:

350

answers:

2

i want to use the Java program in JSP.

i have created java program Helloworld under package sam.jni

then in JSP program i called the Java class file using

<@ page import="sam.jni.Helloworld">

after deploying the JSP file i am getting unable to compile class for JSP error

where am i doing wrong ?

A: 

Restart your context. May be other part of jsp page has errors.

adatapost
+2  A: 

Shouldn't that be

<%@ page import="sam.jni.Helloworld" %>

?

Kevin Jones
A nice catch. +1
Adeel Ansari