tags:

views:

121

answers:

2

i am using netbeans6.7 ide i have created a jsp file usermanagement.jsp in jspfiles folder in web folder

and created a java package com.test.test1 then created a java class in temp in this java package

now i want to import this java package in usermanagement.jsp i have written <%@ page import=''%> but my package is not getting populated there

what should i do?

do i have to write something in web.xml?

+1  A: 

The 'page import' section get populated automatically the moment you use a class.

The way to get it to auto-populate the 'import' directive is to start typing the fully qualified name of your class and hitting Ctrl-Space
e.g Try typing com.test.test1.Temp followed by Ctrl-Space.

Ryan Fernandes
A: 

Netbeans should know where to look for class files.Right click on your project and select 'properties' and there should be an option to select the folder where you have the class files.(Don't remember right now)

krishna