tomcat server problem

tomcat server problem

hello rose india, my name is raju. I am placing a problem with tomcat5.5 server. when i am trying to execute my project I have deployed my project in tomcat and then i tried to execute first it showed me login page of the project and when i entered the username and password the blank page is appeared. please resolve my problem as soon as possible. thanking you sir, raju.

View Answers

February 19, 2011 at 12:12 PM

JSP Login Application:

1)login.jsp:

<html>
<script>
function validate(){
var username=document.form.user.value;
var password=document.form.pass.value;
if(username==""){
 alert("Enter Username!");
  return false;
}
if(password==""){
 alert("Enter Password!");
  return false;
}
return true;
}
</script>
<form name="form" method="post" action="check.jsp" onsubmit="javascript:return validate();">
<table>
<tr><td>Username:</td><td><input type="text" name="user"></td></tr>
<tr><td>Password:</td><td><input type="password" name="pass"></td></tr>
<tr><td></td><td><input type="submit" value="Submit"></td></tr>
</table>
</form>
</html>

2)check.jsp:

<%@page import="java.sql.*"%>

<%
String user=request.getParameter("user");
String pass=request.getParameter("pass");
 Class.forName("com.mysql.jdbc.Driver").newInstance();
    Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","root");  
           Statement st=con.createStatement();
           ResultSet rs=st.executeQuery("select * from login where username='"+user+"' and password='"+pass+"'");
int count=0;
          while(rs.next())
          {

                   count++;
          }

                    if(count>0)
          {
            out.println("welcome "+user);
          }
          else
          {
                       response.sendRedirect("login.jsp");
          }
%>









