This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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
Sheriff

Joined: Jul 29, 2008
Posts: 3598
    
  78

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
 
Have you checked out Aspose?
 
subject: portList.hasMoreElements() in Java and Servlets
 
It's not a secret anymore!