This week's book giveaway is in the
Agile and other Processes
forum.
We're giving away four copies of
The Mikado Method
and have Ola Ellnestam and Daniel Brolund on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
JSP
Author
hello help me in authentication
vinaykumar singh
Greenhorn
Joined: Jan 14, 2006
Posts: 13
posted
Apr 17, 2006 02:46:00
0
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
posted
Apr 17, 2006 06:06:00
0
<jsp:forward page="success.jsp">
I think you missed to close this tag.
<jsp:forward page="success.jsp"/>
Manesh
I agree. Here's the link:
http://aspose.com/file-tools
subject: hello help me in authentication
Similar Threads
how to import page from other website
Struts validation in Version 1.2.9
Unable to Resolve JSTL taglib Declaration
strut exception
Invalid Standard Action - Error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter