• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

portList.hasMoreElements() in Java and Servlets

 
g venki
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 4498
267
Chrome Eclipse IDE Google App Engine IntelliJ IDE jQuery Postgres Database Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please KeepItDown
 
g venki
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Devaka Cooray wrote:Please KeepItDown


I am sorry . I dont know about that.

Any ways my problem is resolved.

Thank You
 
g venki
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have to place the javax.comm.propeties in jre/lib directory
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic