How do you import the packages in the JSP?

Answers were Sorted based on User's Feedback



How do you import the packages in the JSP?..

Answer / archana

<%@page import="java.sql.*,java.io.*"%>

Is This Answer Correct ?    47 Yes 4 No

How do you import the packages in the JSP?..

Answer / satish

<% @ page import = 'org.com.className' %>

Is This Answer Correct ?    51 Yes 16 No

How do you import the packages in the JSP?..

Answer / kiran

<%@ page import="java.lan.*"%>

Is This Answer Correct ?    35 Yes 7 No

How do you import the packages in the JSP?..

Answer / archana

<%@page import="java.sql.*,java.io.*"%>

Is This Answer Correct ?    31 Yes 5 No

How do you import the packages in the JSP?..

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

How do you import the packages in the JSP?..

Answer / samera

<%@ page import="java.lan.*"%>

Is This Answer Correct ?    17 Yes 3 No

How do you import the packages in the JSP?..

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

How do you import the packages in the JSP?..

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

How do you import the packages in the JSP?..

Answer / sietvicky

<% @ page import = 'org.com.className' %>

Is This Answer Correct ?    28 Yes 21 No

How do you import the packages in the JSP?..

Answer / abinaya

<% @ page import="java.io.*,java.sql.*,java.util.*"%>

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More JSP Interview Questions

Can we use javascript with jsp pages?

0 Answers  


Can we call destroy method inside init method?

0 Answers  


What is jsp syntax?

0 Answers  


How do I set password expire time period?

1 Answers  


What are the directives in jsp?

0 Answers  






Explain the steps for creating custom tags in jsp?

0 Answers  


What is the purpose of <jsp:setproperty >?

0 Answers  


What is expression language in jsp?

0 Answers  


How to include a jsp file in another jsp file?

0 Answers  


What is difference between html and jsp?

0 Answers  


Perform a browser redirection from a jsp page?

0 Answers  


How to set a cookie in JSP?

2 Answers  


Categories