ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Java Related >> Java J2EE >> Advanced Java
 
 


 

 
 Core Java interview questions  Core Java Interview Questions (1728)
 Advanced Java interview questions  Advanced Java Interview Questions (332)
 Swing interview questions  Swing Interview Questions (44)
 EJB interview questions  EJB Interview Questions (134)
 Servlets interview questions  Servlets Interview Questions (255)
 Struts interview questions  Struts Interview Questions (196)
 JDBC interview questions  JDBC Interview Questions (187)
 JMS interview questions  JMS Interview Questions (9)
 SunOne interview questions  SunOne Interview Questions (3)
 J2EE interview questions  J2EE Interview Questions (71)
 Weblogic interview questions  Weblogic Interview Questions (147)
 Websphere interview questions  Websphere Interview Questions (14)
 Java Networking interview questions  Java Networking Interview Questions (20)
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions (87)
Question
how can u cal servlet from java?
 Question Submitted By :: Advanced-Java
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
call the action in form of jsp file 
Is This Answer Correct ?    24 Yes 5 No
Velmurugan
 
Answer
# 2
create a HTTPClient object
DefaultHttpClient httpclient = new DefaultHttpClient();
HttpGet httpget = new HttpGet("your servlet");
HTTPResponse response = httpclient.execute(httpost);
 
Is This Answer Correct ?    22 Yes 3 No
Manjul
 
 
 
Answer
# 3
by write some code. 
Is This Answer Correct ?    9 Yes 2 No
Ganesh
 
Answer
# 4
Through the service method can call the servlet 
Is This Answer Correct ?    3 Yes 1 No
Saikumar
 
Answer
# 5
First write a jsp page.In the form tag of jsp write the
servlet name,then the control automatically goes to the servlet.
Ex: <form name="myform" action="NameOfYourServlet"
method="post/get">
</form>
 
Is This Answer Correct ?    1 Yes 1 No
Sharief
 
Answer
# 6
do some coding on jsp page 
Is This Answer Correct ?    0 Yes 2 No
Rajinder Singh
 
Answer
# 7
through applet only call servlet
 
Is This Answer Correct ?    7 Yes 10 No
Kanna
 

 
 
 
Other Advanced Java Interview Questions
 
  Question Asked @ Answers
 
How JNDI is used in JMS ?   1
Explain the stub's and skeleton's functionality?   7
What is resource bundle?   1
Hi frnds ,iam new to java and j2ee ,my requirement is using java or any j2eetech how to lock an user when he enter wrong credentials(uname&password) more than 3 times.take the username and passowrd in a bean no need to conned Db kindly provide me sample application code or and ideas or links or tutorials plzzzzz urgent for me thanks in advance... NSN 2
1) which method of the RequestDispatcher cannot be called once the output is sent to the client? a. forward b. include c. both a&b 2) which interface should an object implement to get notified of changes to the list of active sessions in a web application? a. HttpSessionListener b. HttpSessionActivationListener c. HttpSessionAttributeLIstener 3) A user can select multiple locations from a list box on an HTML form, which of the following methods can be used to retrieve all the selected location? a. getParameter() b. getParameterValues() c. getParamValues() 4) which of the following methods should be used to send character text to the client? a. ServletResponse.getWriter() b. ServletResponse.getOutputStream() c. ServletResponse.getOut() 5) which implicit object is always available in a JSP page? a. exception b. session c. out 6) which inclusion mechanism doesn't include the source of the page, rather the output of the page. a. include directive b. jsp:include action c. Bothe a& b 7) which attribute of the page controls whether a page participates in session or not? a. session-allowed b. session c. isSession   1
What are skeletons and stubs and how they are generated?   2
diffrence between jsp and servelts.   6
Explain Object Serialization and it can be used? Infosys 3
what is catalina in tomcat server. IBM 9
difference between sql exception class and sql warning class   1
To make an object to begin executing as a separate thread, what method is used?   2
What is servlet preinitialization? iFlex 3
 
For more Advanced Java Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com