JSP Include textfile if it isn't empty -
i have jsp page supposed include content of multiline text file (wrapped in markup) if, and if, there content in file.
the file exists, times empty, , times have content.
i thinking of reading file string (or stringbuffer?), , test length of it. since multiline file, code breaks on linebreaks.
p.s. i'm jsp n00b, bear on me, if stupidly easy (or impossible) task! :)
Comments
Post a Comment