• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JSP

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I just want to know can I used JSP without Servlets?
Thanks in advance,
Angela
 
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Angela,
You can use JSP without servlets.By design, JSP sits on the top of the servlets.Also, when you execute a JSP, a servlet is created for that JSP Page and it follows the same life cycle as the servlet, i.e.,init(), service() and destroy() methods.
If you are very curious , you may look at the Servlet code, that would be generated in the same directory, where you have your JSP.
Hope this helps
Regards,

------------------
Sandeep Desai
vgdesai@vsnl.com

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Exactly Mr.Desai
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Sandeep,
So I can use JSP without Servlets. Can you please let me know from where I can download JSP and which server I can use?
Thanks again
Angela
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Angela,
If you are new to JSP, I suggest you Download class files for JSP 1.2 and Servlet 2.3 found at http://java.sun.com/products/jsp/download.html .This is just Sun's reference implementation web server.Go through the docs t understand how you have to run the webserver.
Once you are comfortable with it, you may try hosting JSP on some good web servers like Tomcat(also found on the above page).Then you may proceed hosting it on an robust Application Server (like IBM Websphere, Oracle 9iAS,BEA Weblogic,etc).
Hope that helps,
Regards,
Sandeep Desai
vgdesai@vsnl.com

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56

  5. [This message has been edited by Desai Sandeep (edited April 11, 2001).]
 
Angela Jessi
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks Sandeep
But When I dowloaded JSP, It gives only jsp file. Now how can I start writing program in JSP and which editor I have to use?
Thanks
Angela Jessi
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Anjela,
After downloading the JSWDK Reference Implementation, you would need to run the WebServer, (normally a DOS batch file called servletrunner.bat, I has used it long time back!!!)
Once you have the webservice running, you could invoke the JSP using a HTTP URL, like http://<name_of_your_machine>:<port_no>/servlets/servlet.
Please refer to the documentation for more information.It is very well-written.Most likely you would not have any problems with it.
As regards editor for JSP, you may start off with a simple TEXTPAD editor.Once you are comfortable with it, you may consider using popular Java IDE's (Integrated Development Environment) like IBM Visual Age for Java, Borland JBuilder, Oracle JDeveloper,etc. to develop your JSP's and other Java code.
Let me know, if you still face any problems
Regards,
------------------
Sandeep Desai
vgdesai@vsnl.com

  1. Sun Certified Java Programmer Scored 93 per cent
  2. Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java Scored 56 out of 59
  3. IBM Enterprise Connectivity with J2EE Scored 72 per cent
  4. Enterprise Development on the Oracle Internet Platform Scored 44 out of 56
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic