User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 456,603 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,509 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 687 | Replies: 1
Reply
Join Date: Nov 2007
Posts: 1
Reputation: munna_dude is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
munna_dude munna_dude is offline Offline
Newbie Poster

my first jsp code

  #1  
Nov 7th, 2007
hi all
i am new to jsp
i am looking in to this example first...
<html>

<head>

<title>My first JSP page

</title>

</head>

<body>

<%@ page language="java" %>

<% out.println("Hello World"); %>

</body>

</html> 
and save as helloworld.jsp
at present am using linux machine i.e. fedora7.
when i open this page through firefox browser.. it displaying like this

<%@ page language="java" %> <% out.println("Hello World"); %>

can you please help me

thank you in advance
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Feb 2006
Posts: 1,519
Reputation: masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light 
Rep Power: 10
Solved Threads: 136
masijade's Avatar
masijade masijade is offline Offline
Posting Virtuoso

Re: my first jsp code

  #2  
Nov 7th, 2007
Because jsp is not html (which is what you've written). JSP produces html, when compiled and executed by an application server (e.g. Tomcat, WebSphere, WebLogic, etc).

Go through this tutorial (its for the last version, but hey) http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
Last edited by masijade : Nov 7th, 2007 at 5:59 am. Reason: typo
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb JSP Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the JSP Forum

All times are GMT -4. The time now is 7:08 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC