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 session is achieved in JSP?(once user logs out,if he press back button of browser he should not be allowed to same page)

2012


What is scriptlet tag?

524


What is an api with example?

602


How many types of jsp tags are there?

483


What language is jsp?

527






What is difference between sendredirect and forward?

473


Is jsp server side or client side?

485


How jsp is executed?

462


What is difference between java and jsp?

482


Can you make use of a servletoutputstream object from within a jsp page?

525


Is there a way to reference the "this" variable within a jsp page?

547


Explain the difference between jspwriter and servlet printwriter in jsp?

510


What are jsp and servlets?

489


What are directives in jsp?

501


Can you stop multiple submits to a web page that are initiated by clicking to refresh button?

489