The Artima Developer Community
Sponsored Link

Java Answers Forum
please ...

5 replies on 1 page. Most recent reply: Dec 11, 2008 2:08 PM by ahmed samir

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 5 replies on 1 page
ahmed samir

Posts: 7
Nickname: akhtaboot
Registered: Nov, 2008

please ... Posted: Dec 1, 2008 1:54 PM
Reply to this message Reply
Advertisement
hello every body
this is my first sharig with this site
and i hope some body help me
i ask about" how can i merg chat with my websit withKnowing
i want to control on clients"
and with example...
sorry if my english is not good
and thak u.....


ahmed samir

Posts: 7
Nickname: akhtaboot
Registered: Nov, 2008

Re: please ... Posted: Dec 6, 2008 4:35 AM
Reply to this message Reply
Pleeeeeeeeeeeeeeas some one help me????

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: please ... Posted: Dec 8, 2008 11:14 PM
Reply to this message Reply
> and i hope some body help me
> i ask about" how can i merg chat with my websit
> t withKnowing
> i want to control on clients"

The problem is that your question is very general. We don't know how much you know, how much you don't know, what tools/libraries you would like to use.

If you are totally new to programming then you have quite a long way to go. You could just google any Open Source Chat Application - if it is a war you can deploy it to your tomcat/Web Server.

If you already know Java, try to Google a particular web framework for instance Wicket is my personal favorite.

Once you have picked up the basics, you will have to spec what you want this Chat site to do.

E.g. do you want it to be able to register Users?

1) Write the Spec/Use Case for User Registration.
2) Design it, e.g. I want to persist registered Users via Hibernate on a Postgres database, I want only the Service layer to access the Persistence layer - how do I write this? I want my UI/Presentation layer not to have access directly to my persistence but should access my Service layer. (You can set up a maven project to enforce your design).

If you respond to this, we may be able to assist you step by step.

> and with example...
> sorry if my english is not good
> and thak u.....

ahmed samir

Posts: 7
Nickname: akhtaboot
Registered: Nov, 2008

Re: please ... Posted: Dec 9, 2008 3:27 PM
Reply to this message Reply
thank you very mush <Kondwani Mkandawire>
for ur caring
ok i study in university IT and programming and i programmig well in Oracle ad .Net and i know lettil about Java
Now ...
Once you have picked up the basics, you will have to spec what you want this Chat site to do.

E.g. do you want it to be able to register Users...

Yes i want regiser users..look i hava stockmarket websit and i want my members
to ask the assistant in websit to advice them by chatting..

and i will upload the sit to internet

And thank u again..

Kondwani Mkandawire

Posts: 530
Nickname: spike
Registered: Aug, 2004

Re: please ... Posted: Dec 9, 2008 10:59 PM
Reply to this message Reply
> ok i study in university IT and programming and i
> i programmig well in Oracle ad .Net and i know lettil
> about Java

Perhaps you should post your questions on a .Net forum if that is your strength. You should probably pick a .Net framework to learn.

>
> Yes i want regiser users..look i hava stockmarket websit
> t and i want my members
> to ask the assistant in websit to advice them by
> chatting..

Draw your self out a Use Case for which to code against.

e.g.

Use Case/Spec for User Registration

User Fields:

User Name - mandatory
Password - mandatory
last date logged in - mandatory
Authorization level - mandatory (this may not be necessary)

Process:

Display screen "Please fill out form for Registration"

User Name:
Password:
Confirm Password:
Authorization Level: (must default to level 1 - lowest level)

1) Search database to make sure that user name does not exist in database at present.
if it exists post page back to this same registration page with the message: "Error user name already in use"

else go to step 2

2) Make sure that password matches confirm password field before proceeding to save the entered user in the database.
if password != confirmPassword
post page back to this page with error message
else go to step 3

3) Save User to database default last logged in to null or some other defined default.

Sequence diagrams are not really necessary for such a small Use Case.

Something like this will constitute your Registration Use Case and it shouldn't be complicated at all.

Your next step will be to code this use case - if I were you I would follow TDD.

E.g. write a test case to test a Service to Search for a User Pojo via his/her userName, after which you write the Service itself.

in a JUnit scenario it will be something to this effect:

public UserServiceTestCase extends TestCase {
 
    public void getUserTestCase() {
        UserService<User> service = UserService.getInstance();
        service.save(new User("test1", "password", null, AuthMatrix.level1);
        assertNull(service.getUser("test2"));
        assertEquals(service.getUser("test1"), new User("test1", "password", null, AuthMatrix.level1);
    }
    
    //  You should then actually code the UserService
 
}


Keep in mind this is a Java scenario not quite sure how .Net would handle this - I'm subjectively disinterested in M$oft crap.

Once again, this is one of several options to follow - depending on whether you find TDD useful or not.

Good luck.

ahmed samir

Posts: 7
Nickname: akhtaboot
Registered: Nov, 2008

Re: please ... Posted: Dec 11, 2008 2:08 PM
Reply to this message Reply
I really cat't find the words to thank you and i usfull soo much from ur responses ...
More time i thank u and will continue with u in every step after ur agreement..

Flat View: This topic has 5 replies on 1 page
Topic: help im getting an error Previous Topic   Next Topic Topic: please help me.

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use