• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using variables for param-value elements in web.xml

 
Uchana Jackson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to do that?

Here is an example:



I want to read the value for jcifs.http.domainController from properties file or DB table. Does the Servlet spec allow for this and how can it be done (e.g. EL expression, etc.)
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EL is used with jsp . not in filter/servlet . and yes you can get the param-value in servlet using

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,

I think



use only with your servlet not with filter.

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nishan Patel wrote:

use only with your servlet not with filter.



No. you can get it with help of FilterConfig
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic