Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
    Bookmark Topic Watch Topic
  • New Topic

hello help me in authentication

 
vinaykumar singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Report post to moderator
hello all
here i wrote a pice of code which takes uesrname and password from login.jsp




<%@ page language="java" %>
<%@ page import="java.util.*" %>


<%
if (request.getParameter("username").length() != 0 ||
request.getParameter("password").length() != 0) {
%>
<jsp:forward page="success.jsp">

<%
}
%>

when i compile this its genrating a errors like this:

org.apache.jasper.JasperException: /jsp/process.jsp(12,0) Expecting "jsp aram" standard action with "name" and "value" attributes
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.parseParam(Parser.java:861)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1813)
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1069)
org.apache.jasper.compiler.Parser.parseForward(Parser.java:911)
org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1222)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1572)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
___________________________________________

plz help me to solve this problem

vinay
 
Manesh Kumar
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Report post to moderator
<jsp:forward page="success.jsp">

I think you missed to close this tag.

 
    Bookmark Topic Watch Topic
  • New Topic