File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Mandatory Packages in JSP File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Mandatory Packages in JSP File" Watch "Mandatory Packages in JSP File" New topic
Author

Mandatory Packages in JSP File

ramya ray
Ranch Hand

Joined: Aug 11, 2006
Posts: 101
Hi All,

Is it mandatory to import javax.servlet.* and javax.servlet.http.* packages in a jsp file or they are imported by default.

Please clarify.

Thanks,
Sayak Banerjee
Ranch Hand

Joined: Nov 28, 2006
Posts: 292
You don't import them.


Turn on, tune in, drop out.
Prabhu Venkatachalam
Ranch Hand

Joined: Nov 16, 2005
Posts: 502

why do you want to import it? Are you planning to use any classes from these packages?


Prabhu Venkatachalam<br />SCJP 1.4,SCWCD 1.4<br />prabhu.venkatachalam@gmail.com
ramya ray
Ranch Hand

Joined: Aug 11, 2006
Posts: 101
Yes, i want to use some classes from these packages.

Part of my question is - are these packages imported by default and i can use their classes without having import statements for the same.

Thanks,
Sayak Banerjee
Ranch Hand

Joined: Nov 28, 2006
Posts: 292
You still don't have import them...but that was so easy to try it...wasn't it?
Sreeraj G Harilal
Ranch Hand

Joined: Apr 19, 2006
Posts: 310
why do you want to import it? Are you planning to use any classes from these packages?


Give respect and take respect.


SCJP 5.0<br />SCWCD 1.4<br />Preparing for <b>SCEA</b>.<br /><b>"I prefer an interesting vice to a virtue that bores."</b>
ramya ray
Ranch Hand

Joined: Aug 11, 2006
Posts: 101
Thank you all clarifying my doubt. I got some write up also which says -

We do not have to import these packages explicitly.
java.lang.*, javax.servlet.*, javax.servlet.jsp.*, and javax.
servlet.http.* packages.

Thanks,
Renu Radhika
Ranch Hand

Joined: Oct 21, 2005
Posts: 243
Attribute name :import

Description A comma-separated list of Java classes and packages
that we want to use in the JSP page.

Default Value/s

java.lang.*;
javax.servlet.*;
javax.servlet.jsp.*;
javax.servlet.http.*;

This is from study kit
 
Don't get me started about those stupid light bulbs.
 
subject: Mandatory Packages in JSP File
 
Similar Threads
body-content tag.
@ tag dought?
Ques from Mock
mandatory elements of the tagLibrary
uri element ,taglib element