Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2007

Tip: Looking for answers? Try searching our database.

Tomcat and web.xml

Thread view: 
genkuro - 30 Aug 2007 22:35 GMT
Alright.  Here's a definitive newbie question.

Tomcat parses the web.xml file.  Where does it whisk the resulting
dataset to?  Is it part of the Servlet class?

I've already tried getServletContext() and getServletConfig().  Both
seemingly did not relate to web.xml at all.  Or maybe I'm looking at
nested data.

Ultimately, I want to get at the <context-param> tags.

Thanks!
Manish Pandit - 30 Aug 2007 23:02 GMT
> Alright.  Here's a definitive newbie question.
>
[quoted text clipped - 8 lines]
>
> Thanks!

Try context.getInitParameter(paramName);

where context is the servlet context.

I know this is very counter-intuitive, but I guess having it
getContextParameter() would just be too easy for Sun.

-cheers,
Manish
genkuro - 31 Aug 2007 00:28 GMT
> > Alright.  Here's a definitive newbie question.
>
[quoted text clipped - 18 lines]
> -cheers,
> Manish

Hi Manish -

Worked great.  Thanks for the help.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.