473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

When u use html, whenu use servlet, when u use jsp

sanjay123456
125 100+
Hello friend ,

When u use html, whenu use servlet, when u use jsp ?


sanjay
Jan 22 '07 #1
3 1496
r035198x
13,262 8TB
Hello friend ,

When u use html, whenu use servlet, when u use jsp ?


sanjay
Generally

Use HTML for static pages whose contents do not change. HTML pages load faster and you should take advantage of this feature for pages that do not require any dynamic content from a database.

A JSP is compiled client-side and so takes longer to load than an HTML page. Use a JSP for displaying dynamic content changed from a database. JSPs use Java language statements and so can be used to do things that can be done by a standard Java program. Always remeber that a JSP page is compiled on the server evrytime it is loaded or refreshed so if the contents of a database change, then the JSP is capable of displaying these changes.

A servlet is loaded once on the server. Use it to perform logical operations and code extensive operations. Servlets should be used to control the behaviour of the application and to process requests from clients from HTML or JSP pages.
Jan 22 '07 #2
sanjay123456
125 100+
Dear r035198x

thx for Answer .

sanjay
Jan 23 '07 #3
r035198x
13,262 8TB
Dear r035198x

thx for Answer .

sanjay
It was a very general answer. You should read more about MVC e.t.c to fully grasp their applications.
Jan 23 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Alex Molochnikov | last post by:
Is there any way to embed the HTML code inside FRAMESET? Something like this: <frameset cols="50%,*"> <frame src=" ... HTML code for the frame ... "> <frame src="Frame2.html" name="main">...
0
by: cwho.work | last post by:
Hi! We are using apache ibatis with our MySQL 5.0 database (using innodb tables), in our web application running on Tomcat 5. Recently we started getting a number of errors relating to...
0
by: sandydon | last post by:
when am trying this in xsl page <xsl:variable name="myArray"><item>item1</item><item>item2</item></xsl:variable> <xsl:value-of select="$myArray/item"/> i got the following error HTTP...
3
by: arasub | last post by:
ep 20, 2007 11:25:57 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found...
9
by: ajos | last post by:
hi all, im getting some problems in my javascript validations..... my jsp code--> 8: <head> 9: <title>Budget Master Administration</title> 10: <meta name="GENERATOR" content="Microsoft...
0
by: j74 | last post by:
I was testing some concepts and I came across following scenarios where include file does not seem working. Is the test code issue or some ATG setting issue? Though DSP jsp include works but jhtml...
1
by: venkatesham143 | last post by:
UploadImage.jsp :- <body> <form name="UploadImage" method="post" action="UploadImageServlet" > Building Image: <INPUT type="file" Size="33" contentEditable="false" name=image...
3
by: vijaykumardahiya | last post by:
Hello To Every One, I want to know that when I upload the File like a image from html page Its not show on servlet page using appropriate logic. I read the FileUpload Home page.But I am still...
5
by: sayeo87 | last post by:
Hi, I am quite new to JSP so please forgive me if I ask really simple things... I am trying to run system commands on the server and display the output on a webpage. This is what I've got: <%@...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.