| Java JSP ORACLE Hibernate Servlet Struts Spring MySQL Java Script Post New Topic | |
| Category | Java |
| Asked By : | lok Asked Date : Jun 25 2008 |
| Brief Desc: | what is difference between out.println("message"); and <%=message%> in JSP'S ? |
| Details: | what will happen when you are trying to print something in both the cases
|
| Replied By: | satya Replied Date : Jun 26 2008 |
| Answer: | hello lok
your question is not clear ? can you elaborate more ? |
| Replied By: | lok Replied Date : Jun 26 2008 |
| Answer: | e.g
i=1 , j=2; 1) out.println(i+j); 2) <%=i+j> In JSP's , is here any difference b/w these two statements ???? |
| Replied By: | b Replied Date : Jun 30 2008 |
| Answer: | The question was clear.
There is no difference in what will be output on the page, though println puts a newline at the end and the <%= %> doesn't. If you use out.print then you wont get the newline. |