Sri Palem

Ranch Hand
+ Follow
since Sep 12, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
-2
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sri Palem

My concern is how would one know we should not be editing our responses. If the response is edited how do they know they wouldn't get any responses. Atleast I expect some kind of politeness when responding by not using words like STUPID. Do you agree?
8 years ago
The requirement is, our's is a java standalone application and from there we are displaying URLs in IE browser within our standalone application using Jacozoom tool. We do not have any issues if the URL is static. But when we have to post parameters and if the URL is secure(https), then the problem arises. I tried to using below code. But the problem with this code is i cannot display the urls if it has https protocol. Java is expecting certificate in order to access the URL.
But we wanted to make it generic so that we dont need to keep every certificate in our libraries to access https urls. So we thought of creating index.html where it will redirect to required portal without certificate. Now the problem is it is not asking for any certificate, but how to pass the URL information(URL is dynamic, i should be able to display any https URL) to the html page? Because i have the URL information in my standalone application. how to make a relation between a core java file and a html file.

8 years ago
This kind of explanation helps us more than just saying the reply is stupid. That was the worst reponse i ever got in Java Ranch.
8 years ago
This reply is to Campbell Ritchie

what makes you to feel stupid? I edited my question so that it is understandable. Let me know if that is not understandable.
8 years ago
Edited my question above. Please take a look.
8 years ago
I have one URL and i have to pass some parameters to that URL dynamically. I have those parameters available in a core java class.
I have created some index.html and from there i am trying to redirect to that particular URL. But i do not know how to get the params from java class and pass to index.html.
Can anyone help me on this.

The requirement is, our's is a java standalone application and from there we are displaying URLs in IE browser within our standalone application using Jacozoom tool. We do not have any issues if the URL is static. But when we have to post parameters and if the URL is secure(https), then the problem arises. I tried to using below code. But the problem with this code is i cannot display the urls if it has https protocol. Java is expecting certificate in order to access the URL.
But we wanted to make it generic so that we dont need to keep every certificate in our libraries to access https urls. So we thought of creating index.html where it will redirect to required portal without certificate. Now the problem is it is not asking for any certificate, but how to pass the URL information(URL is dynamic, i should be able to display any https URL) to the html page? Because i have the URL information in my standalone application. how to make a relation between a core java file and a html file.

8 years ago
Thank you so much . I used http instead of https and it worked.
8 years ago
I edited my previous post and pasted exception there. Please have a look.
8 years ago
I am not able to execute below program. Please help.
I have set my proxies as class variables which i did not specify here.
When i used this URL in browser it is working perfectly fine.
https://chart.googleapis.com/chart?cht=lc&chtt=This%20is%20%7C%20my%20graph&chs=300x300&chxt=y&chd=t%3A40%2C20%2C50%2C20%2C200





When executed this code. It is throwing ConnectionRefused Exception..


java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.http.HttpClient.openServer(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source)
at sun.net.www.protocol.https.HttpsClient.New(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source)
at com.perse.swing.browser.SSlPost.getPOSTUrl(SSlPost.java:108)
at com.perse.swing.browser.SSlPost.main(SSlPost.java:35)


8 years ago
How to cluster two Apache2.2 servers?
11 years ago
Sorry for asking again..
i tried with GridBagLayout by using GridBagLayoutConstaints. But still could not achive the requirement. Please help me.
12 years ago
Hello Dunn,

Thanks for your answer, but here first label is also showing ellipses. Since we are showing these 2 labels as part of Checkbox, it should appear like a single label. we should not show ellipses in the middle of 2 labels. and if combination of the both the labels size increased, we have to show ellipses only at the end.

Thanks a lot
Sravanthi
12 years ago


in the above code if we comment adding one of the label, it will show the label in ellipses, if it is exceeding the width of the pane. but i wanted to display these 2 labels side by side and if it exceeds the length of the pane, it should display in ellipses. Please let me know if you understand the problem correctly.
12 years ago
i tried doing this , but it is loosing the feature of showing ellipses if the text size is more than the column width in which it is displaying. Please suggest me solution for this.
12 years ago
Hello Prime,

Thanks for your answer. The solution worked. Can i achieve it without html tags. Because in my requirement, i am displaying all these check boxes with names in a fixed width columns. If the checkbox label exceeds the width limit, It will show the label with ellipses and mouse hovering on the label will show the entire label as a tooltip. If i use html tags for displaying some of the text in bold, its not displaying the ellipses, instead it displaying the whole label in multiple rows. So can i have solution without html tags.

Thanks in Advance,
Sravanthi
12 years ago