how to print a string with out using out.println?
Answers were Sorted based on User's Feedback
Answer / shanthi
Using the expression tag of jsp, strings could be printed.
For eg. String S="fruit";
<%=S%> Semicolons chould not be included here, because
whatever is enclosed inside <%= "" %> will be given as
arguments to out.println().
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / sk
set any variable as property in the tag then use that
<%c:out value="${ }"%>
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / bhanu
with the help of expression tag of jsp ...
<%= "javawoorld" %>
| Is This Answer Correct ? | 2 Yes | 3 No |
How can I prevent the use of scripts and java code on the jsp page?
What is expression language injection?
What is jsp-config in deployment descriptor?
Is jsp front end or backend?
Can I stop jsp execution while in the midst of processing a request?
What is < jsp:forward> tag for?
How do we prevent browser from caching output of my jsp pages?
What is scriptlet tag?
What is the different between servlet and struts
Is jsp and javascript same?
What is pagescope in jsp?
How are cookies set in jsp?