Tiklu Mukherjee

Greenhorn
+ Follow
since Mar 14, 2013
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 Tiklu Mukherjee

Nirmal Mukundan wrote:Hi,

I am parsing the soap response to get the occurance of a particular node and then get the values of the node.
I thought I need to parse it as XML.

Please advice a better way.

I have generated the client classes from wsdl. But I wanted to parsse the response for getting the values of a a particular node.

Regards
Nirmal



Hi,

Here i dont see you defining or identifying the Root Node for your SOAP when parsing.
please go through the DocumentBuilderFactory class documentation.
if you are still not able to parse the SOAP ,please let us know.

Thanks,
abhijitmukherjee655@gmail.com
10 years ago
Hi,
Developed an Approach for shuffling the user Input and reshuffling it back
10 years ago
Thanks Abhay,

This do help with the scenario, i have also designed an alternative approach for this.

~Abhijit(Tiklu Mukherjee)
abhijitmukherjee655@gmail.com
11 years ago
Thanks Abhay,
On confirming that we don't have any such API to Re-Shuffle.
11 years ago
Hi,

I have a scenario where i want to accept an input from user, the input could be any combination of characters/integers. Now we have to Shuffle this input and use this Shuffled input for any particular use(Storing in DB/pass it as token value,etc) please find the below sample code, which is the work done by me to Shuffle the input.

Till this point it is good enough to some extent , but i am looking for a different approach,i tried with Collection.shuffle() API and things go good in all way,
now i also want to Reshuffle back the Shuffled output from Collection.Shuffle() into original Input String.
To be precised,Collection.Shuffle() ,helps me to Shuffle elements in a LIST ,is there any JAVA API which can we used to Reshuffle it back(Here i dont want to use the Direct UserInput to retrieve the Original String).

Thanks for showing me the correct Way of Doing this,
Sincerely,
Abhijit
11 years ago
Hi,

What i can figure it out and accordingly i have a solution,

Try to use JdbcRowSet object , when you create a JdbcRowSet Object pass the resultSet object as a parameter to JdbcRowSet Constructor as below:

where the resultSet object is " SCROLL_SENSITIVE ",so that you can move BACK and FORTH within the resultSet content.
NOTE: (rs) is the result set object that you need to define before jdbcrowset.
After you define the resultSet make the cursor point to the end of the ROW in the resultSet and get the count of that row.
the best advantage of using the JdbcRowSet is that you can scroll at any perticular location in the row , hence forth use

I hope you can figure it out ,or in-case let me know if you need more details .

Thanks,
abhijitmukherjee655@gmail.com
11 years ago

Noopur Kore wrote:Any idea on what changes should I make? I want to upload the file on my servlet, work on it and display it on another JSP.




Hi Noopur,

You can use a Similar logic as below ,by using: DiskFileItemFactory


or else you can check out this link it might help you.

http://docs.oracle.com/javaee/6/tutorial/doc/glraq.html

Thanks
11 years ago