This week's book giveaway is in the Other Open Source APIs forum. We're giving away four copies of Storm Applied and have Sean Allen, Peter Pathirana & Matthew Jankowski on-line! See this thread for details.
I guess the subject says it all. How can I access an environment variable in JSP? For example, I'm looking to find out what the current program running is called (i.e. myTestPage.jsp is what I would like returned or even the full URL path as displayed in the browser). Thanks so much.
When you say "environment" variable what exactly do you mean? Are you talking about Operating System Environment variables? Those are not accessible since your Java App is running the context of the JVM.
You can pass an OS environment variable to a java program is through a command line argument to the program