Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: java web application

  1. #1
    Junior Member
    Join Date
    Dec 2024
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default java web application

    Hi!
    I'm trying to learn about javavweb application project.(Student Login project)
    I have login page created in jsp file.
    servlet page connected.
    how to move next page in jsp file.loginsucessful i am created but page not found..
    //java compiler level does not match the version of the installed java project facet.// my error massege.
    //This is my code
    package studentlogin;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.ResultSet;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
     
    public class Loginfirst {
     
    	public boolean insert(User user) throws SQLException {
     
    		 Connection con=null;
     
    		boolean result=false;
    		try {
    		Class.forName("Oracle.jdbc.driver.OracleDriver");
    		con=DriverManager.getConnection("jdbc:oracle:Comforters24:thin:@localhost:1521:newconnectionn","system","system");
    		String query="Insert into login(UserName,Password) value(?,?)";
    		PreparedStatement pst=con.prepareStatement(query);
    		pst.setString(1, user.getUserName());
    		pst.setString(1, user.getPassword());
    		ResultSet rs=pst.executeQuery();
    		result=rs.next();
    		}
    		catch (ClassNotFoundException e){
    			e.printStackTrace();
    			return result;
    		}
    		return result;	
    	}
     
    }
    Last edited by Norm; December 6th, 2024 at 06:52 AM. Reason: Added code tags

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: java web application

    java compiler level does not match the version of the installed java project facet.// my error message.
    Get the compiler's version by the command: Javac -version. I don't know how to determine the version of the installed version. Does it have any documentation?
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    Moni (December 6th, 2024)

  4. #3
    Junior Member
    Join Date
    Dec 2024
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: java web application

    No sir

    --- Update ---

    Quote Originally Posted by Norm View Post
    Get the compiler's version by the command: Javac -version. I don't know how to determine the version of the installed version. Does it have any documentation?
    NO sir..

    --- Update ---

    HI
    I'm trying to learn about javavweb application project.(Student Login project)...
    java.sql.SQLRecoverableException: IO Error: Invalid connection string format, a valid format is: "host:port:sid"
    how to solve the problem explain please.

  5. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: java web application

    Sorry, I don't do database programming. Try asking on this site: https://www.coderanch.com/c/databases
    If you don't understand my answer, don't ignore it, ask a question.

  6. The Following User Says Thank You to Norm For This Useful Post:

    Moni (December 7th, 2024)

  7. #5
    Junior Member
    Join Date
    Dec 2024
    Posts
    3
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: java web application

    My listener was working fine but suddenly stopped working
    and I can't create a new one with the Net Configuration Assistant (ERROR: Could not create listener)
    Any ideas?

  8. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,166
    Thanks
    65
    Thanked 2,725 Times in 2,675 Posts

    Default Re: java web application

    suddenly stopped working
    What changed from when it was working?

    Net Configuration Assistant
    What is that? Is it part of your IDE?

    Can you post the code you are asking about? Be sure to wrap the code in code tags:


    [code]
    **YOUR CODE GOES HERE**
    [/code]

    to get highlighting and preserve formatting.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Replies: 0
    Last Post: November 23rd, 2023, 07:10 AM
  2. Replies: 1
    Last Post: August 23rd, 2013, 06:33 AM
  3. how to run any installed application through my java application??
    By sgsamanthjain in forum Java Theory & Questions
    Replies: 1
    Last Post: April 1st, 2011, 08:17 AM
  4. Replies: 1
    Last Post: January 12th, 2011, 05:55 AM
  5. Replies: 0
    Last Post: December 3rd, 2009, 04:43 PM