Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Connect to ASP app via JSP and display output?  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings,

I am trying to use JSP on server A to connect to an ASP app on server B, retrieve the output (based on a parameter) and display it within the jsp page. I have some code already (which does not include the parameter), but it is giving me an error. Here is the code:



The first line of the error follows, please let me know if the rest would be helpful:



Any help would be greatly appreciated.
 
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mike,
We did same thing in past. Although I can't remember how we did.
But what all you need to do is introduce an extra page(it can be HTML) between JSP and ASP.
From JSP call that page, that page internally calls ASP and pass the data from JSP to html page and then through img tag of buffer page, pass the same data to ASP.
 
Marshal
Posts: 67226
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error indicates that there was a syntax error translating the JSP. Is it most likely unrelated to what you are trying to do. The details should be available somewhere in a log file or on the console.
 
Mike Sami
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the responses. I actually finally got this working - which is a big relief. Here's the code I used:


Thanks again,
Mike
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!