Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP calling JSP?

Status
Not open for further replies.

tictaclam

Programmer
Jan 8, 2004
47
US
Hi
I am working on an existing project and everything is written in asp. The company now decided to use a jsp based tool. I don't need to change the existing project (that can stay in ASP). Can I called a jsp page from an asp page? And if so can i transfer values between them? Currently i have a mix of asp and java script. The java scrip has three arrays which i need to be able to access in the jsp code. Is this possible? Thanks
 
Yes and Yes

are the platforms running on the same server?

passing objects is trivial really. both platforms will be able to iterate the form collection no matter which submitted it. If the two are running on sperate servers it may get hairy though.

___________________________________________________________________

The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
 
you can also use iFrames and pass the values to each other via javascript. That can get messy and a interesting hack on the client level though

___________________________________________________________________

The answer to your ??'s may be closer then you think. faq333-3811
Join the Northern Illinois/Southern Wisconsin members in Forum1064
 
How can I call the page.jsp from an asp file? i tried redirecting to it by
<%Response.Redirect("/Somepage.jsp") %>

However when i try to get to this page I get a dialog saying:
"Some files can harm your computer. If the file information below looks suspicious, or you do not fully trus the source, do not open or save this file."

I get the option to open save or cancel and if i do any of these all it does is open the jsp file for me to look at. Obviously i am doing something wrong any ideas?
thanks
 
I do not believe you can call a jsp page through iis. Since you are working through iis to run the asp pages, you will need to point to the port that is listening for the jsp page calls. What are you using to serve the jsp pages? Tomcat? BEA?

 
Quite : You are getting the "save as" dialog because IIS will not understand the MIME format, nor will understand it as being a server-side file to process (ie an ASP page) - and so will just prompt the user to download it.
 
ok i'll look into the server and see if i can change it. Currently i don't have access to the server it's someplace else in the compnay. I guess i'll have to go track it down.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top