Posted on

MCA 4 : 640002 : Web Technology and Application Development Program

Welcome to Adarsh Patel's Blog

Dear Students,

Find the Sample Programs of JSP (MCA 4 :  640012 : Programming Skills VII)

 

Program No: 1

Program Name: HelloWorld.jsp

Code:

<HTML>

<BODY>

Hello World using JSP!

</BODY>

</HTML>

 

Program No: 2

Program Name: DateTime.jsp

Code:

<HTML>

<BODY>

Date is :  <%= new java.util.Date() %>

</BODY>

</HTML>

 

Program No: 3

Program Name: HelloWorld2.jsp

Code:

<HTML>

<BODY>

<%

out.println( "Hello World using Scriptlet" );

%>

</BODY>

</HTML>

 

 

Program No: 4

Program Name: HelloWorld.jsp (using Expression)

Code:

<html>

<body>

<%=”Hello World!”%>

</body>

</html>

 

Program No: 5

Program Name: Table.jsp

Code:

<table border=2>

<%

for ( int i = 0; i < 10; i++ ) {

%>

<TR>

<TD><%= i+1 %></TD>

</TR>

<%

}

%>

</table>

 

 

Program No: 6

Program Name: index.jsp and page2.jsp

Code:

Program Name: index.jsp

<html><body><form method=”post” action="page2.jsp">Name :  <input type=”text” name=”username” size=20><p><input type=”submit”></form></body>

View original post 52 more words

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s