This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes portList.hasMoreElements() in Java and Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "portList.hasMoreElements() in Java and Servlets" Watch "portList.hasMoreElements() in Java and Servlets" New topic
Author

portList.hasMoreElements() in Java and Servlets

g venki
Greenhorn

Joined: Mar 08, 2010
Posts: 8
HI Everyone

I am writing a SerialPort communication code in Servlets....

I had already executed the code in java.

The statement "System.out.println(":::"+portList.hasMoreElements());" in java is printing as TRUE

and

The statement "out.println(":::"+portList.hasMoreElements());" in Servlets is printing as FALSE

Both are executed on the same system one followed by other.
Can anyone tell me what is the reason for this?
Devaka Cooray
ExamLab Creator
Saloon Keeper

Joined: Jul 29, 2008
Posts: 3019
    
  35

Please KeepItDown


Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
g venki
Greenhorn

Joined: Mar 08, 2010
Posts: 8
Devaka Cooray wrote:Please KeepItDown


I am sorry . I dont know about that.

Any ways my problem is resolved.

Thank You
g venki
Greenhorn

Joined: Mar 08, 2010
Posts: 8
We have to place the javax.comm.propeties in jre/lib directory
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: portList.hasMoreElements() in Java and Servlets
 
Similar Threads
Adding objects to the list
Doubt in try and finally block execution.
How to stop the execuation of jsp flow
How does one control the order in which methods are executed?
Exception handling in Junit