tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henry" <hxzh...@binary-solutions.net>
Subject Re: client interact with server -- other than "submit"?
Date Mon, 08 Apr 2002 20:09:03 GMT
Thanks  Reynir

I tried your approach, however, the activeXobject seems can not interact
with jsp/servlet very well. I got the whole JSP source code as the
"request.responseText."  (I didn't use SOAP, and i change the requestHeader
to something else)

must i use soap for this kind of transactions at all?


>
> it is possible to send requests and get responses with Javascript in
> IExplorer (5,5+)
>
> I used it to create test clients for SOAP applications :
>
> <script>
>
> var objRequest = new ActiveXObject( "MSXML2.XMLHTTP.3.0" );
>     objRequest.open( "POST", SOAPForm.Url.value, false );
>     objRequest.setRequestHeader ( "SOAPAction", smn );
>     objRequest.send ( xml );
>     divResponse.innerText = objRequest.responseText;
>
> </script>
>
>
> I am not sure if this helps you, but at least I try :)
>
>  - reynir@hugsmidjan.is
>
>
>
>
>
>
> -----Original Message-----
> From: Williams Mark L DLPC [mailto:WilliamsML@ncsc.navy.mil]
> Sent: 8. apríl 2002 18:36
> To: Tomcat Users List
> Subject: RE: client interact with server -- other than "submit"?
>
>
> As far as I know, you can't get a standard browser to send form data to
> the
> server without a "submit." If you want to repaint the form with the data
> in
> the fields, you can send a new verson of the page and form with the
> variables "value"d with the entries. That way, the user doesn't lose any
> entries. And fwiw, my recent experience indicates that the user's
> entries
> don't vanish like they used to, anyway. Not something to count on,
> though.
>
> Mark
>
> -----Original Message-----
> From: Henry [mailto:hxzhang@binary-solutions.net]
> Sent: Monday, April 08, 2002 12:57 PM
> To: Tomcat Users List
> Subject: client interact with server -- other than "submit"?
>
>
> a little off topic here:
>
> is there a way for client side html/dhtml  interact with server side
> (get/set value into database) without resorting to "submit" function?
> The
> reason I want it is that once
> a page is submitted, its content is lost, unless manually reload and
> reset
> all user inputs,
> which is tiresome.
>
>
> thanx a lot!
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>
>
> --
> To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message