Hi,

Still can't get anything sensible to work. I've gone with the approach of setting a variable in scope for the 'body' tile jsp to output, as I have to use Tiles so that the user can still see the menu etc after the operation. My code is:

File f = new File("C:/test/logs/test.txt");

StringBuffer buf = new StringBuffer();

FileReader in = new FileReader(f);
int c;

while ((c = in.read()) != -1){
  buf.append(c);
}

in.close();

HttpSession session = request.getSession();

session.setAttribute("FILE", buf.toString());


- but all I get is a line of meaningless numbers in the jsp stretching across the page. Do I have to add html tags to replace CR/LF?


The jsp is simply:
<c:out value="${FILE}"/>


Thanks, Andy

_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger



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



Reply via email to