-
How to maintain values inside form field while uploading image using jsp?
The problem I am facing is that whenever I fill details in the form and then click on upload link then request go to upload.jsp and when after uploading the form the request comes back to registration page(1st page) then the values from all fields disappear
-
Share data in two different projects
How to share the data in two different projects in jsp or servlets
-
Which of the following statement is true about Servlet chaining (Multiple choice)
Skill/Topic: ServletsA) It is the process of chaining the output of one Servlet to the anotherB) Need to do special configuration in the Java Web servers for this process to run.C) This concept has been removed from the standard application for servlets.D) None of the above
-
-
What is the role played by JSP in the MVC architecture
Skill/Topic: JSP Thread ModelA) ModelB) ViewC) ControllerD) None of the above
-
Calling of which of the following method causes unpredictable results in the Servlet.
Skill/Topic: ServletsA) doPost()B) doGet()C) System.out.println()D) System.exit(0);Explanation: Might close down the entire Server.
-
Why we need web container to Deploy the servlet or jsp ?
i.e Why we can not run the application like simple java program
-
These ______________listeners are notified when attributes are added to, removed from, or replaced in any session.
Skill/Topic: JSP Thread ModelA) Session AttributeB) Servlet context attributeC) Session ListenersD) Servlet context listeners
-
Fill in the blanks -- The maximum age of the cookie in JSP can be set by _________________
Skill/Topic: JSP Life CycleA) cookie.setMaxAge(int seconds)B) cookie.setMaxAge(float seconds)C) cookie.setAgeMax (float seconds)D) cookie.setAgeMax (int seconds)
-
Java Server Pages technology commonly called JSP technology offers the following advantages(Multiple choice) :-
Skill/Topic: FundamentalsA) Separation of dynamic and static content. B) Support for scripting and tags C) Reuse of components and tags. D) Web access layer for N-tier enterprise application architecture
-
-
Fill in the blanks -- The two types of cookies in java are Permanent cookie and _________ cookie
Skill/Topic: Session HandlingA) Session
-
Under JSP 1.0 , the implicit object which can be used for reference is “this”. It is used to refer to the ______________
Skill/Topic: FundamentalsA) Servlet generated by the JSP page B) Servlet called by the jsp page C) Calling the previous JSP page D) None of the above
-
Pass Control from one JSP page to another
Write Sample Code to pass control from one JSP page to another?
In the properties files _________ defines global Servlet settings and list of servlets in the system.
Skill/Topic: FundamentalsA) Servlet.properties B) Page.properties C) Session.properties D) None of the above
Domain name service (DNS) maps one particular IP address to a string of ___________.
Skill/Topic: FundamentalsA) characters B) digits C) special symbols D) binary digits
Which jar file should be mandatory be there in the CLASSPATH for working with Servlet.
Skill/Topic: ServletsA) javax.servlet.*B) java.servlet.*;C) javax.servlet.HttpRequestD) javax.servlet.HttpResponse
Ans