init-parameters Questions
3
Solved
This is my web.xml xsd
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation...
Theresiatheresina asked 3/3, 2011 at 0:1
3
Solved
I am checking new annotations for web servlets but what I do not understand how can you pass initial parameters (init-param) from easily modified location. Yes, I found annotation @WebInitParam, bu...
Mcmurry asked 26/9, 2013 at 8:35
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 ...
To asked 2/2, 2013 at 18:27
1
My current understanding is that init-params in the web.xml must be put in the body of a servlet variable, like this:
<servlet>
<servlet-name>MyServlet</servlet-name>
<servl...
Ditchwater asked 7/11, 2012 at 2:59
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.