Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-08-2007, 04:27 AM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
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?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-09-2007, 02:45 AM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
Hi,
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
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-04-2007, 09:00 AM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
bbq
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.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connectiong to MySQL DB Java Tip Java Tips 0 12-05-2007 03:22 PM
Mysql Help Sumendra Maharjan Database 1 08-08-2007 02:19 AM
MySql in NetBeans 5.0 javagal NetBeans 6 07-04-2007 03:34 PM
servlet using MySql Peter Java Servlet 2 07-04-2007 02:48 PM
JSP and MySQL Ed JavaServer Pages (JSP) and JSTL 2 07-04-2007 06:08 AM


All times are GMT +3. The time now is 11:37 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org