PDA

Click to See Complete Forum and Search --> : null pointer exception problem


omarali
Jun 7th, 2009, 07:29 PM
Hi everyone, can anyone help please. I am using neatBeans 6.5.1 to learn how to develop web application. when run the application an error ocurred 'java.lang.NullPointerException' . Thanks alot



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
<title>Murach's Java Servlets and JSP</title>
</head>

<body>
<h1>Join our email list</h1>
<p>To join our email list, enter your name and
email address below. <br>
Then, click on the Submit button.</p>

<p><i>${message}</i></p>

<form action="AddEmailToListServlet" method="get">
<table cellspacing="5" border="0">
<tr>
<td align="right">First name:</td>
<td><input type="text" name="firstName"
value="${user.firstName}">
</td>
</tr>
<tr>
<td align="right">Last name:</td>
<td><input type="text" name="lastName"
value="${user.lastName}">
</td>

</tr>
<tr>
<td align="right">Email address:</td>
<td><input type="text" name="emailAddress"
value="${user.emailAddress}">
</td>

</tr>
<tr>
<td></td>
<td><br><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>

</html>

ComputerJy
Jun 8th, 2009, 05:51 AM
This is an HTML page. Not an application

oceanebelle
Jun 8th, 2009, 03:39 PM
Your error description doesn't really help much.
What part of web applications are you studying?

Like, are you doing pure servlets, or jsp or struts? How did you setup your environment for it?

Also, where are you getting the null pointer exception?

maryjohn
Sep 16th, 2009, 05:00 AM
Hey dude..

Just, Your code is sufficient to show HTML page, there is none line of jsp,servlet or any java code, so i can't help u,
u should mention the java code here so i can solve it..:(