How do i specify Application-level variables in JSP?

Dave McDonnell

I'm not familiar with ASP buy you might try using a

<context-param>
tag in your web.xml. You can then access this value using
application.getInitParameter("param-name");

So in web.xml you would have something like this:

  <context-param>
    <param-name>paramName</param-name>
    <param-value>paramValue</param-value>
  </context-param>
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact