Hello Struts Guru:
I have created web application using Netbeans-struts 1.3 frame work.
I have defined db_URL for Development server, QA server and Production server in my project's application properties.
If I can pass the argument either "DEV", "QA" or "PROD" in my web application, I should be able to generate the string Dynamically as DB_URL.DEV, DB_URL.QA or DB_URL.PROD, then I can use appropriate DB_URL.
Here is my application property key and value.
DB_URL.DEV as jdbc:sqlserver://<dev DB server name>:15001;databaseName=<dbname>;
DB_URL.QA as jdbc:sqlserver://<QA DB server name>:15001;databaseName=<dbname>;
DB_URL.PROD as jdbc:sqlserver://<QA DB server name>:15001;databaseName=<dbname>;
I thought, I can pass argument like this
http://localhost:8080/<applicationURL>/login.jsp?systemenv=DEV .. so on.
If I can pass the argument like this, how do I retrieve the argument variable 'systemenv' from my web application.
I do not think I can have void static main method in the web application.
Can some one explain me with example?
My advance thanks.
Ramesh Dhurvas