How do you import the packages in the JSP?
Answers were Sorted based on User's Feedback
Answer / manas banerjee
<% @ page import = 'package name.class name' %>
suppose we have a package name x and we have a bean (under
the package x)class/class y then you have to write
<% @ page import = 'x.y' %>
| Is This Answer Correct ? | 35 Yes | 15 No |
Answer / ullas v
<%@ page language="java"
import="java.sql.*,
com.sixdee.dao.configurationDAO.*,
com.package.common.reports.Report,
java.util.ArrayList"
errorPage="../common/errorPage.jsp"
%>
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / winston watson
<%@page import="mypackage.*, otherpackage.MyClass"%>
With packages under WEB-INF/classes for classes and the
source in packages under src
| Is This Answer Correct ? | 13 Yes | 5 No |
Answer / abinaya
<% @ page import="java.io.*,java.sql.*,java.util.*"%>
| Is This Answer Correct ? | 7 Yes | 1 No |
Which language is used to write servlets and jsp?
how to print a string with out using out.println?
3 Answers Elementus Technologies,
how to maintain sessions in jsp?can you tellme the methods.
16 Answers IBM, Scope International, TCS,
What is context in web application?
How is jsp better than servlet technology?
Give the use of session object.
What is the use of jsp implicit objects?
When does a container initialize multiple jsp objects?
How does a jsp function?
What is the jspinit() method?
Which tag should be used to pass information from jsp to include jsp?
What is difference between sendredirect and forward?