Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners tomcat server problem
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


raju.salla
tomcat server problem
1 Answer(s)      3 years and 8 months ago
Posted in : Java Beginners


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.


Advertisement
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 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 problem
tomcat problem  error like requested(rootdirectory/urlpattern) resources are not available getting while running servlet on tomcatserver
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
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
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 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
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 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         ... the Tomcat Server Tomcat is an open source web server developed by Apache Group. Apache Tomcat is the servlet container that is used in the official
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
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
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
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
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
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 - 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
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
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
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 installation problem - Hibernate Interview Questions
Tomcat installation problem   Hello
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
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  
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
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
Advertisements
 

 

 

DMCA.com