简体   繁体   English

如何从.net打开jsp或java servlet

[英]How to open jsp or java servlet from .net

Is there a way that I can open a jsp or call java servlet from .net and pass in parameters? 有没有一种方法可以打开jsp或从.net调用Java servlet并传递参数?

I am working on a project to process a credit card payment for a client. 我正在做一个为客户处理信用卡付款的项目。

On Client server side: 在客户端服务器端:
- client is using .net framework -客户端正在使用.net框架
- client wants to send user to my java server to process credit card payment. -客户希望将用户发送到我的Java服务器来处理信用卡付款。
- need to send over invoice #, customer id, return url to my java jsp or servlet -需要发送发票编号,客户ID,返回URL到我的Java JSP或Servlet

On my java server side: 在我的Java服务器端:
- get the parameters, display a page for user to enter payment info and process credit card payment -获取参数,显示页面供用户输入付款信息并处理信用卡付款
- return a status code using the provided return url -使用提供的返回网址返回状态代码

What is the easiest way to achieve this? 最简单的方法是什么?

Thanks 谢谢

A servlet exposes a url to the web you can call servlet using this url . servlet向Web公开一个URL,您可以使用该URL调用servlet。 you should use a post method as the information you want to send is credit card information then fetc the reply from that servlet in .net and process it. 您应该使用post方法,因为要发送的信息是信用卡信息,然后对.net中该servlet的回复进行处理。 Lemme know if you need further clarification 我知道您是否需要进一步澄清

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM