hi all.we have 3 environments:test,development and production.how can be taken these information from component class?
Best Regards.
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
thank you for your guidiance.i finally find it, just as you said:in java
getPageContext().getRequest().getServerName()
What information are you after, and for what purpose?
hi Andy, the information we are looking for can be anything which we can determine the difference between the environments.for instance it can be url of the server.
Thank you.
Assuming you will be doing this via webtop, whcih is a Java application you can do anything yopu want with that including looking at the URL etc.
If you are looking to do different things dependant on environment then it might be better to leave the code written once and have somethinbg external such as a properties file, a Java VM parameter or a configuration in the docbase to tell you what the environment is.
I assume you are not looking to have different code paths dependant on the environment?
no i am not looking for different code path.i should get the server url in webtop.