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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -