About Question enthuware.jwpv6.2.1214 :
Posted: Sun May 20, 2012 3:30 pm
Given the following line of code in a servlet:
String dburl = getServletContext().getInitParameter("DBURL");
The web.xml for this web application contains the following:
<context-param>
<param-name>DBURL</param-name>
<param-value>jdbc:odbc:MySQLODBC</param-value>
</context-param>
Which of the following statements are correct?
The following was given as the solution:
The value for DBURL cannot be changed programmatically.
Where is the value being changed programmatically, or at all?
Rob Millican
rbmillican@hotmail.com
String dburl = getServletContext().getInitParameter("DBURL");
The web.xml for this web application contains the following:
<context-param>
<param-name>DBURL</param-name>
<param-value>jdbc:odbc:MySQLODBC</param-value>
</context-param>
Which of the following statements are correct?
The following was given as the solution:
The value for DBURL cannot be changed programmatically.
Where is the value being changed programmatically, or at all?
Rob Millican
rbmillican@hotmail.com