Re: JDOM and struts

2002-06-21 Thread Duke Ronlund

Hi Alok, 

> How can I use jdom along with struts to read Comma Separated Values
> (csv)?

Parsing CSV files is not what JDOM does, I would recommend using
java.util.StreamTokenizer to read in the CSV file and generate an XML
file using JDOM.

Duke

> 
>  
> 
> Can jdom read csv by itself?
> 
>  
> 
> I've been looking for an example, but can not seem to find one anywhere.
> 
>  
> 
> Thanks,
> 
> Alok.
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDOM and struts

2002-06-21 Thread Galbreath, Mark

jdom-interest is a good list, too, with a lot of contributions from Jason
Hunter ("Java Servlet Programming") and Brett McLaughlin ("Java & XML" and
"Building Enterprise Java Applications"), who are the primary architects of
JDOM.

Mark

-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 21, 2002 10:51 AM
To: Struts Users Mailing List
Subject: RE: JDOM and struts


Not that I am aware of.  However, this is a question
for the JDOM mailing lists, not Struts.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Alok Ghosh <[EMAIL PROTECTED]> wrote:
> True, I know I can use String Tokenizer for parsing.
> 
> Just curious if JDOM had any built in methods
> similar to
> doing:
> ie.)  StringTokenizer st = new StringTokenizer(text,
> ",");
>   String temp = st.nextToken();
>   String temp1 = st.nextToken();
>   ...
> 
> The input I am trying to read is something like
> 
> 
> -Original Message-
> From: James Holmes [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, June 21, 2002 10:31 AM
> To: Struts Users Mailing List
> Subject: Re: JDOM and struts
> 
> JDOM is a library for manipulating XML files and has
> nothing to do with CSV files.
> 
> You can read in a CSV file using some simple file
> i/o
> and string tokenization.  Do a search on google.com
> on
> "java csv" for info on that.
> 
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
> 
> 
> --- Alok Ghosh <[EMAIL PROTECTED]> wrote:
> > How can I use jdom along with struts to read Comma
> > Separated Values
> > (csv)?
> > 
> >  
> > 
> > Can jdom read csv by itself?
> > 
> >  
> > 
> > I've been looking for an example, but can not seem
> > to find one anywhere.
> > 
> >  
> > 
> > Thanks,
> > 
> > Alok.
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: JDOM and struts

2002-06-21 Thread James Holmes

Not that I am aware of.  However, this is a question
for the JDOM mailing lists, not Struts.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Alok Ghosh <[EMAIL PROTECTED]> wrote:
> True, I know I can use String Tokenizer for parsing.
> 
> Just curious if JDOM had any built in methods
> similar to
> doing:
> ie.)  StringTokenizer st = new StringTokenizer(text,
> ",");
>   String temp = st.nextToken();
>   String temp1 = st.nextToken();
>   ...
> 
> The input I am trying to read is something like
> 
> 
> -Original Message-
> From: James Holmes [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, June 21, 2002 10:31 AM
> To: Struts Users Mailing List
> Subject: Re: JDOM and struts
> 
> JDOM is a library for manipulating XML files and has
> nothing to do with CSV files.
> 
> You can read in a CSV file using some simple file
> i/o
> and string tokenization.  Do a search on google.com
> on
> "java csv" for info on that.
> 
> -james
> [EMAIL PROTECTED]
> http://www.jamesholmes.com/struts/
> 
> 
> --- Alok Ghosh <[EMAIL PROTECTED]> wrote:
> > How can I use jdom along with struts to read Comma
> > Separated Values
> > (csv)?
> > 
> >  
> > 
> > Can jdom read csv by itself?
> > 
> >  
> > 
> > I've been looking for an example, but can not seem
> > to find one anywhere.
> > 
> >  
> > 
> > Thanks,
> > 
> > Alok.
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




RE: JDOM and struts

2002-06-21 Thread Alok Ghosh

True, I know I can use String Tokenizer for parsing.

Just curious if JDOM had any built in methods similar to
doing:
ie.)StringTokenizer st = new StringTokenizer(text, ",");
String temp = st.nextToken();
String temp1 = st.nextToken();
...

The input I am trying to read is something like


-Original Message-
From: James Holmes [mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 21, 2002 10:31 AM
To: Struts Users Mailing List
Subject: Re: JDOM and struts

JDOM is a library for manipulating XML files and has
nothing to do with CSV files.

You can read in a CSV file using some simple file i/o
and string tokenization.  Do a search on google.com on
"java csv" for info on that.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Alok Ghosh <[EMAIL PROTECTED]> wrote:
> How can I use jdom along with struts to read Comma
> Separated Values
> (csv)?
> 
>  
> 
> Can jdom read csv by itself?
> 
>  
> 
> I've been looking for an example, but can not seem
> to find one anywhere.
> 
>  
> 
> Thanks,
> 
> Alok.
> 
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




Re: JDOM and struts

2002-06-21 Thread James Holmes

JDOM is a library for manipulating XML files and has
nothing to do with CSV files.

You can read in a CSV file using some simple file i/o
and string tokenization.  Do a search on google.com on
"java csv" for info on that.

-james
[EMAIL PROTECTED]
http://www.jamesholmes.com/struts/


--- Alok Ghosh <[EMAIL PROTECTED]> wrote:
> How can I use jdom along with struts to read Comma
> Separated Values
> (csv)?
> 
>  
> 
> Can jdom read csv by itself?
> 
>  
> 
> I've been looking for an example, but can not seem
> to find one anywhere.
> 
>  
> 
> Thanks,
> 
> Alok.
> 
> 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

--
To unsubscribe, e-mail:   
For additional commands, e-mail: