![]() |
| Home | Tech FAQ | Interview Questions | Placement Papers | Tech Articles | Learn | Freelance Projects | Online Testing | Geeks Talk | Job Postings | Knowledge Base | Site Search | Add/Ask Question |
![]() Related Questions 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 Latest Answer : get all info go in query string,post with req body.get is not secure post is secureget send limited ddata post send lot of data arnd 2 mb ... Both are interfaces. The servlet engine implements the ServletConfig interface in order to pass configuration information to a servlet. The server passes an object that implements the ServletConfig interface Latest Answer : We cannot differentiate ServletContext and ServletConfig, both are interface and each exist for a different purpose.ServletContext contains the all the configuration information of the WebApplication which all the servlets in the application use. The ... Yes, you can invoke the JSP error page and pass the exception object to it from within a servlet. The trick is to create a request dispatcher for the JSP error page, and pass the exception object as a Latest Answer : 1. How do u difine an error page?2.What r the methods called in servlet life cycle?3.How can u make session variables un available?4. How to change the port no of agiven application server?5.How do udeploye an EJB in the existing application using webspehere?6.Why ... What is a better approach for enabling thread-safe servlets and JSPs? SingleThreadModel Interface or What is a better approach for enabling thread-safe servlets and JSPs? SingleThreadModel Interface or Synchronization? Although the SingleThreadModel technique is easy to use, and works well for low volume sites, it does not scale well. If you anticipate your users to increase in the future, you may be better off implementing Simply have doGet call doPost, or vice versa. Latest Answer : in addition to what veeru mentioned, we can override the service(HttpServletRequest , HttpServletResponse ) method as well. service method takes priority over doGet() and/or doPost(). ... Each servlet has the same life cycle:A server loads and initializes the servlet (init())The servlet handles zero or more client requests (service())The server removes the servlet (destroy()) (some servers Latest Answer : Servlet life cycle defines the life process of the servlet. It has certain methods that comes into existence throughout the utilization of the servlet. Generally newInstance() method creates an object to the class. Similar way, internally the newInstance ... ServeltRequest: which encapsulates the communication from the client to the server.ServletResponse: which encapsulates the communication from the servlet back to the client.ServletRequest and ServletResponse Latest Answer : when a request is sent from the browser to a servlet, the servlet object will be created by the webcontainer if we don't provide load-on-startup element.suppose if we provide load-on-startup element the webcontainer creates the servlet object when ... Information such as the names of the parameters passed in by the client, the protocol (scheme) being used by the client, and the names of the remote host that made the request and the server that received Latest Answer : really, a must-know questions for a j2ee programmer ... Servlets are modules that extend request/response-oriented servers, such as Java-enabled web servers. For example, a servlet may be responsible for taking data in an HTML order-entry form and applying Latest Answer : A java program that runs on a web server. ... Servlets provide a way to generate dynamic documents that is both easier to write and faster to run. It is efficient, convenient, powerful, portable, secure and inexpensive. Servlets also address the problem Latest Answer : Java servlets are more efficient, easier to use, more powerful, more portable, and cheaper than traditional CGI and than many alternative CGI-like technologies. (More importantly, servlet developers get paid more than Perl programmers :-). Efficient. ...
Sponsored Links
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||