Hd Desai

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

Recent posts by Hd Desai

Paul, please dont read my post if you are not interested in.I know why I am here and what is problem.

There are people who are interested in help people, I can better ask them.

@Ram : My stored procedure is having only 1 select with multiple joins. And i verified it is not returning multiple resultsets.
I wish it had :-(

It is still unsolved ,I said thank you because you gave some time to read and reply. But unfortunately it is not solved yet.
Hi Paul,

Thank you for replying.

As mentioned I am execuuting stored procedure and parameters are 2012-03-06 and 0.12 respectively.
I am using Sybase and Java 1.4. The program is executing stored procedure which returns resultset.

Now when I try to execute the stored proc from RapidSQL it is returning me result, but when executed from Java program it gives empty resultset.

It is not giving any exception or error. I tried checking resultset size in Java and it is returning zero.Here is the code snippet,

m_objCallableStmt = p_objConn.prepareCall(P_GET_PRC_CHG_RPT);
m_objCallableStmt.setDate(1, dbDate);
m_objCallableStmt.setDouble(2, m_dblThrhdVal);

m_objRS = m_objCallableStmt.executeQuery();

int cnt =0;
log.debug("Cont of resultset is :"+cnt);

Please let me know what is causing this issue here.

Thanks in advance.

Thank you Fred for point int out and I completely agree with you on this. Will take care next time.

Thank you for your time and effort.
12 years ago
thanks again Ritchie...yes I read whole doc..and it was my mistake i was reading 1.5 javadoc...

BigDecimal constructor does not take int till 1.5 . Now got it all.

Thank you very much once again...
12 years ago
thank you Ritchie.

no it is not whole number. it is number with 6 scale ..

12 years ago
Thank you for response Jeff.

I went through the docs before posting here..Was not able to get clear answer. BigDecimal = new BigDecimal("1") creates new object with 1 as string...while BigDecimal = new BigDecimal(1) is as BigInteger...but in any case it should work. But this program is failing.
12 years ago

What is the difference between BigDecimal bd = new BigDecimal (1) and BigDecimal bd = new BigDecimal("1") ? We are using java 1.4

Please let me know about the same.

Thank you in advance.
12 years ago

I am trying to deploy my application on RAD 7.It is using java 1.4 and Webspehre 6.1 JRE

But when I start application it gives me parsing error with following details.

java.lang.ClassCastException: org.apache.xerces.jaxp.SAXParserFactoryImpl incompatible with javax.xml.parsers.SAXParserFactory
at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
at org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(Unknown Source)
at org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(Unknown Source)
at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.validateTagLib(ValidateVisitor.java:1047)
at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitJspRootStart(ValidateVisitor.java:506)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:138)
at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:121)
at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:127)
at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:214)
at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:100)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.translateJsp(AbstractJSPExtensionServletWrapper.java:453)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper._checkForTranslation(AbstractJSPExtensionServletWrapper.java:421)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.checkForTranslation(AbstractJSPExtensionServletWrapper.java:284)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:139)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:639)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1042)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1005)
at com.ibm._jsp._idtchome._jspService(_idtchome.java:170)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:569)

Please let me know if anybody had similar issue.

Thanks in advance.
thanks stephan for reply.

I agree completely with your point, but my problem is this is exising application in struts1.2 and I am now allowed to change any existing implementation :-(
12 years ago

I have a structure like this...
list -> hashmap

Now I am able to display hashmap values in different textboxes using JSTL but I want to have my original hashmap values also.

Here is how I am displaying my original hashmap.
<c:forEach items="${List[1].termAmtMap}" var="th2Obj">
<html:text property="${th2Obj.key}" value="${th2Obj.value}" size="7"/>%
(<c:out value="${th2Obj.key}" /> Y)

Now I am tring to keep original values also using <c:set> but it is not workin, it says classcastexception and that is becauase Key is integer while value I am setting is String.
<c:set target="oriList[1].termAmtMap" property = "oriList[1].termAmtMap.key" value="${List[1].termAmtMap.key}"></c:set>

Please help with this issue.Thanks in advance.
12 years ago
Hi Joe,

Thank you for the suggestion, I will take a look at that.
12 years ago

My project is on Struts 1.2.

I am having an arraylist say List and that list has litst of Objects say obj.

Now Obj has one filed as hashmap.

When I try to poupalte these hashmap values in different textboxes in JSP it is working fine. But when I hit Submit values this hashmap is not getting populated.

Here is code snippet...

<c:forEach items="${List[1].TermAmtMap}" var="th2Obj">

<html:text property="${th2Obj.key}" value="${th2Obj.value}" size="7"/>%

(<c:out value="${th2Obj.key}" /> Y)


Please let me know how this can be handled.

Thanks in advance
12 years ago

I have a hashmap which has object in its value, I want to display value for the key passed in JSP.

E.g HashMap is hm and it has object obj which is like

class Obj{
private string id;
private String name;

getter setter for these two.....
hm.put ("1", obj)

Now in JSP I want to display name for the object with key 1 and key 2.

When I try like this <html:text property="hm.1" /> it gives object, but I want to display name in object with key 1.....

Please suggest solution for this...

Thanks in advance.
12 years ago