Pardha Reddy

Greenhorn
+ Follow
since Mar 11, 2010
Merit badge: grant badges
For More
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 Pardha Reddy

Little late in reply. That worked with org.apache.xerces.impl.dv.util.Base64.

Thanks
9 years ago
I am facing some issue in the code at line Base64.getEncoder().encodeToString("tomcat:tomcat".getBytes()); in run time.

As i am using 1.6.x cersion of jdk, i used Base64.encode("tomcat:tomcat"); The base64 that i am using is from org.apache.xmlbeans.impl.util.Base64.

This is giving exception during runtime. This is not going to any exception or so. But as per the logs it is breaking at this line.
No compilation issues, no issues while testing from junit. Issue only at runtime.

I saw couple of online forums that this is an issue but didn't find the solution.

What third party package supports this now for jdk1.6.x version.

Thanks

9 years ago
Awesome. This helped me to build the code. I made just few changes as per the libraries i am using and in my case response is XML.

Thanks a lot for providing such a simple code.
9 years ago
I have one more question in addition to this. I used the RestTemplate.getForObject for restful service call. But i need to use HTTP basic authentication (RFC 2617). Is it possible with RestTemplate. I saw some method named RestTemplate.exchange. Please suggest.
9 years ago
Thank you Jayesh and Paul. This helped me to move forward.
9 years ago
My requirement is to use spring framework to call a rest service. For that i have a xsd. I need to generte xsdtojava using spring restful service. I need to create a maven dependency for that. I am looking for the right jar(groupId / Artifact Id) file to add in maven. The reason i need to use that is i have some HTTP GET request and basic http authentication etc and want to go with spring as per the project standard.
9 years ago
Hello

I need to consume the restful service using spring. I have an xsd file. I need the right spring jar file(groupId / artifact Id) to convert from xsd to java. Please let me know if need any other jar files that i need to place in maven structure related to spring.

Thanks
Pardha
9 years ago
Both the options not working.

Thanks
Pardha
13 years ago
JSF
Can someone reply for my earlier post.

Thanks
Pardha
13 years ago
JSF
No Luck. Same result -- Null pointer exception whenever beanInstance.beginDate is null from DB.

Thanks
Pardha
13 years ago
JSF
Hi

I have basic question.

I am displaying all the values of output. I am using the below tag to display date. Whenever the date is null, it is throwing null pointer exception. I tried to use rendered to fix this. But didn't work out. Please correct my code and help me.

<h:outputText id="begindate" value="#{beanInstance.beginDate}" rendered="#{! empty beanInstance.beginDate}">
<f:convertDateTime pattern="MM/dd/yyyy"/>
</h:outputText>

When i change rendered ="#{false}". Its working. whenever database value for beginDate is not null it is working.

Thanks
Pardha
13 years ago
JSF
As you are saying new app, I suggest always go with latest version (JSF 1.2) if you environment permits / approves.

Thanks
Pardha
13 years ago
JSF

var varName = document.getElementById(formName+":hiddenField1"); // Here hiddenField1 is id attribute of hidden field.
varName.value="assignmentValue";

This is how variable be assigned to hidden field in javascript. Cross check your syntax once.

Thanks
Pardha
13 years ago
JSF
I found the mistake what I did

I use <from-action> instead of <from-outcome> in <navigation-case> of faces-config

Thanks
Pardha
13 years ago
JSF
Hi

I have a issue in navigating to a new JSP based on condition.

Scenario:

1) I have a search Screen which display records based on search criteria.
2) After displaying the records, there is view / edit icon beside every record so user can see the detail page. Its working good when i click edit button.
3) Whenever the search results size is 1, it should display view / edit page directly instead of displaying search page with one record and click on edit icon.

Here i have a problem. I am briefing the code scenario.
public class Handler{
pubic String searchMethod throws ...{

collection = getSearchResults();
if(collection.size == 1)
{
return "#{handler.detailPage}";
}


return "#{handler.searchMethod}""

}
}
Whenever collection size is 1, it should suppose to go to detail Page. But still in search Page. I declare all the things in navigation case and rule attributes of faces-config
and verified.
One more thing is i am using Websphere portal server and these two JSP pages are not two different portlets.

Thanks in advance for any info / clue.

Thanks
Pardha
13 years ago
JSF