File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes JSP simple problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSP simple problem" Watch "JSP simple problem" New topic
Author

JSP simple problem

Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 325
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

Joined: Jun 03, 2009
Posts: 22
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.

Regards,
Ashish Nandan
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 325
thnkx BB but what about MVC architecture then. View is suppose to be the JSP which should be client side know?
Devaka Cooray
Saloon Keeper

Joined: Jul 29, 2008
Posts: 2694
    
    3

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


Author of ExamLab (Download) - the free mock exam kit for SCJP / OCPJP
Home Page -- Twitter Profile -- JavaRanch FAQ -- How to Ask a Question
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 325
Thankx Devaka..very clear answer
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSP simple problem
 
Similar Threads
Resolution Idependent JSP page
Display message while loading heavy image
Resolution Idependent JSP page
trace the browser window closing in a servlet/jsp
How do i Identify which component(JSP,Sevlets,AWT) to be used for a Particular purpos