Re: Struts and XSLT

2003-12-11 Thread matsuhashi
Peng Meimin wrote: >I got a question with working structs and xslt together. I thought about, in case, how I would approach to a problem as yours. Just my idea. I will (1) transform Properties files into XML format in the deployment time. Develop a utility cla

Re: White Space

2003-12-04 Thread matsuhashi
regexp pattern as you like. See http://ant.apache.org/manual/OptionalTasks/replaceregexp.html -- Regards, MATSUHASHI,kazuaki Japan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Taglig to write from a map with a key rather than an iterate?

2003-12-02 Thread matsuhashi
>Is there a way to call something like a bean write taglib with a >map key/value combination in jstl or something else? Thanks. I think the JSTL Core tag enables you to do it. See the JSTL1.0 specification document available at http://sunsdlc1-1-vhost1.sjc-colo.bbnplanet.com/servlet/EComFileSe

Re: OT - parsing a TSV file in java

2003-11-11 Thread matsuhashi
Elliotte Rusty Harold's "Java Network Programming" section17.2.1 "tab-seperated-values content handler" shows a working example code. I think it is rude to copy&paste the example here. It is just 20 lines of Java. - To unsubs

Re: Tags creating Tags

2003-10-26 Thread matsuhashi
Craig R.McClanahan wrote: >To accomplish what you are after, you would need another >layer of compilation. >You'll need to come up with a different approach to accomplish what you >are after. I think this link ( an article by Jason Diamon at xml.com) presents an example of what Craig calls "anoth

Re: [OT] A date utility? anyone, pls help

2003-08-26 Thread matsuhashi
copy of the book (for non-commercial use, the author is granting free-reuse). However the good-old "Core Java, vol I" 4th edition published in 1999 is no longer available in the bookstore! MATSUHASHI - To uns

Re: [OT] A date utility? anyone, pls help

2003-08-26 Thread matsuhashi
My favorite "Core Java" book proposes the "corejava.Day" class (see http://www.horstmann.com/corejava.html) which has int daysBetween(Day b) method. Tt calcurates the number of days between 2 dates, rather than "years". Do you want the number of years in fraction ( like 1.43234

Re: white space on jsp compile

2003-07-31 Thread matsuhashi
How about pre-processing JSL files by the Ant optional "ReplaceRegexp" task? Quoting from the manual, this replaces all whitespaces (blanks, tabs, etc) by one blank remaining the line separator. If you hack the regular expression, you would be able