通过Android App在后端服务器上运行JSP文件脚本?
您好,我想知道是否可以通过 Android 应用程序运行保存在后端服务器上的 JSP 脚本。基本上,用户登录后可以访问此 JSP 脚本,他可以输入一些值,例如服务器 X 和选项 Y,按下 Android 应用程序中显示“更新”的按钮,该按钮会将所选值传递到服务器,然后运行服务器端的 JSP 脚本用于在某些后端服务器上执行更新。我还没有在 Android 中看到很多关于此类内容的资源,有人有任何例子吗?谢谢!
Hi I wanted to know if it is possible to run JSP scripts that are kept on a backend server through an Android App. Basically the user would log in which would give him access to this JSP script he could enter some values like Server X and Option Y press a button that says "Update" in the android app which would pass the selected values to the server and then run the JSP script on the server side to perfrom an update on some backend servers. I havent seen many resources on this kind of stuff in Android does anyone have any examples? Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不完全确定我理解您想要实现的目标,但如果您询问是否可以通过 HTTP 向 JSP 发送请求,那么可以。那里有很多技巧;试试这个:
Android 代码片段:使用 HttpClient 执行 HTTP POST 请求
Not entirely sure I understand what you're trying to achieve, but if you're asking whether you can send a request over HTTP to a JSP, then yes you can. There are plenty of tips out there; try this one:
Android Snippets: Executing a HTTP POST Request with HttpClient
您可以使用 Google App Engine 来实现这一点。
它甚至还带有相当不错的免费配额。
http://code.google.com/appengine/
You could use Google App Engine for that.
It even comes with a decent free quota.
http://code.google.com/appengine/