>>> Jennifer Feeney <[EMAIL PROTECTED]> 05-Feb-01 2:45:03 PM
>>>
>Because servlets are mainy used with HTML clients,
>web browsers, I may have a problem invoking the
>servlets from within the C application and indeed returning
>the result to the C application, Client(on the Pda)....
>Would you agree with this?
No.
>Are there any other ways of invoking a servlet other
>than the usual, Post and Get methods in HTML?
>In other words from a non-html client like my one?
No.
>What about returning type...ContentType....is it
>possible for the servlet to return data to a C client?
Yes.
>I would appreciate it greatly if anyone could throw
>some light on this problem for me..
You don't seem to understand the architecture.
Servlets serve HTTP requests, they're not tied to HTML clients like
browsers, they're tied to HTTP clients (which is what a browser is).
All you have to do is get your C app to generate an HTTP request.
That's not difficult. It simply has to open a TCP socket on the server
(which is beyond the scope of this forum) and send the correctly
formatted HTTP request string down it.
To request an index.html file you might send this over the socket:
GET /index.html HTTP/1.0\r\n
\r\n
The server will then respond with the data.
Basically that's it.
If you need more info try reading some of the stuff on HTTP. There's
a lot of it about. Or look at the source code for one of the free
servlet engines.
Nic
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html