when the several requests comes to server..how it manage
the requests
Answers were Sorted based on User's Feedback
Answer / goutham
When several requests comes to the server,I am assuming here
the requests coming to the same servlet,then the
webcontainer sees whether the Servlet is instantiated if it
is not the servlet is instantiated (only for the first time)
then a thread is spawned for each request and assigned to it.
*servlets does not implement singlethreadmodel , this
interface is depricated and hits the performance very
badly..instead of singlethreadmodel you can use sychronized
blocks(not methods)
| Is This Answer Correct ? | 15 Yes | 0 No |
Answer / suresh mediboyina
When the request comes to IIS server,it can identify the
file extension by http handlers and send to Http modules
which can be processing the request send to http handlers,
this can send to browsers.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / malligontla
As the servlet is a single thread model, then the requests
will be served one by one. That’s the internal process by
the web container.
| Is This Answer Correct ? | 6 Yes | 3 No |
Answer / siva thimmannagari
i think its only servlet and instance and multiple thread..
| Is This Answer Correct ? | 1 Yes | 1 No |
I have a requirement Here we have a ResultSet object that will contain 50 records i need to print those recors in to a webpage(i.e; view according to MVC architectures that mybe servlet or jsp) . Here i need to print the records 10 per page that is 1 to 10 in page one and 11 to 20 in page two like remaining will be appeared in other pages we need to display those page numbers whenever we click on that page number we will go to that page and display 10 records like we will display 5 pages it is like this << 1 2 3 4 5 next >>
How to create war file?
What is servletconfig?
What are the difference between RMI and Servlets?
How can I share objects across different sessions?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
Why are servlets used?
How can we perform any action at the time of deploying the project?
Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!
Explain mvc pattern.
what are the disadvantages of cookies?
Servlet is pure java object or not?