try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection("jdbc:odbc:cart");
cartStmt=conn.prepareCall("{ call TotalProduct(?,?)}");
cartStmt.setString(1,cardId);
cartStmt.setString(2,(String)productName);
ResultSet rs = cartStmt.executeQuery();
while( rs.next()){
}
}
spToExecute=<%=URLEncoder.encode(spToExecute)%>">
use above one for passing stored procedure from one jsp to other[jsp /b]
String spToExecute = "ATS_proc_rptBrokerageCharge "+tid+","+cid+","+strategyid+","+moddatefrom+","+moddateto+" " ;
<a class="PrintFonts" href="PrintPreview.jsp?dd_trade=<%=tid%>&dd_cities=<%=cid%>&reportName=<%=reportName%>&reportId=<%=reportId%>
&spToExecute=<%=URLEncoder.encode(spToExecute)%>">Print Preview</a>
I have called this SPs to display the message from my MAILBOX and this is my code:
String strSQL = "EXECUTE spGetNewMessage @IDMsg = 12345";
rs = stmt.executeQuery(strSQL); //where IDMsg in my DB is = 12345
the message in DB withIDMsg 12345 is displayed calling this SP using JSON: (im using JSON for this module)
String strSQLx = "EXECUTE spGetOneMsgWRecipient @IDMsg=" + IDMsgJSON;
rsx = stmtx.executeQuery(strSQLx);
while (rsx.next())
{
String body = rsx.getString("strBody"); // the message body is here
main.put("Message:", body);
}
rsx.close();
i need your help if i want to display a certain msg. under certain category. i also have SP for my categories.
how will i display the message for each category in my mailbox?
pls. help.
thank you.