diff options
author | Bertram Nolte <bnolte@openoffice.org> | 2002-07-05 09:54:17 +0000 |
---|---|---|
committer | Bertram Nolte <bnolte@openoffice.org> | 2002-07-05 09:54:17 +0000 |
commit | 2cfe5491c60fcc07ecdf9414297e7bfcafcf6df7 (patch) | |
tree | 4d12e1118f8705e45cbff5674397a411f2e117f1 /odk | |
parent | 35d7c85b86dac952a6b550ef37efa213fa30e8a4 (diff) |
#100874# Improved usage text and if context.
Diffstat (limited to 'odk')
-rw-r--r-- | odk/examples/java/NotesAccess/NotesAccess.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/odk/examples/java/NotesAccess/NotesAccess.java b/odk/examples/java/NotesAccess/NotesAccess.java index bb85f6e3906d..30698c6b7b4f 100644 --- a/odk/examples/java/NotesAccess/NotesAccess.java +++ b/odk/examples/java/NotesAccess/NotesAccess.java @@ -58,7 +58,7 @@ public class NotesAccess implements Runnable { "<Office path>/program/classes/sandbox.jar;" + "<Office path>/program/classes/unoil.jar;" + "<Office path>/program/classes/juh.jar " + - "DocumentSaver \"<Connection>\" \"<Domino Host>\" \"<User>\" " + + "NotesAccess \"<Connection>\" \"<Domino Host>\" \"<User>\" " + "\"<Password>\" \"<Database>\"" ); System.out.println( "\ne.g.:" ); System.out.println( @@ -67,7 +67,7 @@ public class NotesAccess implements Runnable { "d:/office60/program/classes/sandbox.jar;" + "d:/office60/program/classes/unoil.jar; " + "d:/office60/program/classes/juh.jar " + - "DocumentSaver \"uno:socket,host=localhost,port=8100;urp;" + + "NotesAccess \"uno:socket,host=localhost,port=8100;urp;" + "StarOffice.ServiceManager\"" + " \"\" \"\" \"\" " + "\"F:\\odk3.0.0\\examples\\java\\NotesAccess\\Stocks.nsf\"" ); @@ -207,7 +207,7 @@ public class NotesAccess implements Runnable { XSpreadsheet xspreadsheet = ( XSpreadsheet ) xindexaccess.getByIndex( 0 ); Session session; - if ( stringHost != null ) { + if ( !stringHost.equals( "" ) ) { // Creating a Notes session for remote calls to the Domino classes. session = NotesFactory.createSession( stringHost, stringUser, stringPassword ); |