Latest Answer: Hi,Good to see the ways of communication between servlets.My question goes as: The servlet communication when they are running in different servlet container. sOne and sTwo are two servlets, here can we include sTwo's output in response of sOne's?Thank ...
Latest Answer: doGET() is better ...
Latest Answer: True Aditya... ...
Latest Answer: Use can store variables in session, but u can store it in object form only.if it is primitive type u can use wrapper classes to convert it into object.session.setAttribute("test","xyzp");String str=(String)session.getAttribute("test");while retrieving ...
Latest Answer: we can create connection pooling using tomcatFor that 1. we need to download 3 jar files a. commons-dbcp-1.2.jar b. commons-collections-3.1.jar c. commons-pool-1.3.jar 2. we want to add an entry in server.xml of the tomcat factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName oracle.jdbc.OracleDriver url jdbc:oracle:thin:@localhost:1521:orcl username anand password pass maxActive 20 maxIdle 10 maxWait -1 for ...
Suppose there are 15 links on the homepage of a site and each link creates a new request, how your servlet controller would handle it? (Assuming you are using MVC-2)
Latest Answer: when we send any request to the servlet, that request tryies to find servlet 1st. second servlet executing following sequence of methodinit()service()destroy()so the 1st time request to servlet, response time is high than 2nd request so to avoid ...
Latest Answer: Jagmohan, I am really happy after saw your answer.It is the perfect and Suitable answers.Thanks & Regards,Nagaraju. ...
Suppose number of servlets/jsps from various web applications want to access shared data, what is the mechanism to achieve the same?
Latest Answer: Hi,The servlet specifications clearly states that we can not explicity destroy the servlet instance by coding what so ever in destroy method.We can only perform clean up operations.So, if we call the service method in init, it will be called and Say I ...
View page << Previous 4 5 6 7 [8] 9 10 11 12 13 Next >>

Go Top