Hi,
It is possible. create a java file which is like below
 public interface LoginConstants  extends
com.google.gwt.i18n.client.Messages{
       @DefaultMessage("Logging in..")
        @Key("loggingIn.msg")
        String loggingIn_msg();
}
And in the .properties file u just have to access this like below

loggingIn.msg = Logging in..

This works fine...

On Oct 27, 9:48 am, rjcarr <[email protected]> wrote:
> You've already been answered, but I'll elaborate a bit.
>
> I'm going to assume you mean reading a property file in the client.
> If you mean reading a property file in the server then you should look
> at java.util.Properties.
>
> If you don't want to set up a service to obtain the contents of this
> properties file then you're going to need to have something on the
> server parse it (see java.util.Properties above), and then write the
> contents dynamically (say, with JSP) into the client page so that your
> GWT javascript can access it.
>
> As others have pointed out, you can then use Dictionary to pick up the
> values you're after (although I prefer to use JSNI and avoid using a
> Dictionary).  I haven't used Constants before, but it looks
> interesting ... that might be an easier route.
>
> Good luck!
>
> On Oct 26, 9:04 am, Praveen Prabakaran <[email protected]> wrote:
>
> > Hi,
>
> > There's a URL in my GWT application which is hard-coded in a java
> > file. I need to change this by creating a property file which contains
> > the URL in the form of a key-value pair. But I'm not able to do so. Is
> > this a limitation in GWT? Can I not use GWT to read from a property
> > file and print it? .Also please let me know how to include a external
> > package (for eg. "com.google.gwt.core.ext.typeinfo") in GWT.
>
> > Warm Regards,
> >    Praveen.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to