Hello World JSP Page

By this example we are going to teach you that how can
you write a "hello world" on your browser. Jsp can be learned very
easily. This is just the beginning to learn this exciting language. This simple page contains a JSP program and it's output
on browser in running state. This given program of JSP illustrates you how to print
simple "Hello World!" string on the browser through the server side
code (provided by JSP).
This program also contains HTML (Hypertext Markup
Language) code for designing the page and the contents. Following code of the
program prints the string "Hello World!" by using <%="Hello
World!" %> while you can also print the string by using out.println("Hello
World!") in the <% and %> JSP tags.
Here is the code of the program:
<html>
<head><title>Hello World JSP Page.</title></head>
<body>
<font size="10"><%="Hello World!" %></font>
</body>
</html>
|
Output of the program:
Download this example.

|
Current Comments
6 comments so far (post your own) View All Comments Latest 10 Comments:String!
How can I retreive a String variable in javascript from a jsp variable?
var fileName = new Array();
<%
for(i=0; i<StatImgs.size(); i++){
elementAt = subCounEx.getValueAt(StatImgs,i,j);
stringAt = String.valueOf(elementAt);
trimStringAt = stringAt.trim();
%>
fileName[<%=i%>] = <%= trimStringAt %>;
<%
}
%>
This is not correct! Can you help me?
Posted by marialotta on Wednesday, 05.7.08 @ 00:53am | #58740
Please, this site is very good for any category of learner, i just want some sample code for Jsp except hello world.
please help me out.
thanks
cryptic
Posted by cryptic on Tuesday, 11.27.07 @ 09:17am | #40627
how will check valid user using jsp?
Posted by mahi on Friday, 03.9.07 @ 23:20pm | #11276
Thank You sir.Realy your materials are very useful to me and also like new Learners.And Example explaninations are very nice.
Posted by M.Raja on Tuesday, 02.27.07 @ 09:33am | #9786
Thank you sir, realy u r providing excellent material, even u r sharing ur gud knolwedge
Posted by Ratan on Saturday, 02.3.07 @ 12:30pm | #5640
extremely nice sir . keep it up and up .
i think up to my knowledge u r providing the best material for both new and advance lerners
Posted by kamal kishore sharma on Wednesday, 01.31.07 @ 12:25pm | #4866