最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Is JSP rendering a client-side or server side in SPRING MVC web application? - Stack Overflow

programmeradmin1浏览0评论

I am using Spring MVC to develop my web applications using JSP and JavaScript/jQuery for front end . With these front-end tech, is view rendering a client-side or server-side rendering as I am in a assumption that all web applications developed with using Struts or Spring MVC are client side rendering as We can see that the view is the presentation layer of an application which is rendered in a user’s browser.

which one is correct in the below?

  1. JSP is a server side technology but it is rendered in user browser which is a client side. Can i say it is a client side rendering?
  2. As Spring controller process the request and returns the result to view using model which is happening at server side , Can I say it is Server side rendering?

This is how MVC works.The client connects to the server and makes a request. That request is handled by a controller (the C). The controller processes the request using the model (the M) and returns the result using the view (the V).

I am using Spring MVC to develop my web applications using JSP and JavaScript/jQuery for front end . With these front-end tech, is view rendering a client-side or server-side rendering as I am in a assumption that all web applications developed with using Struts or Spring MVC are client side rendering as We can see that the view is the presentation layer of an application which is rendered in a user’s browser.

which one is correct in the below?

  1. JSP is a server side technology but it is rendered in user browser which is a client side. Can i say it is a client side rendering?
  2. As Spring controller process the request and returns the result to view using model which is happening at server side , Can I say it is Server side rendering?

This is how MVC works.The client connects to the server and makes a request. That request is handled by a controller (the C). The controller processes the request using the model (the M) and returns the result using the view (the V).

Share Improve this question edited Aug 29, 2019 at 5:43 georgeawg 49k13 gold badges77 silver badges98 bronze badges asked Aug 29, 2019 at 3:42 RamsRams 77910 silver badges11 bronze badges 1
  • 1 The name already says it: Java Server Pages (JSP). With "rendering", in a webapp what is usually meant is "generating HTML". With JSP this happens on the server, so it's server-side rendering. – Jesper Commented Aug 29, 2019 at 9:35
Add a ment  | 

1 Answer 1

Reset to default 7

JSP allows Java code and certain predefined actions to be interleaved with static web markup content, such as HTML, with the resulting page being piled and executed on the server to deliver a document.

If it's piled and executed on the server, it is server side rendering. After it's done with server rendering, it delivers HTML content, that is rendered in a browser.

发布评论

评论列表(0)

  1. 暂无评论