aspose file tools*
The moose likes JSP and the fly likes hello help me in authentication Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

hello help me in authentication

vinaykumar singh
Greenhorn

Joined: Jan 14, 2006
Posts: 13
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

Joined: Mar 21, 2006
Posts: 94
<jsp:forward page="success.jsp">

I think you missed to close this tag.



Manesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hello help me in authentication