954,568 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

how to start with JSP

hi,
I m new in JSP can any one help me how to start with jsp.
i just download the tomcat. how i write my first program and run it

Thankx in advance:)

neha555
Newbie Poster
1 post since Jun 2008
Reputation Points: 10
Solved Threads: 0
 

by reading the tutorials that come with it and the JEE distribution from Sun.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

Apache Tomcat FAQ plus learn from Java EE 5 Tutorial plus there are many good books specialy from O'Reilly

peter_budo
Code tags enforcer
Moderator
15,436 posts since Dec 2004
Reputation Points: 2,806
Solved Threads: 902
 

it is very simple,

<html>
<body>
<p>&nbsp;</p>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing
="0" width="460" bgcolor="#EEFFCA">
<tr>
<td width="100%"><font size="6" color
="#008000">&nbsp;Date Example</font></td>
</tr>
<tr>
<td width="100%"><b>&nbsp;Current Date 
and time is:&nbsp; <font color="#FF0000">
<%= new java.util.Date() %>
</font></b></td>
</tr>
</table>
</center>
</div>
</body>


save this file with jsp extension and run it in browser,prior to that u have start tomcat server like clicking tomcatfolder/bin/strartup.bat

gorty
Newbie Poster
5 posts since Jun 2008
Reputation Points: 10
Solved Threads: 1
 

that's one bad JSP. Scriptlets, no proper headers, etc. etc.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You