Forum: Assignment discussion |
Date: Tue May 22 2007 15:15 |
Author: Mao, Chen <[email=Chen.X.Mao@student.uts.edu.au?Subject%3DHow%20to%20us%20out.println%28String%20text%29%20in%20jsp%20when%20mix%20http%20tag%20with%20jsp%20tag%3F%20%28posted%20in%20discussion%20board%20-%20Assignment%20discussion%29]Chen.X.Mao@student.uts.edu.au[/email]> |
Subject: How to us out.println(String text) in jsp when mix http tag with jsp tag? |
|
|
I tried hard and found one way to directly DOM parse the coming text from server. Tests in BlueJ environment confirmed that all printed messages were fine with the right recipe information.
When I moved these pure java code into jsp pattern, one tricky problem happened. I cannot directly use the System.out.println(String text); code anymore. I must use the http tags:
<html>
<body>
<% out.println(text);%>
</body>
</html>
This would be fine if all my printed messages are generated in a sequence order.However, since some the messages to be printed are orginally generated within a loop, I cannot wait until all the java code to be executed then use the http tag to print them all at once. I have got to find my way to do some code, then print, then do some code again...
I have tried all what I can but still cannot find my way, any help would be thankful!
|