it gives me following error
HTTP Status 404 - /jsp-examples/hello
type Status report
message /jsp-examples/hello
description The requested resource (/jsp-examples/hello) is not available.
Dear Roseindia,
Your articles are very good. All your articles are explains the MySQL connectivity. If you provide the jsp and java database connectivity with ORACLE then roseindia is very much benefial for many more programmers.
Why because many of the universities having oracle in thier academic curriculum.
Thank you
I used the code but it appears as wrong. in forwarding the page name has been mentioned as wrong.
<jsp:forward page="hello">
<jsp:param name="username" value="<%=db.getUserName()%>" />
<jsp:param name="password" value="<%=db.getPassword()%>" />
</jsp:forward>
instead of hello it will be login
In the code bellow what does the stand for.
<jsp:forward page="hello">
<jsp:param name="username" value="<%=db.getUserName()%>" />
<jsp:param name="password" value="<%=db.getPassword()%>" />
</jsp:forward>
If you are getting error: "resource not found" ;
then, simply made the following change in loginbean.jsp
--> in place of "hello" write "login"
--> here login is the login.java
Illustrated:
<jsp:forward page="hello"> //**--> make change here
<jsp:param name="username" value="<%=db.getUserName()%>" />
<jsp:param name="password" value="<%=db.getPassword()%>" />
change it to:
<jsp:forward page="login">
<jsp:param name="username" value="<%=db.getUserName()%>" />
<jsp:param name="password" value="<%=db.getPassword()%>" />
Note:
Also see welcome.jsp. If you get error like 'string caannot be declared here',
then do this,
<%
String user = null;
**rest code same//
Hope it helped,
Wolf
i found some difficulties while running these codes in eclipse:
in loginbean.jsp page::
7th line (<jsp:useBean id="db" scope="request" class="logbean.LoginBean" >)--> shows error "multiple annotation found at this line, undefined type"
14th line(<jsp:param name="username" value="<%=db.getUserName()%>" />) and
15th line (<jsp:param name="password" value="<%=db.getPassword()%>" />) lines showing the same error-->
db cannot be resolved..
can any one help me out with the solution?
in regards to the following error:
org.apache.jasper.JasperException: /jspbeanlogin/loginbean.jsp(9,57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
This is a small syntax error in loginbean.jsp...to resolve this issue replace all occurences of value="" with value='' as follows
value="<%=request.getParameter("userName")%>"
with
value='<%=request.getParameter("userName")%>' /* single quotations*/
has something to do with jsp 2.0 I think.
after resolving the syntax error in loginbean.jsp I ran into another issue that I am still trying to resolve. I now recieve the following error from apache tomcat6:
org.apache.jasper.JasperException: /jspbeanlogin/loginbean.jsp(7,0) The value for the useBean class attribute logbean.LoginBean is invalid.
I've tried moving LoginBean.java into folder logbean which is where LoginBean.class resides. I am about to recompile the file and see if this works. If anyone has come accross this, help is greatly appreciated!
Hey Brother can you please tell me how i should put this file in a folder in webapp.
and what change i need to do to run this program in my machine.
thanks.
am having on error on login servlet java
strQuery="select * from userregister where
username='"+username+"' and password='"+userpass+"'";
is there any wrong spelling or missing quotation
I am entering a random username and password bec i dnt know what the values to be entered.
on submit click this is showing...
/loginbean.jsp (line: 9, column: 57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value
and if i have to create a database then how should i create it.
message /loginbean.jsp (line: 10, column: 57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value
in step4 there is 1 error coming in the following line
strQuery="select * from userregister where
username='"+username+"' and password='"+userpass+"'";
the error says "unclosed character literal"
can u plz solve it...
placing files to which foldersrajesh April 8, 2011 at 2:15 PM
sir i m using tomcat so i want to know that where should i placed the file login.java in the classes folder or in jsp-examples folder
error i palcin the fielsrajesh April 8, 2011 at 2:45 PM
it gives me following error HTTP Status 404 - /jsp-examples/hello type Status report message /jsp-examples/hello description The requested resource (/jsp-examples/hello) is not available.
hi tara April 17, 2011 at 6:23 AM
can u please explain me the step 2 and 3 in more detail why is that jsp page required why the mapping is required
checkdarshan July 7, 2011 at 8:26 PM
How you are calling login.java servlet from jsp?
IF SQL 2k5mrbui July 19, 2011 at 4:15 PM
IF I want connect by SQL Server 2005 then I do how?? Sorry, english level very bad! ^^
ThanksVlad June 12, 2013 at 11:32 PM
worked for me!
Suggestion about your articlesLAKSHMIKANTH VALLAMPATI September 17, 2011 at 8:52 AM
Dear Roseindia, Your articles are very good. All your articles are explains the MySQL connectivity. If you provide the jsp and java database connectivity with ORACLE then roseindia is very much benefial for many more programmers. Why because many of the universities having oracle in thier academic curriculum. Thank you
Wrong code postedDeepak Mishra September 26, 2011 at 5:09 PM
I used the code but it appears as wrong. in forwarding the page name has been mentioned as wrong. <jsp:forward page="hello"> <jsp:param name="username" value="<%=db.getUserName()%>" /> <jsp:param name="password" value="<%=db.getPassword()%>" /> </jsp:forward> instead of hello it will be login
feedbackd February 9, 2013 at 3:43 PM
it only goes to the success page. no matter if the values entered are valid or no.
sql query comprison is case-insensitiveBarun October 13, 2011 at 1:12 AM
It was very useful to me to go through it. Thanks a lot for that. But, one thing that I found is that the login-credentials check is case-insensitive.
Something not clear.Kofi December 8, 2011 at 11:53 AM
In the code bellow what does the stand for. <jsp:forward page="hello"> <jsp:param name="username" value="<%=db.getUserName()%>" /> <jsp:param name="password" value="<%=db.getPassword()%>" /> </jsp:forward>
login pagekhushi March 18, 2013 at 12:00 AM
nice help..
For those getting errorsWolf January 27, 2012 at 1:50 PM
If you are getting error: "resource not found" ; then, simply made the following change in loginbean.jsp --> in place of "hello" write "login" --> here login is the login.java Illustrated: <jsp:forward page="hello"> //**--> make change here <jsp:param name="username" value="<%=db.getUserName()%>" /> <jsp:param name="password" value="<%=db.getPassword()%>" /> change it to: <jsp:forward page="login"> <jsp:param name="username" value="<%=db.getUserName()%>" /> <jsp:param name="password" value="<%=db.getPassword()%>" /> Note: Also see welcome.jsp. If you get error like 'string caannot be declared here', then do this, <% String user = null; **rest code same// Hope it helped, Wolf
how to connect with databaseSathish February 2, 2012 at 9:19 PM
it is very useful code. but i couldn't get database values on browser..
Getting errorkarthika February 6, 2012 at 6:21 PM
Am getting error when i click submit button in this app..
helloRamesh February 28, 2012 at 9:11 PM
thanks
html,servlet,jspPunitha February 29, 2012 at 12:29 PM
please provide the code and explanation using db2 and RAD for login page authentication
use of bean .ann March 12, 2012 at 11:03 AM
why ur using bean like loginbean and all here. without bean we cant do login procedure. pls help me
The requested resource (/hello) is not available.Philip April 4, 2012 at 7:55 PM
<jsp:forward page="hello"> Im getting an error in relation to this bit of the code, can anyone help?
j2eewajid May 12, 2012 at 11:02 PM
lot of thanks....!
Login authenticationManoj May 15, 2012 at 10:57 AM
thanks it helped me soo much
error in loginbean.jsp filesoumya May 17, 2012 at 4:24 PM
i found some difficulties while running these codes in eclipse: in loginbean.jsp page:: 7th line (<jsp:useBean id="db" scope="request" class="logbean.LoginBean" >)--> shows error "multiple annotation found at this line, undefined type" 14th line(<jsp:param name="username" value="<%=db.getUserName()%>" />) and 15th line (<jsp:param name="password" value="<%=db.getPassword()%>" />) lines showing the same error--> db cannot be resolved.. can any one help me out with the solution?
ThanksFury91 May 22, 2012 at 8:30 PM
Nice Tutorial, thanks :)
jspbeanloginpratik June 8, 2012 at 11:38 PM
hey friend i am getting arror /jspbeanlogin/ not found when i m trying to run the code in netbeans. please help me out.
in response to error while runningbebop June 11, 2012 at 3:27 AM
in regards to the following error: org.apache.jasper.JasperException: /jspbeanlogin/loginbean.jsp(9,57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40) This is a small syntax error in loginbean.jsp...to resolve this issue replace all occurences of value="" with value='' as follows value="<%=request.getParameter("userName")%>" with value='<%=request.getParameter("userName")%>' /* single quotations*/ has something to do with jsp 2.0 I think.
class attribute logbean.LoginBean is invalidbebop June 11, 2012 at 3:34 AM
after resolving the syntax error in loginbean.jsp I ran into another issue that I am still trying to resolve. I now recieve the following error from apache tomcat6: org.apache.jasper.JasperException: /jspbeanlogin/loginbean.jsp(7,0) The value for the useBean class attribute logbean.LoginBean is invalid. I've tried moving LoginBean.java into folder logbean which is where LoginBean.class resides. I am about to recompile the file and see if this works. If anyone has come accross this, help is greatly appreciated!
Need a HelpPratik June 25, 2012 at 10:02 PM
Hey Brother can you please tell me how i should put this file in a folder in webapp. and what change i need to do to run this program in my machine. thanks.
error issue milot July 11, 2012 at 2:35 AM
am having on error on login servlet java strQuery="select * from userregister where username='"+username+"' and password='"+userpass+"'"; is there any wrong spelling or missing quotation
Username and PasswordRudra Chauhan July 23, 2012 at 11:33 AM
I am entering a random username and password bec i dnt know what the values to be entered. on submit click this is showing... /loginbean.jsp (line: 9, column: 57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value and if i have to create a database then how should i create it.
Code not workingGodala August 21, 2012 at 3:42 AM
the above code which u provided is not working. it says the resource hello is not found which u have mentioned in loginbean.jsp
JSP runnedKB December 27, 2012 at 4:08 PM
I Runned EFFECTIVLY....... just change from "hello" to "login" its working
thanksrayhan December 26, 2012 at 12:53 AM
your code helped me a lot. thanks
errorSagar October 3, 2012 at 12:42 PM
message /loginbean.jsp (line: 10, column: 57) Attribute value request.getParameter("userName") is quoted with " which must be escaped when used within the value
the above codeAnita October 11, 2012 at 2:31 PM
in step4 there is 1 error coming in the following line strQuery="select * from userregister where username='"+username+"' and password='"+userpass+"'"; the error says "unclosed character literal" can u plz solve it...
Error in loginBean.jspmahesh October 18, 2012 at 10:16 AM
I tried this application.But i got an error in loginBean.jsp the error seems like "undefinedtype:logbean:LoginBean" can you please help me
send answers sri December 13, 2012 at 6:56 PM
pls send answers for above questions
Post your Comment