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 / JavaBeans / March 2004

Tip: Looking for answers? Try searching our database.

How to retrive the base path of a web application (.war)?

Thread view: 
Yi Chen - 28 Mar 2004 19:02 GMT
I am working on a Jboss based application.
There are many jsp pages included and I want
it to be easier to retrieve sources (for example,
images in the "myapp/images" folder and some
jsp modules in "myapp/modules" folder). What I
can do to  retrieve the absolution path for
the current web application  (the myapp.war)?

Thanks,

-Y.C.

http://www.OneImageHost.com/
Johann Burkard - 28 Mar 2004 19:44 GMT
> I am working on a Jboss based application.
> There are many jsp pages included and I want
[quoted text clipped - 3 lines]
> can do to  retrieve the absolution path for
> the current web application  (the myapp.war)?

javax.servlet.ServletContext#getRealPath(String)

Johann
Signature

ich habe diese news-netze besucht, lang bevor es irgendwelcher regeln
erfolgte. seinerzeit waren wir verpönt und wurden als geisteskranke
abgestempelt !!! ("-=[Admin] Team:WonneWoelkchen [=-" in
<ajjt45$4c5$1@news.eusc.inter.net>)



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.