You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2005/08/17 14:56:50 UTC
[OT] Find properties file in classpath
Hi
how do i find all the properties file available in
classpath??
Ashish
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [OT] Find properties file in classpath
Posted by GR...@intellicare.com.
Hi Ashish,
Seems ok except maybe you forgot to set url to
ClassLoader.getSystemResource("approval.properties").
Also, googling gave me this link which you may find useful:
http://java.sun.com/j2se/1.4.2/docs/guide/resources/resources.html
Regards,
Geeta
Ashish Kulkarni <ku...@yahoo.com> wrote on 08/17/2005 10:48:13
AM:
> Hi
> is there a problem if i do some thing like below
>
> URL url = null;
> url =
> this.getClass().getClassLoader().getResource("approvals.properties");
> if(url== null)
> {
>
> ClassLoader.getSystemResource("approvals.properties");
> }
>
>
> Ashish
Re: [OT] Find properties file in classpath
Posted by Ashish Kulkarni <ku...@yahoo.com>.
Hi
is there a problem if i do some thing like below
URL url = null;
url =
this.getClass().getClassLoader().getResource("approvals.properties");
if(url== null)
{
ClassLoader.getSystemResource("approvals.properties");
}
Ashish
--- Ashish Kulkarni <ku...@yahoo.com>
wrote:
> Hi
> how do i find all the properties file available in
> classpath??
>
> Ashish
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org