ruba sampath

Greenhorn
+ Follow
since Jun 17, 2011
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 ruba sampath

Hi,

I found a solution for this. We have to use getBytes to convert it:

for example :
String x = new String(request.getParameter("***").getBytes("ISO8859-1"),"UTF-8");


Thanks
10 years ago
Hi,

Thanks for your reply. We are not using web services in our application. we have to fix this issue through JSP. Any idea?

Thanks.
10 years ago
Hi,

I am using jsp with HTML page for my UI design. I need to convert traditional chinese name to english name while submitting the one form to another form. For example, if i enter chinese name in the input text box and after submitting the button it shown as ???. But i need it as a english name. I am getting the value in the jsp page using request.getParameter('*');

Could anyone please guide to resolve this issue.

Thanks.
10 years ago
Hi

Thanks for your reply. The issue has been fixed if i use *_tw.properties. I dont know why its not working if i give it as a *_zh_TW.properties.

Thanks.
10 years ago
Hi,

I am using different language in my application. It's working for english and chinese. I am creating a new proerties file for zh_TW(for Traditional Chinese). I am getting error like

java.util.MissingResourceException: Can't find bundle for base name hrondemand, locale
java.util.MissingResourceException: Can't find bundle for base name hrondemand, locale
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:836)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:726)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:576)


Could you please help me to resolve this issue. Some of the properties are working but still i am getting this error.

Thanks
10 years ago
Hi

Thanks for the sample. I am already doing like this only. but the problem here is i am using text as well as checkbox in my form. i m not getting value for that if i use request.getParameter(), because i m using multipart/formdata in my form. HOW TO RESOLVE THIS?

THANKS.
10 years ago
Hi

I am using "multipart/formdata" in my JSP page to reterive the file as an object. But i am using text fields as well as check box, radio button in my form. After submitting my form only the upload file contain the value. Othe fields are getting null. I think this is because of enctype. How to resolve it to get all the fields value slong with file type values in my servlet.

Thanks
10 years ago
Thank you very much. Its working now. But how to restrict only upload images and pdf and not other types.
10 years ago
Thank you. But i am not using swing or applet in my application. Is it possible to display through ServletOutputStream?
10 years ago
Hi,

I am storing an image or pdf in the database as blob type.

Now i need to disply the image in the UI.

How to disply the image in the UI screen using java code?

Kindly guide us to proceed further.

Thank you.




10 years ago
Hi Rob,

You have understand wrongly. Send me the code in the sense "teach me how to proceed the concept"... I knoe code ranch is for beginners to learn.
10 years ago
Thank you

I have inserted the record in the DB. But before inserting i have to find the file size in JSP using javascript without using ActiveXObject. Please Send me the code ASAP.
10 years ago
Yes Paul. I need to upload the pdf or picture through local PC to database..
10 years ago
Hi,

One clarification.....

will the response.sendRedirectMethod execute inside a while(rs.next()) loop?

11 years ago