peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

The problem is that the code is automatically picking up one of the key and signing the XML

Difficult to believe that code is picking up one for you. Either you hard coded or the library that you are using has some default value.

More background info need it before we can attempt to help. Are you using any special libraries for this? What are their? Can you post part of the code that is supposed to choose DSA?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You can start here Open Source Chat Servers in Java and continue here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you want to know only about Java Mail API, here you go

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

What backend language are you using? ASP? PHP?

Obviously Java since it is in JSP section...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Have look on above mentioned links and start cracking case.
Once you get specific questions you are more then welcome to post.

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Neither bothering people with personal messages, specially as you are showing zero interest in topic and trying to cheat your way through...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

i personally prefer NetBeans.

That may explain some programming hiccups in your posts ;)
I'm sort finding NetBeans obsolete. My main programming tool is IntelliJ and sometimes I use Eclipse, but I think I did not use NB since 6.1...

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@anuplike classic example of what you should not do in page view but on server side.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed thanx to spammers JamesMatthew, MatthewGrace and GraceTaylor which are posting same rubbish

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As per my quote which you so nicely reposted, we only give homework help to those who show effort!

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

isSelected() method inherited from AbstractButton

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is a link to whole book on Java and XML processing. You may want to have go with JDOM which is very simple... Ofcourse there are other libraries, but generally JDOM is considered one of the simplest.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

You should said that blog is about how-to setup some of above mentioned tools/applications instead of explanation why ;)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

is your OS win7 or win vista?

2 years to late. Thread closed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Your friends should already know about

  • Maven 2 or Ant for various tasks (fetch repositories, run procedures like compile, test, execute or package - often included in IDE)
  • revision control system - Subversion or GitHub
  • issue tracker - Bugzilla, Jira (commercial product), Trac
  • wiki - like these
  • blog - to tell others about your project and progress of it

I'm sure other guys can add some other products, but you can consider this basic setup

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi..would it be possible for you to send me the codes you used to create the mobile chat room..i'm new to java but i want to create a mobile chat room..please send it to <EMAIL SNIPPED>..thanks

Nobody will send you just because of your request work worth of few weeks because you ask...

Thread closed. I recommend you read this

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

As you did disabled communication emails from forum and do not wish to received any PM from other members you leave me no choice then reply publicly.

This thread cannot be removed from the forum because: Acceptable Use Policy - Legal Obligations

DaniWeb LLC reserves full rights and privileges to information posted to anywhere within the daniweb.com domain by its members and staff.

Also when ever you post your assignment on technical forums and need help to solve issue you are cheating on your teacher, and also you are publishing what ever you done. I'm sorry we will not remove it and if you have problem with your classmates possibly copying your work you should mention to your teacher that you posted part of your work on a forum.

Therefore any further request for removal of above posts will be ignored.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

If you took your time to read answer by masijade you wouldn't have to post this question.

Thread closed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Dear natique, can u tell me where u get ur tutorial? I've been seaching this tutorial since last 2 week and dont get any of it....almost give up already....one more question, how u display Form 2 from Form 1? Using button? Hope u can explain to me if u dont mind...huhu

@slowlearner2010 you are 5 years to late, bumping old thread. If you want to get answer to your question you better to repost as this thread is now closed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

@Madhusudhan_Ram you failed to understand purpose of this forum. You may want to read this We only give homework help to those who show effort.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Closing down thread thanx to pathetic spammer from Pakistan danieljeanz + Bubbylayree + Maashleni.

As my grandma says "even stupidity is gift from god".

Salem commented: <burns>Excellent</burns> +20
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Okay, I see why you suggested to have an object: person, but i'm confused on the atttibutes & methods that I listed, were they also not right?

You will use these methods, but they had no direct relevance to person object.

Why don't you try to put in coding changes that I suggested on Person object (Person object will have no main method only parameters, constructor and some setter and getter methods). Then write a class, let call it TestPerson, that has main method, provides read and write method, validation method and makes use of Person object. In case of TestPerson skeleton of methods will do just fine, at the moment I'm interested only in Person class.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Compiling process has nothing to do with browser. So why don't you explain in details what exactly you doing, what you getting or not getting and any errors returned to you by system

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Well done you solved 2 years old mystery.

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

and which shows the complete disconnect between what punters are taught in school and the real world...

Yes, but unfortunately there is really little we can do about it...
Few options open

  • write a book
  • take teaching position
  • try to establish connection between industry Java developers and academic to understand each other

However this went off topic.

Is there anything else student.09 you want to discuss?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

in fact it's impossible to "validate an email address" using just a check of its content.
Not only does it inevitably yield a lot of false positives, it will also yield false negatives as noone ever takes into account all possible protocols and variants.

What you say is correct in industry, above is just school assignment that is set to test student knowledge for working with strings.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Sorry here is correction

A UUID is a Universally Unique identifier. This is usually a very large number, typically 128 bits. UUIDs are generated using combination of unique items (such as the MAC address on an ethernet interface) and random elements (the clock ticks on the computer at time of number generation). The idea is that the probability of two numbers generated, anywhere in the world, at any time, is infinitesimally small.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

so far I have been able to put this much information together:

class: PERSON

attributes: lastName, emailAdd

methods: readFile, writeOutcome, validateFile

um are there going to be arrays?

arrays: validEmail, invalidEmail, validLastName, invalidLastName

