Mukunda s Dhakate

Greenhorn
+ Follow
since Oct 29, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Mukunda s Dhakate

Dear all,

Could it be possible to place Multiple Crystal Report Viewer in a single JSP.

What i wanted to do is to place 5 graphs from different Reports on a single JSP.

Please help.

Thank You
Regards
13 years ago
i am working on the FLOT to draw the charts.
I want to export the drawn charts in to image.
I have found "canvas2image.js" which do the job but not on IE.
As toDataURL() is not supported by IE
I want to do this in IE.

I have also tried to do it with GWT, but I havent figure out How to do it.

Please someone can help me on this issue.
My action uses POST method,
on submitting the form it takes the form values as input values from screen.
But if I append the form variables and their values in the query string and hit the edited URL,
the action gets submitted with the proper values that entered in the query string.

I want to restrict it from populating the form values from query string.

How can it be done?
Please help
14 years ago
Runtime rt = Runtime.getRuntime();
rt.exec("cmd /C start /min "+strBatchPath);

this is working for windows XP,
but not working on the Windows 2000.
please help
16 years ago
I want to Run a Batch file from my Java code.
I m trying it with Runtime.exec("");
But still there is no success.
Please any one help.

I have tried Runtime.exec("cmd /C D:\\aaa.bat").

Thank you
Regards
Mukunda
16 years ago
I am trying to post data to an HTTPS site.
I am using this code

try {
System.setProperty( "java.protocol.handler.pkgs" , "javax.net.ssl" );
java.security.Security.addProvider( new com.sun.net.ssl.internal.ssl.Provider() );
TrustManager[] trustAllCerts = new TrustManager[] {
new X509TrustManager(){
public java.security.cert.X509Certificate[] getAcceptedIssuers(){
return null;
}
public void checkClientTrusted( java.security.cert.X509Certificate[] certs, String authType ) { }
public void checkServerTrusted( java.security.cert.X509Certificate[] certs, String authType ) { }
}
};

SSLContext sc = SSLContext.getInstance( "SSL" );
sc.init( null, trustAllCerts, new java.security.SecureRandom() );
HttpsURLConnection.setDefaultSSLSocketFactory( sc.getSocketFactory() );

URL url = new URL("https://www.google.com/adsense");
HttpURLConnection m_oHttpURLConnection = (HttpsURLConnection) url.openConnection();

m_oHttpURLConnection.setDoInput( true );
m_oHttpURLConnection.setDoOutput( true );
m_oHttpURLConnection.setUseCaches( false );
m_oHttpURLConnection.setRequestProperty( "Content-Type", "text/xml" );
// m_oHttpURLConnection.setAllowUserInteraction( true );
m_oHttpURLConnection.setRequestMethod( "POST" );
// m_oHttpURLConnection.setInstanceFollowRedirects( true );



m_oHttpURLConnection.connect();


} catch (Exception e){
e.printStackTrace();
}

executing this code I am getting Connection Timeout error,
java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:278)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:335)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:176)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:747)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:162)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:133)

Please help me find out the mistake
Sorry for the insufficient data.
Actually
I want to take some data from a page and print it on another page.
I have to send it through the query string.
The data is Japanese text,
when I tried to do that, the data gets printed on another page in the distorted form.
How can I pass the Japanese text through the query string so that It wont get distorted on another page.

Thank you
Regards
Mukunda
16 years ago
JSP
How to pass japanese text from query string ?
[ January 24, 2008: Message edited by: Ben Souther ]
16 years ago
JSP
I am using HttpUrlConnection.
using this I am trying to login on the Gmail account.
I am giving the cookies I have taken from the response before redirecting(respose code 302) to the result page.
but still I am stuck
I am posting the data to the gmail login page.
I have succeeded to post the data but in result,
I am getting the error message that
"Your browser's cookie functionality is turned off. Please turn it on"

could someone please help me in this case

thank you
Regards
Mukunda
Hello friends,
I am trying to check similarity of two documents or two sentances.
I am using TF-IDF and cosine similarity check for this.
But in some cases it does not work.
for example
"Train is delayed"
and
"Train is running late"
these two sentances are similar but we only can recognize this,
using cosine similarity algorithm we cannot get the required result.
Is there any other similarity algorithm which will also work for such cases,
or could any one help me on this case.
Please help me on this.

Thank you
Regards
Mukunda
17 years ago