wood burning stoves 2.0*
The moose likes JSP and the fly likes JSP simple problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "JSP simple problem" Watch "JSP simple problem" New topic
Author

JSP simple problem

Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
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: 60799
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
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
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3019
    
  35

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 ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
Thankx Devaka..very clear answer
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSP simple problem
 
Similar Threads
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
Resolution Idependent JSP page