sorry nilesh for the typo even i am using setResourceBundleName().I
tried using just the name earlier but in eclipse if i have  my project
folder in d:\workspace.
and i say setResourceBundleName(propertiesfile)  it checks under
d:\workspace .But my file is nested under folders .So i am using the
entire path.when i do a getResourceBundleName() ican see the entire
path but i just cannot figure out why it throws a missing resource
Exception

On 3/7/06, Nilesh Trivedi <[EMAIL PROTECTED]> wrote:
> Hi sreedhar,
>
> If it helps, I am using setResourceBundleName() instead of
> setResourceBundle(). And only the bundle name needs to be passed to it. For
> example, to load config.properties, I use this code:
>
> getTestContext().setResourceBundleName("config");
>
> Hope it helps,
>
> cheers
> nilesh
>
>
>
> On 3/7/06, Sreedhar Kharidehal <[EMAIL PROTECTED] > wrote:
> >
> Hi I get a Missing resource Exception when i try to read from the
> properties file.Here is the sample code
> File file =new
> File(src\\Auto\category\\ApplicationResources);
> tester.getTestContext().setLocale(Locale.US);
> tester.getTestContext().setResourceBundle(file.getAbsolutePath());
> System.out.println (tester.getMessage("errors.name"));
>
> The properties file ApplicationResources is there but still then i get
> a missing resource Exception in the last line .Am i missing something
>
> Thanks
> --
> sreedhar
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live webcast
> and join the prime developer group breaking into this new coding territory!
> http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> _______________________________________________
> Jwebunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>


--
sreedhar


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to