Questions tagged [servletconfig]
37 questions
0
votes
2 answers
Variables in Spring MVC servlet context?
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 to store variables in the servlet context (i.e. servlet-context.xml)?
Example
VARIABLE is used to to…

user2601995
- 6,463
- 8
- 37
- 41
0
votes
1 answer
how to change webapp url
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 home:
http://test.myapp.com

S Singh
- 1,403
- 9
- 31
- 47
0
votes
1 answer
Tomcat: Handle Servlet Exception
I am setting up PHP on my Tomcatserver using the PECL-servlet (PHP/PECL-version 5.2.5). The server now sucessfully handles real PHP-files, but i am having a problem with requests for nonexistent pages.
A request for such a page, f.ex:…
0
votes
1 answer
servletConfig.getInitParameterNames() is not working
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 :
index1
/index.jsp
…

CristianC
- 15
- 1
- 6
0
votes
1 answer
Servlet url pattern - java.lang.NullPointerException in servlet Context
my servlet performs three tasks:
When it receives a message "resourceupdate" stores the requested resource (an HTML page) to an object sharedClient.
When it receives an asynchronous get (querystring indicated by "t = UPDATE") adds the object…

jenjis
- 1,077
- 4
- 18
- 30
0
votes
1 answer
jsp:this refers to which object in jsp page 's jave code block <% %>?
i am using this reference in jsp .i am able to call functions like
this.getServletConfig();
can anyone pls tell me for which servlet its returning servletconfig object.and which object its refering to?
if it is servlet object it is refering to from…

Maddy.Shik
- 6,609
- 18
- 69
- 98
-4
votes
1 answer
Servlet context is not working
Please i am trying to store a player object in a HashTable which would then be stored in the ServletContext. When the class is called it is supposed to check if the player (object) is already in the playerList (HashTable) which is stored in the…

Solomon Ubani D King
- 15
- 1
- 4