Rameshbapu Dhurvas

Greenhorn
+ Follow
since Jul 02, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rameshbapu Dhurvas

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
9 years ago
I am programming in Struts after long time. I am using frame set to define split pane using JSP. So, I have created three new JSP files that contains my data.When I tried to display my success.jsp, I am getting the error messages that the requesed resources are not available.

Previously, I have defined all the servlet and jsp files in the web.xml when I was doing simple java program.

Now, I have defined the following code in the web.xml



Created three new JSP files under the folder WEB_INF
reportList.jsp
buttonList.jsp
reportContent.jsp

My success.jsp contains the folling code:



When I called the success.jsp, to display the data, I received the follwing error messages: HTTP - 404, The requested resources are not available.

Would you please tell me, what other else should I do, to fix the problem?

9 years ago
JSP