This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access ASP response from JSP

 
Sanjaya KasthuriArachchi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thank you very much for the info. I'll follow your guide-lines.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic