webtier@glassfish.java.net

Re: [webtier] How To Communicate With Servlet From Desktop Application

From: Jason Lee <jasondlee_at_sun.com>
Date: Mon, 24 Aug 2009 14:30:32 -0500

HttpUnit, in case this matters, supports JavaScript, whereas
HttpClient does not:

http://httpunit.sourceforge.net/doc/javascript-support.html

On Aug 24, 2009, at 2:18 PM, Justin Lee wrote:

> This is probably your best option: http://hc.apache.org/httpcomponents-client/
>
> Certainly the most commonly chosen one I've seen used.
>
> Jason Lee wrote:
>> You typically communicate with a Servlet via HTTP. You might look
>> into something like HttpUnit. It's labeled as a testing tool (and
>> a fine one at that), but you can use it to programmatically drive a
>> web page (which I've done). There are other options well, but I
>> think HTTP is what you want, regardless of the library.
>>
>> On Aug 24, 2009, at 12:16 PM, webtier_at_javadesktop.org wrote:
>>
>>> Hi Everyone, i wonder if there is a way to communicate with
>>> servlet deployed into glassfish through a Desktop Application?
>>> May We use JNDI? if so , how can we do it?
>>>
>>> thx for your replies in advance...
>>> [Message sent by forum member 'ilitheblack' (gurcan.ilker_at_hotmail.com
>>> )]
>>>
>>> http://forums.java.net/jive/thread.jspa?messageID=361782
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>>>
>>
>> Jason Lee
>> Senior Java Developer
>> GlassFish Administration Console
>>
>> Sun Microsystems, Inc.
>> Phone x31197/+1 405-343-1964
>> Email jasondlee_at_sun.com
>> Blog http://blogs.sun.com/jasondlee
>> Blog http://blogs.steeplesoft.com
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>

         Jason Lee
Senior Java Developer
GlassFish Administration Console

Sun Microsystems, Inc.
Phone x31197/+1 405-343-1964
Email jasondlee_at_sun.com
Blog http://blogs.sun.com/jasondlee
Blog http://blogs.steeplesoft.com