sannareddy sudheer

Greenhorn
+ Follow
since Jul 16, 2003
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 sannareddy sudheer

Hi,

I am trying to nullify the cookie value at the client side using $.cookie("cookiename",null); but it is not working properly. Some times it sets the cookie to null and sometimes it doesn't. Could you please let me know, if I am missing anything here or is there any better approach to do that.

Thanks in advance.

Sudheer.
Hi,

I need to draw class diagrams by doing reverese engnieering for the exisitng Java/J2EE project and I am using Eclipse Galileo with java 1.6. Could you please let me know the UML plugin for Eclipse, which best suits my requirement.

Thanks a lot,
Sudheer.
Hello,

we are facing issues in executing the HQL query with LeftOuterjoin fetch , while exceuting the query it is appending the leftouter join conditions for the properties which exists with OR condition in the where clause, at this moment it is throwing an Exception saying that 'ORA-01719: outer join operator (+) not allowed in operand of OR or IN'.

The query should look like this:

FROM DDR_TARGETED_DRG_LIST ddrtargete0_,
DRG drgvalue1_, CODE codevalue2_, DRG drgvalue3_,
CODE codevalue4_, DRG drgvalue5_, CODE codevalue6_

WHERE ddrtargete0_.PRIMARY_DRG_ID=drgvalue1_.DRG_ID(+) AND ddrtargete0_.PRIMARY_DRG_ID=drgvalue1_.DRG_ID(+) AND drgvalue1_.MDC_CODE_ID=codevalue2_.CODE_ID(+) AND ddrtargete0_.DRG2_ID=drgvalue3_.DRG_ID(+) AND ddrtargete0_.DRG2_ID=drgvalue3_.DRG_ID(+) AND drgvalue3_.MDC_CODE_ID=codevalue4_.CODE_ID(+) AND ddrtargete0_.DRG3_ID=drgvalue5_.DRG_ID(+) AND ddrtargete0_.DRG3_ID=drgvalue5_.DRG_ID(+) AND drgvalue5_.MDC_CODE_ID=codevalue6_.CODE_ID(+) AND (drgvalue1_.DRG_CODE =014 or drgvalue3_.DRG_CODE =014 or drgvalue5_.DRG_CODE =014) AND 1=1 ORDER BY DRG_CODE

but in Hibernate , when we add a Criteria with 'LeftOuterjoin' , it is generating the query as below:

Select * from DDR_TARGETED_DRG_LIST ddrtargete0_, DRG drgvalue1_, CODE codevalue2_, DRG drgvalue3_, CODE codevalue4_, DRG drgvalue5_, CODE codevalue6_ where ddrtargete0_.PRIMARY_DRG_ID=drgvalue1_.DRG_ID(+) and ddrtargete0_.PRIMARY_DRG_ID=drgvalue1_.DRG_ID(+) and drgvalue1_.MDC_CODE_ID=codevalue2_.CODE_ID(+) and ddrtargete0_.DRG2_ID=drgvalue3_.DRG_ID(+) and ddrtargete0_.DRG2_ID=drgvalue3_.DRG_ID(+) and drgvalue3_.MDC_CODE_ID=codevalue4_.CODE_ID(+) and ddrtargete0_.DRG3_ID=drgvalue5_.DRG_ID(+) and ddrtargete0_.DRG3_ID=drgvalue5_.DRG_ID(+) and drgvalue5_.MDC_CODE_ID=codevalue6_.CODE_ID(+) and ((drgvalue1_.DRG_CODE=? and <i>ddrtargete0_.PRIMARY_DRG_ID=drgvalue1_.DRG_ID(+)</i> OR(drgvalue3_.DRG_CODE=? and <i>ddrtargete0_.DRG2_ID=drgvalue3_.DRG_ID(+)</i> OR(drgvalue5_.DRG_CODE=? <i>and ddrtargete0_.DRG3_ID=drgvalue5_.DRG_ID(+)</i> AND(1=1 )) order by ddrtargete0_.DDR_TARGETED_DRG_LIST_ID ASC

please let me know , how to avoid appending this leftouter join condition in the where clause with each property having OR condition.

thanks in advance.
Thanks Ulf Dettmer , we have mistakenly put <xsl:output method="text" > and we haven't given any name for the <worksheet> . after removing the <xsl:output method="text" > (by default 'xml') and adding the <worksheet> name it works fine.
I would like to add a few more points:

by defaulat 'isErrorPage' is set to 'false' , if you set 'isErrorPage="true"
in any JSP , the implicit object 'Exception' will be available to that JSP page.
15 years ago
JSP
Hello,

in page directive (<%@ page ) it has two attributes 1)errorPage 2)isErrorPage. when any exception occurs in your pplication to show the user friendly message to the user you can define a jsp(errorpage) by specifying the 'isErrorPage='true'' in the page directive like <%@ page isErrorPage="true" %> and in all other JSP pages you need to set this error page URL to the errorPage attribute of the 'page' directive like '<%@ page errorPage="jsp/errorPage.jsp" %>' . what it does is if any exception occurs in any of your JSPs it redirects that exception to the JSP which is mentioned in 'errorPage' URL.

i hope it helps.
15 years ago
JSP
Ulf Dittmer ,Thanks for the reply. If you come across any sol for the same please reply back.
Hello try this one , no need to get he list(enumeration) of parameter names if the pair of the names like 'taskID_1' , 'description_1' and 'taskID_2' , 'description_2' etc like that use the follwing logic , it will work fine.

for(int index = 1 ; index <= noOfPairs ; index++){
taskBean = new TaskBean();
String taskID = request.getParameter("taskID_"+index);
if(taskID != null){
taskBean.setTaskID(Integer.parseInt(taskID));
taskBean.setDescription(request.getParameter("description_"+index);
}
taskList.add(taskBean);
}

try to get the 'noOfPairs' value using hidden variable if the number of pairs are static.

hope it helps.
15 years ago