-
-
-
What are the uses of Servlets?
A servlet can handle multiple requests concurrently, and can synchronize requests. This allows servlets to support systems such as on-line conferencing. Servlets can forward requests to other servers and servlets. Thus servlets can be used to balance load among several servers that mirror the same content, and to partition a single logical service over several servers, according to task.
-
-
What are the differences between GET and POST service methods?
A GET request is a request to get a resource from the server. Choosing GET as the "method" will append all of the data to the URL and it will show up in the URL bar of your browser. The amount of information you can send back using a GET is restricted as URLs can only be 1024 characters. A POST request is a request to post (to send) form data to a resource on the server. A POST on the other hand will...
-
-
-
-
-
How do I mix JSP and SSI #include?
If you're just including raw HTML, use the #include directive as usual inside your .jsp file.<!--#include file="data.inc"-->But it's a little trickier if you want the server to evaluate any JSP code that's inside the included file. If your data.inc file contains jsp code you will have to use <%@ vinclude="data.inc" %> The <!--#include file="data.inc"--> is used for including non-JSP...
-
-
-
-
-
-
-
State true or false -- Without using frames we can have a vertical scrollbar with a jsp which in turn is part of other jsp. ?
Skill/Topic: Programming ConstructsA) TrueB) FalseExplanation: use the div tag.
-
The information needed to create a TCP socket for communication in JSP is (Multiple choice)
Skill/Topic: Programming ConstructsA) The Local Systems IP Address B) Local Systems Port Number C) Remote System’s IPAddress D) Remote System’s Port Number.
-
-
Which of the following statements is true regarding the access to the information provided by the ServletContext
Skill/Topic: Programming ConstructsA) Information such as the names of the parameters passed in by the client, the protocol (scheme) being used by the client, B) The names of the remote host that made the request and the server that received it. C) Also the input stream, as ServletInputStream.Servlets use the input stream to get data from clients that use application protocols such as the...
JSP Interview Questions
Ans