I done a internationalization in GWT.Everthing works perfectly.But i didn't find my properties file after deployed the project.if i want to change the property file content how to do ?
Pls advise...
On Wednesday, July 16, 2008 2:29:43 PM UTC+5:30, Nicole wrote:
Hi GWT experts,--
I need some help in deploying my GWT web application on Tomcat web
server.
I have been developing a web application using GWT (Google Web
Toolkit) with Eclipse.
In my src folder (not in a specific GWT module, but in a server-side
package), I created a class that implements ServletContextListener and
in the contextInitialized method, I am reading a file
(setup.properties) that contains setup parameters, like the
datasource, host, and port, etc.
I put this properties file in MyProject/resources/setup.properties.
And the src folder is directly under MyProject.
To read the file, I used a relative file path as such: "resources/
setup.properties"
In development mode, I was running the application from the GWT hosted
web browser. The file was being read correctly.
However, when I export the war file from eclipse and deploy it in
Tomcat, the resources folder is not being included and thus the file
is not being read.
So, I manually put the resources folder in the Tomcat6.0 folder and it
worked.
However, I do not want to put the resources folder there. I want it to
be relative to the project itself. So, I want to put it somewhere
inside the webapps/MyProject folder. However, I keep getting file not
found. T
How can I make the relative path work?
What am I missing? Any suggestions?
Thanks in advance.
Best Regards,
Nicole
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment