Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Tim Cooke
paul wheaton
Liutauras Vilda
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Devaka Cooray
Paul Clapham
Saloon Keepers:
Scott Selikoff
Tim Holloway
Piet Souris
Mikalai Zaikin
Frits Walraven
Bartenders:
Stephan van Hulst
Carey Brown
Forum:
Servlets
Param in Java class
Dan Parsons
Ranch Hand
Posts: 70
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I need a web.xml context value to work in a plain
Java
Class that is not a
Servlet
.
<param-name>myValue</param-name> <param-value>aaaaaavalue</param-value>
For a servlet I can fetch the value like this:
config.getInitParameter("myValue")
Anyway to get a web.xml param or something similiar to work in a Java class?
Bear Bibeault
Sheriff
Posts: 67752
173
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Fetch it in the servlet and pass it to the non-servlet class as a parameter.
[
Asking smart questions
] [
About Bear
] [
Books by Bear
]
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
<f:ajax> tag not responding when adding trinidad jars
web.xml, java.io.ByteArrayInputStream
Blank page returned when filters are used with struts
How to avoid directory listing?
Can I use web.xml in struts app for storing some param values?
More...