• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Access ASP response from JSP

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HI,
I have a small proble. I want to access the response of a ASP page through a JSP page. Actually what happened is, for my project some of my friends have done a dynamic menu using a ASP page. So I was asked to use the same menu for my system. I am developing the system using JSP pages. So I want to get the same menu in to my page. I can do that If I can get the Response of that ASP Page. I tried to use tha "include" and "<jsp:include" but didn't work. If someone can give a clue, that will be a big help. Thanks in advance.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since the ASP page has to be interpreted by a web server, you have to go through the web server to get the output. I think you could create a URLConnection to the server, addressing the ASP page, and slurp up the response. It will be a complete HTML page so you will have to cut out all the HTML you don't need.
I would certainly suggest you start by trying to do that from a freestanding application, NOT a JSP page.
Maybe it would be easier to recode the dynamic menu into Java methods in a Bean.
Bill

------------------
author of:
 
Sanjaya KasthuriArachchi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you very much for the info. I'll follow your guide-lines.
reply
    Bookmark Topic Watch Topic
  • New Topic