简体   繁体   English

如何使用Java与.aspx进行交互?

[英]How to interact with a .aspx using Java?

I'd like to write a java program that has the ability to input information onto an asp, and then read back the data that is returned from the asp. 我想编写一个Java程序,该程序能够将信息输入到ASP,然后读回从ASP返回的数据。

Does anyone have any suggestions on how to go about doing this? 有人对如何执行此操作有任何建议吗?

Is there an easier/more elegant solution than web scraping? 有没有比网页抓取更容易/更优雅的解决方案?

In order for Java code to work in ASP, it has to be compiled byte-code that can be read by the CLR. 为了使Java代码在ASP中工作,必须将其编译为CLR可以读取的字节代码。 A quick Google search of "Java" + ".NET" yielded this: http://www.janetdev.org/ 通过Google对“ Java” +“。NET”的快速搜索,结果如下: http : //www.janetdev.org/

Another thing you could do is just learn C#. 您可以做的另一件事就是学习C#。 If you already know Java, there hardly is a learning curve. 如果您已经了解Java,那么几乎没有学习曲线。

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

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