|
-
error with JSP directive
I coded a simple .jsp file with three input fileds.....it compiled well and
is executing well on the server,
but then for the same....file if i add just one tag....i.e
<%@ page language="java" %>
it is not running and is throwing a pagedirective exception, what could be
the problem, pls let me know..
satish
( this is excuting perfectly) but.........
--------------------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.0.2 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
</HEAD>
<BODY bgcolor="#669999"><H2> THE USER INPUT SCREEN </H2>
<Form method = "post" action ="http://pc27/datahandler.jsp" >
<table>
<tr>
<td>Enter Your NAME </td><td><input type="text" name="NAME" value=""></td>
</tr>
<tr>
<td>Enter Your ADDRESS </td><td><input type="text" name="ADDRESS" value=""></td>
</tr>
<tr>
<td>Enter Your PHONE </td><td><input type="text" name="PHONE" value=""></td>
</tr>
<tr>
<td>Enter Your EMAIL </td><td><input type="text" name="EMAIL" value=""></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Register"></td>
</tr>
</table>
</form>
</BODY>
</html>
-------------------------------------------------------------------------------------------
this is not excecuting....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<% @ page language="java" %> ( NOT EXECUTING)...................................................PLS
CHECK
<HEAD>
<META name="GENERATOR" content="IBM WebSphere Page Designer V3.0.2 for Windows">
<META http-equiv="Content-Style-Type" content="text/css">
</HEAD>
<BODY bgcolor="#669999"><H2> THE USER INPUT SCREEN </H2>
<Form method = "post" action ="http://pc27/datahandler.jsp" >
<table>
<tr>
<td>Enter Your NAME </td><td><input type="text" name="NAME" value=""></td>
</tr>
<tr>
<td>Enter Your ADDRESS </td><td><input type="text" name="ADDRESS" value=""></td>
</tr>
<tr>
<td>Enter Your PHONE </td><td><input type="text" name="PHONE" value=""></td>
</tr>
<tr>
<td>Enter Your EMAIL </td><td><input type="text" name="EMAIL" value=""></td>
</tr>
<tr>
<td><input type="submit" name="submit" value="Register"></td>
</tr>
</table>
</form>
</BODY>
</html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks