aspose file tools*
The moose likes JSP and the fly likes Connect to ASP app via JSP and display output? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Connect to ASP app via JSP and display output?" Watch "Connect to ASP app via JSP and display output?" New topic
Author

Connect to ASP app via JSP and display output?

Mike Sami
Greenhorn

Joined: Dec 02, 2005
Posts: 2
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.
Jignesh Patel
Ranch Hand

Joined: Nov 03, 2001
Posts: 626

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.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61066
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mike Sami
Greenhorn

Joined: Dec 02, 2005
Posts: 2
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: Connect to ASP app via JSP and display output?