Questions tagged [init-parameters]

25 questions
1
vote
1 answer

Silverlight 5 initParams Count always equals 0

I've see this article here on stack and this article on Silverlight MSDN, but they don't address Silverlight5. See below for my html host document div code, and C# code to call it. I get a "The given key was not present in the dictionary." error…
wakurth
  • 1,644
  • 1
  • 23
  • 39
1
vote
1 answer

is there any wayout to set init parameter in servletconfig or servletContext object?

if i want to modify init-parameter value in any of ServletContext or ServletConfig. any want it to be updated after servlet is destroyed by container. is there any wayout?
Maddy.Shik
  • 6,609
  • 18
  • 69
  • 98
0
votes
1 answer

Access servlet init parameters from filter

I have a servlet like this: @WebServlet("/a/path") @WebInitParam(name="name", value="name_value") public class MyServlet extends HttpServlet { //... On this servlet I have put a filter: @WebFilter(dispatcherTypes = { DispatcherType.REQUEST },…
artaxerxe
  • 6,281
  • 21
  • 68
  • 106
0
votes
2 answers

Changes in DD (init-param, context-param) reflecting in Tomcat without re-deploying

I am following headfirst JSP and Servlets book these days and it says that ServletConfig object is only created once during the life cycle of a servlet before being passed down to the init method of the servlet. I was testing out some examples given…
Abhay Sharma
  • 309
  • 5
  • 16
0
votes
1 answer

Context Parameters vs. public static final Variables in Java Web App

I am developing a Java web application. I was wondering what the advantages/disadvantages are of setting a context parameter vs just declaring a public final static variable of a class in my web application. For example, I have a variable that is…
theyuv
  • 1,556
  • 4
  • 26
  • 55
0
votes
4 answers

How do I access init parameters from a JSP2 tag file?

I'm trying to create a jsp tag file but it fails to compile when I try to use pageContext.getServletConfig().getInitParameter("myInitParam") I'm using tomcat and when I try to view a page including the file I get a jasper compile error pageContext…
user45023
  • 11
  • 2
0
votes
1 answer

Passing a closure as a init parameter in Swift

I'm trying to convert an Objective-C code snippet I found on this article. Here's the original code. .h file #import typedef void (^TableViewCellConfigureBlock)(id cell, id item); @interface ArrayDataSource : NSObject…
Isuru
  • 30,617
  • 60
  • 187
  • 303
0
votes
2 answers

What is the need of servlet init parameters?

What is the need of using init-parameters in servlet configuration? If answer is to let the servlet initialize it's parameters, then the question to this answer is "Does this initialized value persists when server boots next time to instantiate the…
0
votes
1 answer

How to get init param in JSF 1x using EL

i have a context param as follows: myInitParam myValue i want to get an init param in JSF 1x (exact version is 1.1.02) as follows:
Mahmoud Saleh
  • 33,303
  • 119
  • 337
  • 498
-2
votes
1 answer

Not able to access 'initparam' in Servlet

I am learning servlets and I created a sample sevlet and created a initparam called 'message' using annotation. I am trying to access that param in doGet() method but getting nullPointerException. What can be the problem? The code is given…
Arpit Shukla
  • 21
  • 2
  • 10
1
2