I know, that when Servlet Container instantiates Servlet object, it also creates respective ServletConfig object, where it stored all init-params for ...
I know, that when Servlet Container instantiates Servlet object, it also creates respective ServletConfig object, where it stored all init-params for ...
I have troubles getting a javax.servlet.ServletConfig into a class annotated with org.springframework.context.annotation.Configuration. My team decid ...
I am trying to create an UI component that allow the user to customize the timeout of sessions. So I created a servlet as below: However, when I de ...
In Servlets we have ServletConfig and ServletContext. Going through the API i see that both are interfaces. Following are my doubts 1.ServletConfig a ...
If I had to define a context-visib parameter at runtime, I wouldn't use ServletContext.setInitParameter() because init parameters are defined in the d ...
How to set ServeltConfig param name and value in index.jsp page with out xml configuration like initParams in Servlet ? is Possible ? ...
I want to get servletContext in a Java class to read a file from WEB-INF directory. I extended my class with HttpServlet and tried to get the context ...
Out of curiosity I was looking at the HttpServlet class's code and found that its parent class "GenericServlet" defines the method "getServletName()" ...
I am attempting to run a Java web project under Tomcat 8 that traditionally runs under WebSphere. One servlet makes the following call: config is a ...
So I have a Jersey REST service and I need to get access to a ServletConfig so that I can pull a param out of the web.xml. I can use @Context to wire ...
For Spring MVC project, I want to reduce errors and the amount of time when switching servers, paths, and etc in the servlet context. Is there a way ...
I have written a liferay richfaces portlet. But iam not able to get the css path or images in the web-inf folder. My portlet config is and in my j ...
URL for my webapp which is deployed on tomcat server is: http://host:port/myapp How I can change this url to some thing like below for same tomcat ho ...
I often have redirects like Anyway the web.xml already defines error-pages. How can I programmatically get the configured error.jsp? ...
At the moment, I am try to integrate Confident CAPTCHA into my JSF project. The constructor of the class ConfidentCaptchaClient is as following: Th ...
I am using JasperReport for generation reports in Java Web Application. I have a following line to get report file. But when I try using above lin ...
I need to show two URLs into a JSP, but I want to pass some init parameters to the JSP page for doing this. So, this is my web.xml : In the inde ...
my servlet performs three tasks: When it receives a message "resourceupdate" stores the requested resource (an HTML page) to an object sharedClient. ...
My project flex 4 + spring-flex 1.5.2 + spring 3.1 + hibernate 3.6(jpa2.0), can run in browser, but not work with JUnit4. JUnit error: my persis ...
What is the difference between ServletConfig and ServletContext interface? ...