Related Tutorials/Questions & Answers:
tomcat server problem
tomcat server problem  hello rose india, my name is raju. I am placing a problem with tomcat5.5 server. when i am trying to execute my project I have deployed my project in tomcat and then i tried to execute first it showed me
problem regarding tomcat server 6.0
problem regarding tomcat server 6.0  Jul 27, 2012 10:39:19 PM... Tomcat Native library which allows optimal performanc e in production environments... Foundation\Tomcat 6.0\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDO WS\system32;C:\WINDOWS;C
Advertisements
tomcat problem
tomcat problem  error like requested(rootdirectory/urlpattern) resources are not available getting while running servlet on tomcatserver
problem running a servlet on tomcat.
problem running a servlet on tomcat.  i have followed the steps given here. on typing "http://localhost:8080" i do get the apache tomcat page. i suppose that should mean that my tomcat server is up and running. but whn i try
tomcat problem - JSP-Servlet
found your problem.. http://www.roseindia.net/web-application-server/tomcat...tomcat problem  Hi! Rose India Team, I am unable to install the tomcat server. It stops at this stage during installation .......c:\program files
tomcat startup problem - IDE Questions
the tomcat server and deploying the project in server from myecllipse ide,when i try to start the tomcat server from ide, it shows the namingexception,ioexception. server cant be started. please tell me what should i do to resolve this problem
problem with starting tomcat - IDE Questions
problem with starting tomcat  Hi friends, Iam using eclipse 3.1 and tomcat 5.5 in my project. when iam going to start server it is giving like this: Timeout waiting for tomcat v5.5 server @localhost to start.Server did
problem with starting tomcat - IDE Questions
problem with starting tomcat  Hi friends, Iam using eclipse 3.1 and tomcat 5.5 in my project. when iam going to start server it is giving like this: Timeout waiting for tomcat v5.5 server @localhost to start.Server did
problem with starting tomcat - IDE Questions
problem with starting tomcat  I'm running Eclipse 3.1with Tomcat 5.5 When I start Tomcat inside of Eclipse using the "Servers" tab, the "Console" window shows that Tomcat is running but the "Servers" window shows "starting
Tomcat installation problem - JSP-Servlet
Tomcat installation problem   Hello I have installed Tomcat and my startup and shutdown programs are working but the problem is i couldnt open...://www.roseindia.net/web-application-server/tomcat/install-configure.shtml Thanks
problem with starting tomcat - IDE Questions
problem with starting tomcat  Hi friends, Iam using eclipse 3.1 and tomcat 5.5 in my project. when iam going to start server it is giving like this: Timeout waiting for tomcat v5.5 server @localhost to start.Server did
Tomcat Server error - Framework
Tomcat Server error  I am doing problem on struts,spring integration.in that at the time of tomcat server starting SEVERE: Error listenerStart occurs.why this error will occurs please tell the reason
Tomcat Server
Tomcat Server  Why my tomcat server installation stop at using:jvm c:\program files\java\jdk 1.6.0\bin\client\jvm.dll. Even though i trying to install several times. please help me....   Installing Tomcat Server
Tomcat installation problem - Hibernate Interview Questions
Tomcat installation problem   Hello
problem with the installation of apache-geramio2.1 server
problem with the installation of apache-geramio2.1 server  i have installed Apache Geronimo 2.1 server on my pc,but desired page is not coming on the BROWSER after typing localhost:8080 on the contrary oracle page
apache tomcat problem - JSP-Servlet
apache tomcat problem  hi, i am trying to run apache tomcat. but it is showing "The CATALINA_HOME environment variable is not defined correctly...\;"; i installed my apache tomcat in c: whats wrong with this  
Tomcat server
Tomcat server  Can anyone tell me in simple words what this error is about.. ERROR org.hibernate.event.def.AbstractFlushingEventListener Could not synchronize database state with session org.hibernate.StaleObjectStateException
Weblogic8 server problem
Weblogic8 server problem  Hi, I am getting following problem while executing client code fro EJB2 in weblogic8 server. Please solve this problem. javax.naming.NameNotFoundException: Unable to resolve 'JLCHelloHomeJNDI
servlet (tomcat server) and jar
servlet (tomcat server) and jar  how to create a jar file and where to place the jar file in tomecat server
Tomcat Server
Tomcat Server In this section we will read about the Tomcat Server. Here we... is tomcat server, components of tomcat, features of tomcat and many more. What is Tomcat Server? Tomcat Server is a pure Java HTTP web server environment to run
Tomcat Configuration For Eclipse Server
Tomcat Server? I am using Tomcat 6.0v Thanks In Advance   Install tomcat... and ready to run on tomcat server. Right panel content all application that are ready to run on tomcat server. And click on the finish button. After
tomcat web server
Tomcat Web Server         ... and Configure the Tomcat Server Tomcat is an open source web server developed by Apache Group. Apache Tomcat is the servlet container that is used
server problem - EJB
server problem  Dear sir please give me full deatil how intall jboss5.1.0 and how compile application -ejb,hibernate,spring for admestration console and how intall jboss5.1.0GA server and i not found ant(compiler) thanks
server problem - Hibernate
server problem  dear sir please give me best soloution how run hibernate and spring application on jboss and weblogic10.1.0 sever and compile thanks
Tomcat server/any application server
Tomcat server/any application server  how the server understands request is coming from client and how can it give response within very short span of time
About running the Tomcat Server
About running the Tomcat Server   HI I want to run a simple... this Apache Software Foundation/Tomcat 5.0/webapps/ i created myapps... directory Now i started Tomcat . Next i opened Browser and i typed Tomcat Manager
date problem in sql server - SQL
date problem in sql server  select count(*) from xxxx_tbl where emplid="+emplid+" and work_dt=#"+work_date+"#"; work_date is in string ,Backend is sql server 2000.i am getting the date problem when using in jsp page.  
Running and deploying Tomcat Server
Running and deploying Tomcat Server  HI Somebody has given the solution but it doesn't work out. kindly tell the solution for my problem which i... for servlet is like this Apache Software Foundation/Tomcat 5.0/webapps/ i created
Tomcat server - Servlet Interview Questions
Tomcat server  Hello, I am Executing the Servlet application at the time am getting the message like HTTP STSTUS 404 plz tell me wht's this problem and show me the solution to me
tomcat server - WebSevices
tomcat server  i want to know about installion process of 6.0.16 tomcat server.please give me detailed procedure along with how to set environment variable
apache tomcat server - Java Server Faces Questions
procedure.  Hi Friend, To install the tomcat server,please visit the following link: http://www.roseindia.net/web-application-server/tomcat/install...apache tomcat server  i dont know how to install apache tomcat
uploading file to tomcat server
uploading file to tomcat server  please tell me how to upload a file to the URL "http://192.168.12.7:8000/tomcat-docs/" ? thanks
problem on server which works fine on another - Java Server Faces Questions
problem on server which works fine on another  I am having a problem when a tab is clicked, the action listener class is called
Problem while using tomcat 6.0 in eclipse with struts application
Problem while using tomcat 6.0 in eclipse with struts application  Hi please provide solution for the following problem org.apache.jasper.JasperException: java.lang.ClassCastException
Deploy netbeans project on external tomcat server - Framework
can run this project on external server. let me clarify: netbeans 5.5 has bundled tomcat server with default port number 8084..... my project is working...Deploy netbeans project on external tomcat server  Hello i have
tomcat server - Java Server Faces Questions
tomcat server   Hi, friends /* the given given below is the tomcat server error */ Jul 28, 2008 10:42:07 PM... install INFO: Processing Context configuration file URL file:E:\tomcat\conf
Webservices(Axis2 + tomcat ) Consuming Hibernate Giving Problem - Hibernate
Webservices(Axis2 + tomcat ) Consuming Hibernate Giving Problem  Hi Please tell me how can i integrate hibernate in axis2 for my webservice?? I tried in some ways..but its not working..Main problem is hibernate session
Setting up Tomcat Server with Eclipse Galileo
Setting up Tomcat Server with Eclipse Galileo  Please let me know the steps to install Tomcat Server and setting that up with Eclipse Galileo
Installing and configuring Tomcat server - Java Beginners
Installing and configuring Tomcat server  How to install and configure Tomcat server on desktop  Hi Friend, Please visit the following link: http://www.roseindia.net/web-application-server/tomcat/install
RichFaces problem - Java Server Faces Questions
RichFaces problem  RichFaces problem and error  Hi... this problem by deleting el-api.jar and el-impl.jar (because there is another version of this jar file in tomcat lin folder)in all the three samples lib folder. Hope
Tomcat Web Server
Tomcat Web Server       Introduction to the Tomcat web server Tomcat is an open source web server developed by Apache Group. Apache Tomcat is the servlet
war file deploy in tomcat server - WebSevices
war file deploy in tomcat server  can anyone tell me how i can deploy war file in tomcat server ????  to deploy ur war file ...jus start ur tomcat server then type http://localhost:8080 in ur address bar
Introduction to Tomcat Server
Introduction to Tomcat Server      ... is an open source web server developed by Apache Group. Apache Tomcat is the servlet... like Apache Tomcat support only web components while an application server
Introduction to the Tomcat web server
Introduction to the Tomcat web server       Tomcat is an open source web server developed... a web application with jsp/servlet install any web server like JRun, Tomcat etc
error of HTTP Status 404 while running servlet on apache tomcat server
the apache tomcat page. It mean that my tomcat server is up and running. but whn i...error of HTTP Status 404 while running servlet on apache tomcat server ... be the problem
Same email-massage is sending twice in online server(tomcat) but working fine in my local server(Tomcat)..
Same email-massage is sending twice in online server(tomcat) but working fine in my local server(Tomcat)..  Sir, I created one project in jsp... mail to admin at specific time. In local Server(tomcat):::>When employee
Tomcat Server configuration with Eclipse at remote machine
Tomcat Server configuration with Eclipse at remote machine  "Several Ports (8081,8009), required by /Tomcat v6.0 Server at a localhost are already in use. The server may already be running in another process, or a system process
jsf image problem - Java Server Faces Questions
in solving this problem(Please give me a example for this) . Thanks in advance
problem with selectItem tags - Java Server Faces Questions
problem with selectItem tags  Hi frnds, here iam providing my code ,give me the solution.There are 2 jsf pages,1 java bean in this application. Code is: 1.index1.jsp
JBoss deployment problem - Java Server Faces Questions
JBoss deployment problem  I have .war file is successfully running with Tomact server 6.0 form eclipse . I have able to start the jboss,but not able to deploy the same .war file which is running @ tomact. Q1:: how to runnin

Ads