• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP simple problem

 
Harshana Dias
Ranch Hand
Posts: 343
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey,
This may be a stupid question but thought of asking here.
It was saying that html is client side and php is server side like wise is JSP client side? As i know Servlet is server side but what make me confused was since JSP is going ultimately going to be a Servlet.

Thank You.
 
Ashish Nandan
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

JavaServer Pages (JSP) is a Java technology that allows software developers to create dynamically generated web pages, with HTML, XML, or other document types, in response to a Web client request.
The technology allows Java code and certain pre-defined actions to be embedded into static content.
This should suffice your doubt.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSP is a server-side technology. You might find this article helpful

Ashish Nandan wrote:The technology allows Java code ... to be embedded into static content.

It is no longer acceptable to embed Java code in JSPs.

Also, if you are going to copy something you found on the web, please cite your source. Don't just post it as if you wrote it.
 
Harshana Dias
Ranch Hand
Posts: 343
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thnkx BB but what about MVC architecture then. View is suppose to be the JSP which should be client side know?
 
Devaka Cooray
ExamLab Creator
Marshal
Pie
Posts: 4594
302
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harshana Dias wrote:thnkx BB but what about MVC architecture then. View is suppose to be the JSP which should be client side know?


JSP 'runs' in the server side, and it produces an html-based response which will be sent to the client. And thus what you can see in the browser, is the html-based output which is generated by the jsp. JSP does this html generation in the server side, and the web browser does the html rendering part in the client side.

Devaka
 
Harshana Dias
Ranch Hand
Posts: 343
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankx Devaka..very clear answer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic