问题描述:

Why do we use web services in java instead of jsp-servlet technology as both serves same purpose?

网友答案:

JSP generates HTML that view for Human.

Web services returns data that sort of view for Machine.

网友答案:

Both don't have the same purpose. You could use a web service API to serve the content of your JSPs. So the JSPs interact with your web services. This is just one way of implementing it.

相关阅读:
Top