struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alok Ghosh" <agh...@osellus.com>
Subject RE: JDOM and struts
Date Fri, 21 Jun 2002 14:42:59 GMT
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
<validation="true,mask:^\d+$,minlength:5">

-----Original Message-----
From: James Holmes [mailto:jholmes612@yahoo.com] 
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
james@jamesholmes.com
http://www.jamesholmes.com/struts/


--- Alok Ghosh <aghosh@osellus.com> 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:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message