• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Reading .asp file from servlet

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
does any body know how to read .asp file from a servlet by passing user id information to that file.(.asp file has all the user information)
Please give me the code if anybody knows
thanks
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From your servlet code use the url and urlconnection classes , passing the url to the asp page you need to access with the querystring having the userid.. do a read on the url and you will have the entire html output (asp throws back html output after processing the scripts on the server side). Now you can parse the html to have the necessary information in your servlet.. it is very simple and i am sure you should be able to do it.. just remember that i am assuming here that the asp page takes its input (the userid) as a querystring and the html output it throws is of a standard format that is already known to you.. best of luck..
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
thanks for ur help, do u have the code for this byany chance.
(i am unable to post this with my privious name Kavin, that's why i am using other name)
thank u
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried your suggestion of using urlConnection, but it complains about "can't find the asp file". I am using IIS with servletExec as plug in. Is there configration that needs to be done?
 
reply
    Bookmark Topic Watch Topic
  • New Topic