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

What are the events in jsp page?

492


Define JSP Scriptlet.

570


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

494


What are the directives in jsp?

464


Java Server Page I can use a function in two ways: Either I declare or I declare <%@ page import = "mypack.mysubpack.MyClass" %> In each case I can call a function later by coding MyClass.myFunction(); So what is the difference between the two variantes? Why are Beans invented if we don't need them because we have the import statement ? please guide me its an humble request to you reader if u know n i'll be thankful to you...........

1701






What are the advantages of jsp over servlet?

515


Which method cannot be overridden in jsp?

518


Why jsp and servlets are used?

517


What are jsp declarations?

543


Which of the following action variable is used to include a file in jsp?

496


What is contextpath in jsp?

503


What is jsp tag?

483


hpcl information systems officer 2008 Question Papers or any last previous questions papers thanks in advance shyamprasad71@gmail.com shyamprasad71@gmail.com

1774


How can I extend the functionality of jsp?

515


What is the difference between a scrollbar and a scrollpane in jsp?

485