NO this looks like bad structured application.

You want to have object person that has attribute last name and email, with methods to set and get values of these parameters. It is your program that will have methods to read & write plus validation. As for arrays, you better to use collections like ArrayList, List, Vector etc that can dynamically change size unlike array that has pre-terminated size

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Numbers of methods is irrelevant and it would vary from developer to developer. What they will have in common is:
- have way to read file
- store retrieved values
- evaluation of retrieved data
- writing data in files

So take it from here and think what you can do from here and which of above 4 steps can be decomposed further down

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In this scenario you want to use "while" loop instead of for loop and you should set some interruption sequence. Like user input zero and you get out of the loop and continue with what ever you have after it (confirm address,print invoice etc)

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Here is screenshot of project structure.

It shows basic structure if you learn from basic environment (command line, or IDE like JCreator). In case you would use more advanced IDE your source files and compiled classes would be kept in different locations. However for the purpose of understanding and learning basic this is fine.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

In PHP I have to submit a form and catch it via $_POST superglobal. I will then have to start session and so thing goes on and on. I was asking how does this differ in JSP? Are things the same or dramatic different?

Thanks

Fundamentally same:

  • servlet will use doGet() or doPost() (other methods are not used often)
  • create session
  • attach it to next forward/redirect servlet does
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

1-Iam writing a server code not a client code so Should I search for devices or this applies to client too?

Servers as always plays passive role. Server is set as discoverable and it is client that active player searching for service.

2-What do you mean by device ID I don't think that you mean UUID as it is reserved for a certain service isn't it? or you mean Browse Group UUID???

Yes, I meant UUID that is mobile "MAC" address of devices.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Pointless reply 3 years too late. Thread closed.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

sir i need a java project. if u can help me or can provide me a project. so plz rpl me i wil wait for ur rpl

Create a website with project ideas so other hopeless souls can get cheap ideas because they are not able to apply mind to their work and lack imagination.

For starter you may want to utilize project ideas of sourceforge.net

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

hi......i am doing sc this year....i have to do a computer project for the final exam this year...so i am stuck in the 2nd part,that's the design part,so i need help to carry forward,could you please try to help me in one way or the other to catch up with the remaining project as it is a must for the final exam this year 2010...thanks in advance!!!!!!!!

If you read previous replies and checked site mentioned in them you wouldn't post such useless question after all.

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed, forum flooding is not welcome. Please read the rules. Other thread can be found here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is no single old import among the present imports they are all present in many codes used in your book and the way of writing codes by defining StreamConnection and StreamConnectionNotifier is used everywhere on the internet...If you mean Rocococoft and atinav I found posts which might be useful to you too that I donot need a third party classes to run this on mobile so the problem now is in the btspp again

What I was saying is not that you have some "old imports" but that you are trying to "import old packages" that are not used any more. And as I said before your connection string "btspp" is wrong because you either have to know device id or you have to first search for available devices and get their ids so you can build your connection string

The link is from Nokia Forum:
http://discussion.forum.nokia.com/forum/showthread.php?p=689118
And by the by they are using the same book u refuse and this was @2009 i.e. only one year ago

If you have read whole tread carefully you would have found that they think, same as me, that code is old and crap

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Thread closed as there is double in JS section.

@tyson.crouch rather then requesting user to repost his question use "Flag Bad Post" option to notify moderators that post is in wrong section and assigned moderator will move it to right place

somilbansal, you have posted this in the wrong forum.

Please re-post this in the appropriate forum under javascript. which can be found here

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

That books Bluetooth for Java is too old and uses old packages that are not available any more. Get something newer. Either Beginning J2ME as I suggested in my previous post or the latest copy of Kicking butt with MIDP and MSA

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Survey is closed... Did you copied correct link?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Any IDE you used for Java development. So to start with : IntelliJ IDEA, Eclipse, NetBeans etc.

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

I would be interested to know where you did get that URL for bluetooth from?
As the error message protocol doesn't exists as you provided malformed URL. Read this on how URL should be correctly formatted and if you wish to connect to a device either find his ID or use discovery to find any bluetooth devices in proximity. Here is limited preview of chapter Bluetooth and Obex from Beginning J2ME - From Novice to Professional that will get you started

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Okay i had a question, how would you do this same exact thing except with a multidimensional array, and if possible convert that array in integers, i can hand the converting, i was having more problems with the multidimensional aspect(I am a student and i have been looking for examples for this, i will post code if you want me to)

Please create new thread and any supporting coding. Re-opening years old thread is not good idea to get reply from members.

Thread closed

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

General Frame is AWT and heavy weight where JFrame is light weight component that extends Frame. You can find more info on each from their documentation or check this article by IBM - SWT, Swing or AWT: Which is right for you?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

Hi,

Have you completed your project? If yes, kindly get back to me. Thanx, it's urgent !

Even if OP get back to you there is following rule We only give homework help to those who show effort, which mean that if he gave you his project that he would be doing wrong thing as you obviously spent your time else and now want to cheat on your final degree. If it wasn't like that you would have stated what sort of problem you facing.

Thread closed.

Salem commented: close++ +20
peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

No sorry you cannot mix form components with canvas. Therefore you would have to provide your own

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

So what yo do in your code?

peter_budo 2,532 Code tags enforcer Team Colleague Featured Poster

There is nothing you can do on Form and would have to use Canvas. Try to have look on LWUIT