• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to invoke a servlet from ASP  RSS feed

 
Samual Harvey
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone let me know how to invoke a servlet from inside ASP. I have a servlet that takes in a parameter and connects to the database and gets the data. Now I need to call this servlet from an asp page. How can I do it?
Thanks.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sure -- just rewrite the ASP page as a JSP page (helpful ain't I?)
I don't know much about ASP... but can you create something like a URLConnection and use it to make a request to the Servlet -- and have it return the HTML output of the Servlet??
There's no direct way you can call a Servlet from an ASP page that I know of.
 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
AFAIK, ASP does have this -
Response.redirect "URL_HERE?a=1&b=2" construct, and your servlet can handle querystring params in the doGet method.
HTH,
- Manish
 
Samual Harvey
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has any one used CreateObject with MSXML2. I need to find out if its good to use it.
Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!