How do you import the packages in the JSP?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you make the finally clause not to fail to execute?

489


What are the jsp lifecycle phases?

562


Which package does a jsp api consist of?

495


What is jsp custom tag and what are it’s components?

528


Define scriptlet, expression and declaration in jsp?

509






How many tags are provided by jstl?

485


What is the jspdestroy() method?

562


What is a jsp and what is it used for?

532


What are the elements of jsp?

500


What is a tag file in jsp?

506


Which two interfaces does the javax servlet jsp package have?

753


What is difference between custom jsp tags and beans?

553


What is server context?

498


What is the _jspservice() method?

509


What are different types of comments in jsp?

501