Hiiiiiii Freinds......I am a newcomer in the field of JSPs and Servlets.I am developing a web application and having a problem in forwarding control from one page to another page
welcome page of my application is index.jsp which is divided into three frames one frame is reserved for taking user input details i.e. username and password.after clicking upon submit button control should go to loginhandler.jsp after that a page welcome.jsp should open with welcome, username printed over it.
But i have a problem, upon clicking the submit button nothing is happening.What is the problem behind?please help me!
I am attaching code snippets with message.
thank you for suggestions freinds!
i have edited the code for loginhandler.jsp,i application is in development mode and i am checking database connectivity at primary level....i want to knowthings like database beans are required at this level or not?
submit button is working now but even after entering the correct login details loginfailed.html page is openning!
formatted codes are given below
Adding code tags after you've lost the formatting won't help. If you use code tags and put formatted code between them, the formatting will be preserved.
Joined: Oct 17, 2009
please don't keep aside my queries and questions.i am looking for someone who can resolve them out after looking up the code thoroughly as i am not able to understand how indentation would be done?reply please?
It's hardly surprising that things don't work. You have scriptlets in your JSP -- that's a bad thing. Not only that but you have your JDBC connection hard-coded in those scriptlets -- that's not a very good idea. Not only that but you are trying to use the JDBC-ODBC bridge and there's a good chance you haven't configured an ODBC data source on the server where the JSPs are running.
Anyway it might well be that one of your JSPs is throwing an exception. Have a look in the server logs to see if that's the case.
Ankit Tripathi wrote:please don't keep aside my queries and questions.i am looking for someone who can resolve them out after looking up the code thoroughly as i am not able to understand how indentation would be done?reply please?
The thing is that unindented code is unnecessarily difficult to read: you're a *lot* more likely if you put the effort in to make things as easy as possible to help you.
Joined: Oct 17, 2009
I have separated the business logic and view.but this time i am getting a new error-
/loginhandler.jsp(4): class 'com.mycompany.login.Login' could not be loaded
probably occurred due to an error in /loginhandler.jsp line 4:
<jsp:useBean id="idHandler" class="com.mycompany.login.Login" scope="request" /> i am using weblogic 8.1 and oracle database server.codes for JSPs and bean class are given below-