Results 1 to 3 of 3
  1. #1
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Rep Power

    Default Help with Struts and MySql

    I am doing a web application and user enter 2 data in form
    I need to compare this data with a data base in MySql, if they are correct, I'll show the rest of the information
    and that is
    can you help me?

  2. #2
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Rep Power


    put the data from the form to the Business layer. In the action calls an object from the Business layer that do the validation in the data layer(JDBC o ORM) compare them and then you can send the message to the page that you need.

    good luck

  3. #3
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Rep Power


    it's easy
    1) Get the data from the fields
    2) do a query to the data base
    3) compare the value from the data base with the value of the field
    4)Do an If sentence.

Similar Threads

  1. Connectiong to MySQL DB
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-05-2007, 03:22 PM
  2. Mysql Help
    By Sumendra Maharjan in forum JDBC
    Replies: 1
    Last Post: 08-08-2007, 02:19 AM
  3. MySql in NetBeans 5.0
    By javagal in forum NetBeans
    Replies: 6
    Last Post: 07-04-2007, 03:34 PM
  4. servlet using MySql
    By Peter in forum Java Servlet
    Replies: 2
    Last Post: 07-04-2007, 02:48 PM
  5. JSP and MySQL
    By Ed in forum JavaServer Pages (JSP) and JSTL
    Replies: 2
    Last Post: 07-04-2007, 06:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts