Java Server Page I can use a function in two ways:
Either I declare
<jsp:useBean id="myBean" scope="session"
class="mypack.mysubpack.MyClass" />
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...........


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More JSP Interview Questions

Hi, We developed a webpage using jsp for our team, now we need to know who are employees opening this page,i.e, we need to get the windows user name when ever he/she open the page and stores into a variable. Plz help on this

0 Answers  


Can we use methods in JSP? If so where the methods are stored in servlet class file?

6 Answers   Bodhtree, Cognizant, Persistent, TCS,


What is the use of implicit object named "application" in Application?

0 Answers   Indriyn Data Labs,


What is out println in jsp?

0 Answers  


What is jsp and why it is used?

0 Answers  






How can I override the jspinit() method within a jsp page?

0 Answers  


What are the different jsp element types?

0 Answers  


Explain jsp technology?

0 Answers  


how to enable session tracking for jsp pages,if the browser has disabled cookies?

2 Answers  


Can we use jstl in html?

0 Answers  


What are the implicit el objects in jsp?

0 Answers  


Can constructor be used instead of init(), to initialize servlet?

0 Answers  


Categories