Win a copy of Head First Android this week in the Android forum!

vivek dhiman

Ranch Hand
+ Follow
since Aug 05, 2011
vivek likes ...
Netbeans IDE Tomcat Server
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 vivek dhiman

Hi,

I have hash values like

How can I check in java that input string is hash or not. Should provide ture/false

Thanks,
3 years ago
Hi,

I have on use case. In this, I have one List which contains another List and have a Map inside. As below.

List<List<Map<"String","Object">>> myList;

Initially, our logic store the objects in Map, then , store the map in List. This process continue and we can have below stats :



I am able to sort the Maps that are present in inner lists. Now I want to sort the Inner Lists it selves such that any inner list having lowest value in map should come first. By this I mean to say that, IF ListInner2.Map1 value is lower that ListInner1.Map1 then ListInner2.Map1 should come first.

Please note, Maps are in sorted order  from lowest value to highest value.

Below is the code I tried for sorting Maps:




3 years ago
Hi,

In our project, we are deploying the snapshots of our projects binaries to tomcat/lib directories. Generally, in pom its mentioned

And jar files deployed on qa/dev environments are

We are facing some consistencies issues, like build not happened accurately, some code reflects and some not after build, sometimes its merged old+new code.

My question is, whether such problem can be because we are deploying snapshots version on the environment?

Thanks
4 years ago
Hi,

While creating test cases, I encountered with some unknown error as below :



Below is my class and test case:



Here is class I am trying to test



Any idea, how can I pass through the line      
where test case breaks.

Thanks,
4 years ago
Hi,

I have json of below structure : List<Map>


I need to convert it to CSV file as below:


I am not able to get how to handle blank values, as json is dynamic and new values can be added in future.

Thanks
5 years ago
I am using apache2.2 on windows environment. I have ssi to be include in the content such as :





I have tried using /:, but no effect. On browser its giving error :[an error occurred while processing this directive]

Anyone have idea how to resolve this.

Thanks
5 years ago
Hi,

I have the below code as per the traditional way to iterate and set the object value in hashmap as follows.


Same i want to use with Streams/Lamdas. Below is what I tried which is incomplete. Can someone help in that.

But its adding same object multiple times. Where i as doing wrong. I don't want to initialize the obj inside stream.
6 years ago
Hi, I was writting test case for my controller class. I have method is my controller class as :


I am creating the test case but giving NPE got getCurrentPage. Below is the test code.

Any Idea how can i achieve mocking of getModel() method.
Thanks
6 years ago
Issue solved, added the repository and mirror in %M@_HOME%/conf
6 years ago
Yeah, I have same in settings.xml and project already building if not using profile "local" and using args. I am looking for what is the issue with "local" profile while getting those args from pom.xml. If this is the dependency issue then it should had to fail in last attempt. Also if we go as per the logs maven try to look this dependancy from https://repo.maven.apache.org/maven2 which is central maven repo (not in project pom), this dependancy is on https://repo.adobe.com/nexus/content/groups/public (which is in project pom)



Thanks,Vivek
6 years ago
Hi,

I am using windows and having issue with maven build. I have multimodule maven project. At the parent POM i got few changes that one new profile is there,
name "local". Under the content module there is pom.xml having profile "autoInstallPackage" to deploy whole project. local profile have some properties regarding with servername,serverport
etc. If i build the maven as :

my build goes successfull, But if I use

my build fail with error message:



"local" profile is as below :


Any Idea how can i solve this.

Thanks
6 years ago
Hi,

I have used <%@page contentType="text/xml" %> inside jsp. But no luck, Do you have any idea of plugin that is simple to use & can do formatting of this xml.
6 years ago
JSP

Bear Bibeault wrote:Continue to escape the output, and display it within <pre> tags to preserve formatting.



Hi,

In that case XML displays, but in single line only no indentation. As attached
6 years ago
JSP
Oh Sorry, Attached is what is output. I also want indentation on it. Thanks
6 years ago
JSP
Hi

Now XML is rendering properly after using escapeXML = true in c:out tag. But can you tell me how the indentation can apply on this XML. Attached is the image what i see?

Thanks

6 years ago
JSP