You can use init-params in servlets: http://www.exampledepot.com/egs/javax.servlet/GetInit.html
You can also use properties files: http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html Another alternative is to make the configurations datastore configurations and have your application read them on startup. On Thu, Sep 2, 2010 at 9:51 AM, Benjamin <[email protected]> wrote: > Hey guys > > I want to distribute my apps WAR directory to my users so they can > deploy and run their own instances of my app on their own app engine > account. That is, they download a zipped copy of my WAR directory, > create an app on app engine, edit web.xml and deploy it themselves > using the sdk. > > I want them to be able to customize the app using a configuration file > but i'm not sure how to do this. Can i keep other settings in web.xml > and if so how do I pull them out in my java code? > > in short - how do i access app settings in my java code. > > thanks! > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups "Google App Engine" 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-appengine?hl=en.
