aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes POSTING FROM APP to SERVLET Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "POSTING FROM APP to SERVLET" Watch "POSTING FROM APP to SERVLET" New topic
Author

POSTING FROM APP to SERVLET

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1075
I'm passing some stuff from a Microsoft Application to a Java Servlet (WebApplication) called "dispatcher" (web server extension) like this:
lccmd='run /n7 "C:\Program Files\Internet Explorer\iexplore.exe" ;
http://'+gcWebHost+'/SomeWebApp/dispatcher+ ;
'?txtlogin='+STRTRAN(ALLTRIM(userID),' ','%20')+;
'&txtpassword='+STRTRAN(ALLTRIM(lcPassword),' ','%20')+;
'&fName='+STRTRAN(ALLTRIM(fname),' ','%20')+;
'&lName='+STRTRAN(ALLTRIM(lName),' ','%20')
Naturally, this is coming into the servlet via IE as a "GET".
This works fine, but the fields are visible in IE.
How about if I don't want the fields above to be visible in the URL?
Is there some way to send parameters to IE ... HIDDEN and not visible on the URL line?
Any advice would be appreciated!
-- Mike
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30929
    
158

You can have the URL link to a dummy page which redirects to the real page using a post.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
James Swan
Ranch Hand

Joined: Jun 26, 2001
Posts: 403
What sort of control do you have in the App, are you writing the source code for the App?
Are you able to create ActiveX objects etc?
Anyway, this might be of use, it demonstrates using an activex object for doing a http post (example is in javascript, but it could be modified to say run in VB or something similar.
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1075
THANKS ALL!!!
-- Mike
 
 
subject: POSTING FROM APP to SERVLET