Vishu Neelavalli

Greenhorn
+ Follow
since Aug 07, 2001
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 Vishu Neelavalli

hi..small doubt..
when iam working with URLConneciton classes, tryingto communicate with CGI Scripts..i get an exception like
java.net.ProtocolException: Can't reset method: already connected
can some body thro some light..on it..urgently..
thanks,
Vishu
hi ,
I have a small doubt..
There is some javascript on the webpage that "posts" the form data to some cgi script. The javascript checks for some value in the form ..and it just returns "true" irrespective of wheter it find the required value or not..
My Doubt is..
1.Can we(if yes how??)encode this return value in the name/value pair query string we make while communication with CGI Scripts??
2.Does this return value play any role in communicating with the cgi script at all??
urgent please!!
thanks,
Vishu

hi kumar,
thanks for your time..
i have been trying it with URLConnection and also with HttpURLConnection...with partial to no success.
some times ..when i try running my application..coupla times frequently..
it says
<<br /> java.net.ProtocolException: Can't reset method: already connected<br /> >
..is it possible for us to talk online sometime soon!!
we can YAHOO ..my id is "neelavalli@yahoo.com"
we can MSN too..my id is "vishuonline@hotmail.com"
thanks,
Vishu
hi shashank,
thanks for your time..
yeah i tried ur way..too.but i could finally figure it out that..there is slightly different way of communicating with cgi scripts with a java program.
firstly we need to extablish teh urlconnection and then we have to chain the i/p & o/p streams to write and retrieve data.
i will hit the forum once i am thru with completely..
thanks,
Vishu.
22 years ago
Hi frieinds,
i have a small trouble..while dealing with URLConnection..classes
I will first give u a very brief overview of my prog's functionality..
we all have so may forms on the WWW..some use the method "POST" and some use "GET" to send the data back to the server..
(the forms may be simple mail related stuff to search engines..i am interested in search engine forms..)
now..i we want to query a search engine ..
"using my java APplication"
scenario..
1.if the engine's form uses the method "GET".i can always observe the query string that gets displayed in the browser url box time to time and then employ the same to do my work.
2.(MAIN question********)
how to query the engine if it uses the method "POST"??
i know that we can get the input and output streams once the urlconnection is establised..but when i am writing to the outputstream..nothing is working...
kindly throw some light on this issue at your earliest convenience..
thanks,
Vishu
22 years ago
Hi frieinds,
i have a small trouble..while dealing with URLConnection..classes
I will first give u a very brief overview of my prog's functionality..
we all have so may forms on the WWW..some use the method "POST" and some use "GET" to send the data back to the server..
(the forms may be simple mail related stuff to search engines..i am interested in search engine forms..)
now..i we want to query a search engine ..
"using my java APplication"
scenario..
1.if the engine's form uses the method "GET".i can always observe the query string that gets displayed in the browser url box time to time and then employ the same to do my work.
2.(MAIN question********)
how to query the engine if it uses the method "POST"??
i know that we can get the input and output streams once the urlconnection is establised..but when i am writing to the outputstream..nothing is working...
kindly throw some light on this issue at your earliest convenience..
thanks,
Vishu
22 years ago
Hi frieinds,
i have a small trouble..while dealing with URLConnection..classes
I will first give u a very brief overview of my prog's functionality..
we all have so may forms on the WWW..some use the method "POST" and some use "GET" to send the data back to the server..
(the forms may be simple mail related stuff to search engines..i am interested in search engine forms..)
now..i we want to query a search engine ..
"using my java APplication"
scenario..
1.if the engine's form uses the method "GET".i can always observe the query string that gets displayed in the browser url box time to time and then employ the same to do my work.
2.(MAIN question********)
how to query the engine if it uses the method "POST"??
i know that we can get the input and output streams once the urlconnection is establised..but when i am writing to the outputstream..nothing is working...
kindly throw some light on this issue at your earliest convenience..
thanks,
Vishu
hi madhav,
i could finally figure it out..
the url(which the JEditorpane uses) was not being recognized for file opening..
so..i just needed to extract the file name outof the url and it just runs fine..
thanks for your time..
Vishu.
22 years ago
hi,
i got a small exception trouble for the nerds.
i have a JEditor pane that shows HTML content, on clicking a button.
this is the code.
**an small overview of the functionlaity is below the code.**
----------------------

-----------------------
my editorpane is basically doing a powerpoint presentation(saved in html format). i save the slide/htmlfile sequence on a linked list and then pop-up each of them in sequence upon mouse-clicks on the button "next". and i am also recording the mouse clickes simultaneously as you can see i am using the 'date' class.
this code runs great.
Now to the trouble-point.
now if i open another small file and try to search for some small string in it..and based on whether the required string is present or not(just a simple if condition), if i try to record the mouse clicks..it throws some exception and the dialog-box pops up..saying "Invalid URL".
here is its code..
------------------

---
I got no clue why that happens..
any early light on this is greatly welcome.
thanks,
Vishu
ps:
pl use the [ code ] [ / code ] tags (without the spaces) when posting source code. thanks.
- satya

[This message has been edited by Madhav Lakkapragada (edited September 07, 2001).]
22 years ago
thanks for your time,
my application has to get the search results from the search engine..we can always establish a connection with a search engine by using the query string..(when the form in the search engine employes a GET method of sending the data..example Dictionary.com)
but when the form is using the method POST to send the data, we dont have an explicit query string to establish a connection and get the data..
How to do it in this case??
I hope i am clear this time..
thanks,
Vishu
22 years ago
hi ..
i have a small problem..for HTML for processing in java Application..
For the method "GET" we know..we can use the query string to 'establish a Connection'with the server and retrieve the results..as simple as we establish connection with any other sever..
how do we get the result of submission of a form that uses the method "POST" in HTML forms.?yes using a java aplication..
please answer at your earliest convenience..
thanks,
Vishu
22 years ago
hi friends..
i have a small problem here..
i made an application(frame standalone...)that displays web-pages(html content) and like on the click of a button..(the files currently are local)but my requirement is to make it accessible on the web.
So.
1.is there anyway i can make my application run on the web/browser.
2.for that is there any way other than making an applet?
becoz whne i made the same thing as an applet i am getting numerous security exceptions..
can somebody throw some light on this.. i think i am oblivious of something very basic dealing with..this..
at yur earliest conveneince..
thanks..
Vishu
------------------
have fun
22 years ago
hi..
i am facing a small problem with swing aplets..especially when painting them in browser.
Normal awt aplets get painted well but with swing applets..
browser says "class not found"
can anyone please throw some light on this..
at the earliest..
thanks in advance,,
Vishu
22 years ago