× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



To follow up on my previous, you actually need to store/create them in 
your JavaSource folder of the web project.  It will then automatically 
make a copy of it in the /WEB-INF/classes folder.  Of course, you can also 
package-qualify it too.

If you do not do this way, then whenever Eclipse decides to rebuild your 
project the first thing it does is clear the entire /WEB-INF/classes 
folder and you lose anything that you just dropped in there.  If you stick 
it under JavaSource then the rebuild puts it back.

Mark







"Colin Williams" <colin.williams@xxxxxxxxxxxx>
Sent by: wdsci-l-bounces@xxxxxxxxxxxx
12/18/2003 04:01 PM
Please respond to Websphere Development Studio Client for iSeries 
 
        To:     "Websphere Development Studio Client for iSeries" 
<wdsci-l@xxxxxxxxxxxx>
        cc: 
        Subject:        Re: [WDSCI-L] Importing existing JSPs etc. into 
new project


Joe,

my own way of simplifying this is to use:

I have created utility classes that use
ClassLoader.getSystemClassLoader().getResourceAsStream(propertiesFile);

This will then search the classpath for the specified file, in this case a
properties file, allowing me to use the classpath like a library list for
properties files

This make it very easy for me to have different properties files for dev,
uat and live environments, just by changing the properties files on the
classpath

cheers

Colin.W



----- Original Message -----
From: "Joe Pluta" <joepluta@xxxxxxxxxxxxxxxxx>
To: "'Websphere Development Studio Client for iSeries'"
<wdsci-l@xxxxxxxxxxxx>
Sent: Thursday, December 18, 2003 6:22 PM
Subject: RE: [WDSCI-L] Importing existing JSPs etc. into new project


> Quick summary:
>
> To move to WDSC, you must become J2EE compliant
>   All document objects go into the "Web Content" folder
>   All classes and jars go under "WEB-INF"
>     All classes go into the folder "classes" under WEB-INF
>     All jar files go into the folder "lib" under WEB-INF
>
> The difficult part is properties files, or anything you open using the
> java.io.File classes and a relative path.  Any file accessed using the
> java.io.File class goes much higher in the hierarchy, under the
> application folder.  You will not be able to include these in your web
> project.
>
> Joe
>
> _______________________________________________
> This is the Websphere Development Studio Client for iSeries  (WDSCI-L)
mailing list
> To post a message email: WDSCI-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
> or email: WDSCI-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/wdsci-l.
>


_______________________________________________
This is the Websphere Development Studio Client for iSeries  (WDSCI-L) 
mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/wdsci-l.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.