Hi, there is difference between context attributes and context init parameters...
Context attributes are managed with "setAttribute" and "getAttribute" methods. Init parameters are defined in the web.xml file and are read with "getInitParameter" method. Then, you should modify your code in following way: pageContext.out().print(pageContext.getServletContext().getInitParameter("se rver_pfad")); Alessio [EMAIL PROTECTED] -----Messaggio originale----- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Inviato: marted́ 2 luglio 2002 14.32 A: Tomcat Users List Oggetto: application Context within a TagLib Hi, realy basics! I set some values in the web.xml like this: . . . <context-param> <param-name>server_pfad</param-name> <param-value>http://localhost:8080/</param-value> <description>Server-Pfad</description> </context-param> . . . And now I want to get the values within a TagLib: . . pageContext.out().print(pageContext.getServletContext().getAttribute("server _pfad")); is null . . Whats wrong?? thanks, Rainer - Disclaimer - This email and any attachments thereto may contain information which is confidential and/or protected by intellectual property rights and are intended for the sole use of the recipient(s) named above. Any use of the information contained herein (including, but not limited to, total or partial reproduction, communication or distribution in any form) or the taking of any action in reliance on the contents, by persons other than the designated recipient(s) is strictly prohibited. If you have received this email in error, please notify the sender either by telephone or by email and delete the material from any computer. Thank you for your cooperation. -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>