Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Altavista Babelfish translation program

807599Feb 18 2007
Hi,

I have just written a program which translates a word from French to English using the Altavista Babelfish translation website http://babelfish.altavista.com/babelfish/tr

I stole the essential piece of code from the web which sends the text to translate -
babelFishURL = new URL("http://babelfish.altavista.com/babelfish/tr"
+ "?doit=done&intl=1&tt=urltext&urltext=" + frenchWord
				+ "&lp=FR_EN");

babelFishConnection = babelFishURL.openConnection();
next I read the translation with -
babelFishConnection.getInputStream()
It which works but I don?t understand how I could have derived the URL string. Is there a way to capture the string sent when I click the translate button? Is there a better way?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2007
Added on Feb 18 2007
0 comments
294 views