Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Vinutha Harishankar

Greenhorn
+ Follow
since Jun 25, 2009
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 Vinutha Harishankar

Thanks very much for that reply.
I understand we can develop RESTFUl webservices to do the CRUM operations using several frameworks and NETBEANS IDE.


But my requirement is develop webservices using a light weight process.
That is I need to do it with simple commons-httpclient.jar.
so can somebody give me a simple java code which uses commons-httpclient.jar which can be incorporated in my eclipse IDE
12 years ago
Hi,

I need to try a sample program by which I have to insert data into a table in oracle database using webservices.
I need to use apache httpclient to achieve this.
I am a new bee to Webservices.Kindly someone share or give the reference of the code to do this..

Thank you
12 years ago
Hi,

how to detect the encoding of the file with Java?
I need to import a file which may hava a utf-8, Unicode or ANSI or some any other kind of encoding.
The code which I am using to read the file as follows
BufferedReader reader =
new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
Since I am using the UTF-8 as the default encoding to read the file, in case the file has some other encodings , I am unable to dispaly the contents properly on my jsp after having been imported.

I am importing a file which has extended characters and special characters as its content

Please anybody suggest a code for the same to handle different encodings of the file
12 years ago
No its the extended characters that would be present in the file I am trying to import
Following are the fonts which I want to import and try to display on the jsp
Bríáñ SwéétíÑg
12 years ago
1) I am sorry the file which I will try to import will be an external one.
i will not have control over the file.It mite be a txt, csv or an excel file.
Therefore not sure if that file will be UTF-8 encoding

What my concern here is to display the imported contents from that file onto a jsp without the extended characters getting corrupted
2)Between reading the file and streaming it to the browser, the text is been processed as follows
BufferedReader reader =
new BufferedReader(new InputStreamReader(new FileInputStream(file), "UTF-8"));
Hashtable data = parser.parse();
3) The content of the page to be displayed is set as follows
<meta content="text/html; charset=UTF-8">
4) Yes it shows as square boxes or qeastion marks in the browser as follows
Sw��t��g, Br���
5) Sorry this has nothing to do with xml.I have posted in the wrong forum

12 years ago
Hi,

I have to import a file which contains extended characters into my application.
I need to display the file contents in a jsp file.
While I am imprting the file the character set used is UTF-8.

But still on displaying the contents on a jsp file after having been imported the the extended characters are corrupted.

Can anybody give a java code as to how to achieve it.
I.e display the extended characters without getting corrupted properly on the JSP page.

I have attached the file which I am trying to import them to display.
12 years ago
Hi,

Can I get the xsl code for escaping the apostrophe .Because if the variable name is passed with an apostrophe in xsl the javascript shows an error message.
The xsl is unable to parse the apostrophe.