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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
Param in Java class
Dan Parsons
Ranch Hand
Posts: 70
posted 14 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: 67746
173
I like...
posted 14 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
]
Consider Paul's
rocket mass heater
.
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...