Hi all,
I am using java bean class in my web application(it is not extending servlet).My need is to get the context path of the application in that class.If yes how.
I am using "./".It doesn't work. Please help me
sureshksk
0
Newbie Poster
Recommended Answers
Jump to Postthis.getClass().getProtectionDomain().getCodeSource()
see the API docs for Class and ProtectionDomain and experiment a bit.
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.