Index: [thread] [date] [subject] [author]
  From: Garrett Mitchener <wgm2@duke.edu>
  To  : 
  Date: 08 Apr 1999 11:30:25 -0400

Re: console input

The regular java way to do this kind of thing is with System.in.  The
java i/o classes are fairly complicated but the javadoc page should at
least be able to tell you how to read input.  Plus, I think the number
wrapper classes have static conversion methods, something like
Integer.readString() that would replace atoi().

However, the tapestry stuff you found ought to be okay.  If you'll
notice, ConsoleInput appears to be a Singleton, a nice design
pattern...


	-- Garrett :-)

"Luke Palmer" <lop@duke.edu> writes:

> never mind, i found it, but that's the least of my problems right now.....
> 
> for anyone that wants to, add ~ola to your CLASSPATH, then you can use
> tapestry.util.ConsoleInput and others.  keep in mind that this is a
> singleton class, and you have to do the getInstance thing.....
> 
> i did this:
> 
> String instr = tapestry.util.ConsoleInput.getInstance().readString();
> 
> slightly cheezy on my part, but it works.
> -luke


Index: [thread] [date] [subject] [author]