Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

org.apache.jasper.JasperException: java.lang.NullPointerException

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
org.apache.jasper.JasperException: java.lang.NullPointerException
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:502)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:430)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


root cause

java.lang.NullPointerException
org.apache.struts.config.impl.ModuleConfigImpl.findActionConfig(ModuleConfigImpl.java:332)
org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:757)
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:443)
org.apache.jsp.web.jsp.HiTech_005fLogin_jsp._jspx_meth_html_005fform_005f0(HiTech_005fLogin_jsp.java:185)
org.apache.jsp.web.jsp.HiTech_005fLogin_jsp._jspx_meth_html_005fhtml_005f0(HiTech_005fLogin_jsp.java:138)
org.apache.jsp.web.jsp.HiTech_005fLogin_jsp._jspService(HiTech_005fLogin_jsp.java:100)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:388)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)



This is my CODE:
Donno hw to resolve:

<%--JSP for Login --%>
<%--this is the first page, it contains login and password text fields and login button --%>



<%@ page session="true" %>
<%
response.setHeader("Pragma","no-cache"); // HTTP 1.0
response.setHeader("Cache-Control","no-store"); // HTTP 1.1
response.setDateHeader("Expires", 0);

%>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html:html>
<head>
<script>
window.history.forward(1);
</script>
<link rel=stylesheet href="/HitechEngineers/web/css/common.css" type="text/css" />
<link rel=stylesheet href="/HitechEngineers/web/css/main.css" type="text/css" />
<title>HITECH ENGINEERING (Base From LEE) - Login Page</title>
<script type="text/javascript">
function login()
{

document.forms[0].module.value="login";
document.forms[0].action="valid.do";
document.forms[0].method="post";
}

function resetall()
{
document.forms[0].module.value="reset";
document.forms[0].action="valid.do";
document.forms[0].method="post";
}
</script>
</head>

<logic:notEmpty name="userName" scope="session">
<body>
<!-- form started -->
<html:form action="/valid.do" method="Post" >

<table class="DefaultTable" width="95%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#BFD5FEA">
<tr>
<table class="DefaultTable" width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#BFD5EA">
<tr>
<td width="10%"><img src="/HitechEngineers/web/images/inner01.jpg" width="136" height="102" ></td>
<td width="33%" bgcolor="#294062"><div align="center">
<table class="DefaultTable" width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#294062">
<tr>
<td width="14%"> </td>
<td width="78%"><font size="3" face="Verdana" color="#990000"> </font></td>
</tr>
<tr>
<td> </td>
<td><font size="4" face="Verdana" color="#FFFFFF"><b>HitechEngineers (Base From LEE)</b></font></td>
</tr>
<tr>
<td> </td>
<td><font size="2" face="Verdana" color="#990000"> </font></td>
</tr>
</table>
<html:hidden property="module" value=""/>
<font size="3" face="Verdana" color="#990000"><b> </b></font></div></td>
<td width="57%" bgcolor="#294062"><table width="59%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="27%"> </td>
<td width="73%"><font size="3" face="Verdana" color="#990000"> </font></td>
</tr>
<tr>
<td> </td>
<td><font size="2" face="Verdana" color="#FFFFFF"> </font></td>
</tr>
<tr>
<td> </td>
<td><font size="1" face="Verdana" color="#FFFFFF"> </font></td>
</tr>
</table></td>
</tr>
</table>
<table width="100%" border="0"><tr>
<td height="31"></td>
</tr></table>

<table width="92%" border align="center" cellpadding="0" cellspacing="0" bordercolor="#BFD5EA" color="cccccc">
<tr>
<td width="326"><img src="/HitechEngineers/web/images/welcome1.jpg" width="600" height="400" ></td>
<td width="627">
<table border="0" align="center">
             
<font face="Italic" size="2" color="red"><b>
<html:messages id="logout" message="true" property="logout">
<bean:write name="logout"/></html:messages></b></font>
<tr><td><center><font face="Italic" size="2" color="red"><b> <html:errors/>
<font color="red"><html:messages id="returnMsg" message="true" property="returnRecords">
<bean:write name="returnMsg"/></html:messages></b></font></center>
</td></tr>

<tr>
<td width="375" align="center"><font size="6" face="Verdana" color="#0C285F">HitechEngineers</font></td>
</tr>
<tr>
<td align="center"><table width="97%" height="146" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="34%"> </td>
<td width="2%"> </td>
<td width="46%"><font size="3" face="Verdana" color="#990000"> </font></td>
</tr>
<tr>
<td>        <b><font color="#000033" size="2" face="Verdana"><bean:message key="user.msg"/><FONT SIZE="1" COLOR="#FF0000">*</FONT> </font></b></td>
<td> </td>

<td><html:text property="userName" maxlength="6" size="31"/></td>

</tr>
<script>

document.loginForm.userName.focus();
</script>
<tr></tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td>        <b><font color="#000033" size="2" face="Verdana">Password<FONT SIZE="1" COLOR="#FF0000">*</FONT> </font></b></td>
<td> </td>
<td><html:password property="password" maxlength="20" size="40"/></td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td align="right"> </td>
<td> </td>
<!-- submit button for login button -->
<td><html:submit value="login" styleClass="Button" onclick="login()"/>
<!-- submit button for clear button -->
<html:submit value="Clear" styleClass="Button" onclick="resetall()" /></td>
</tr>


</table>

<tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr><tr></tr><tr></tr><tr></tr>
<td align="center"><font color="red" size="2" />           <span class="required">* Mandatory Fields</span></font></td>
</tr>

</td>
</tr>

</table>
</td>
</tr>
</table>
</html:form>
</BODY>
</logic:notEmpty>
</html:html>

 
Ranch Hand
Posts: 40
Hibernate jQuery
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please include that code in proper tags so that it'll be more readable and will likely to get an suggestions.
Make sure that your struts.xml contains proper mapping and action class implements required interfaces you've implemented and all..
 
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic