deployment-descriptor Questions

6

Solved

I want to upload a file to a server, for which I am writing a servlet program.The location of the directory where the document would be uploaded should be fetched from a parameter in web.xml. I hav...
Redistrict asked 11/10, 2013 at 11:47

5

Solved

I would like to set the welcome-file of my JSP/JavaBeans project. I have a servlet named 'Controller.java' with the following @WebServlet annotation: @WebServlet(name="Controller", urlPatterns={"/...
Electioneer asked 19/3, 2013 at 18:47

2

I am new to servlets. I got the init parameters in DD within the init() method using getInitParameter("name"). I tried a lot from within doGet() method to access the init parameters, but it always ...

2

Solved

I need to serve my main application with the url pattern "/*" so this pattern is matched to a Servlet. The problem I am having is now all the css files and images located at "/css/all.css", "/image...
Clifford asked 16/9, 2011 at 17:25

3

Solved

I tried to use <error-page> <exception-type>java.lang.Exception</exception-type> <location>/errors/error.jsp</location> </error-page> but i dosen't catch...
Hakenkreuz asked 2/6, 2010 at 8:49

5

Solved

I created a simple "hello world" servlet in Eclipse (helios) + Glassfish v3. I am using Glassfish's plugin for eclipse It seems there is no web.xml but a sun-web.xml in the WEB-INF/ folder. This is...
Collaborate asked 24/2, 2011 at 2:34

2

Solved

"/*" will match zero or more characters. I want to serve request if there is a one or more characters proceeding the "/" character. Note: I am using Guice's Servlet Module to configure the request...
Unciform asked 16/9, 2011 at 16:41

2

Solved

DD elements <context-param> and <init-param> both can be retrieved by the getInitParameter() method, in the servlet code. Now the question is, how does it differentiate <context-par...
Transonic asked 15/1, 2010 at 6:41
1

© 2022 - 2024 — McMap. All rights reserved.