In struts2 for database configuration in struts.xml not working ,Kindly suggest the comments
I have tried following database configuration steps
<data-sources>
<data-source key="pizza">
<set-property property="driverClass"
value="sun.jdbc.odbc.JdbcOdbcDriver" />
<set-property property="url"
value="Jdbc:Odbc:issuetracking" />
<set-property property="username" value="sa" />
<set-property property="password" value="sa" />
</data-source>
</data-sources>
public
String execute() throws Exception
{
HttpServletRequest request;
DataSource ds = getDataSource(request, "pizza");
Connection con = ds.getConnection();
setMessage(getText(MESSAGE));
return SUCCESS;
}