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 4 of 4

Thread: How to verify if a forum user is registered or not using a java app

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to verify if a forum user is registered or not using a java app

    I'm developing a desktop IRC client using Netbeans... But as you may know, anybody can access an IRC room by just using a username... in order to control who can access the chatroom, I need to verify if the user has an account registered in my website (I'll basically have two text areas, one for pass and one for the username), I haven't developed the website yet... I am thinking about using Joomla or SMF... but the main thing I need you to help me with, is which libraries should I use and what process can I do to login and get an answer if the user is registered or not... I can do research, but I'd like a little guide or any tip you could give me.

    A better description:

    I have an irc chat room in irc.bl.com

    I have my website.com

    I have the app that connects to irc.bl.com #myroom, but before it must verify if i am registered in mywebsite.com


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to verify if a forum user is registered or not using a java app

    We can't really answer that question, since we have no idea what your setup is. For example, how are your users stored? In a database? In a text file? XML? Persistence? A piece of paper? Quantum state hard drives from the future?

    It's hard to answer general questions like this other than to point you to google.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    Junior Member
    Join Date
    Apr 2012
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: How to verify if a forum user is registered or not using a java app

    Quote Originally Posted by KevinWorkman View Post
    We can't really answer that question, since we have no idea what your setup is. For example, how are your users stored? In a database? In a text file? XML? Persistence? A piece of paper? Quantum state hard drives from the future?

    It's hard to answer general questions like this other than to point you to google.
    Well, as I mentioned before, I haven't yet created my website... but will probably be a smf or phpbb forum... so it will basically store the users in a mysql... but the whole point of my question is not to access the db directly... but to connect to the forum and use the program to login there... then if the login is sucessful, welcome to chat, else "error, no acc registered"...

    I was reading about some apache libraries... but I'm not sure if they will do what I want...

  4. #4
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,424
    My Mood
    Hungover
    Thanks
    144
    Thanked 636 Times in 540 Posts

    Default Re: How to verify if a forum user is registered or not using a java app

    If you haven't created your website, then it's downright impossible to tell you how to access it. Presumably, you'd access it in the same way you write it- whether that's direct sql or hibernate or something, that's up to you. It partly depends on how familiar you are with sql and database access. If the answer is "not at all" then I suggest you start with some basic sql calls writing to and reading from a database, then go from there. Or perhaps you don't even need a database for something this simple. Again, up to you.
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Hello I am registered as javatea
    By Javatea in forum Member Introductions
    Replies: 1
    Last Post: January 19th, 2012, 04:18 AM
  2. Forum for posting User Created Codes?
    By Emperor_Xyn in forum Forum Updates & Feedback
    Replies: 8
    Last Post: January 4th, 2012, 07:33 AM
  3. New to Java and to the Forum
    By more_dread in forum Member Introductions
    Replies: 1
    Last Post: November 15th, 2011, 05:49 AM
  4. [SOLVED] Can someone verify if this code for deleting a BST works?
    By scottb80 in forum Java Theory & Questions
    Replies: 2
    Last Post: November 2nd, 2010, 10:19 AM
  5. NEW WITH JAVA AND THIS FORUM
    By mjava in forum Java IDEs
    Replies: 4
    Last Post: August 27th, 2010, 02:57 AM