how to print a string with out using out.println?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to print java variable in jsp?

525


How many jsp implicit objects are there?

488


How do you prevent the creation of a session in a jsp page and why? What is the difference between include directive & jsp:include action?

560


What do you mean by custom tag in jsp?

515


How to access java variable in jsp?

501






Is jsp platform dependent?

490


How to make a “new line in html” in jsp?

531


Explain client and server side validation?

512


How do I open a jsp file?

575


How can I use the results of my method? ea: <%! method (int x) { stuff return y; } %> <% out.println(y); %> how can I make this work? "y" is a variable made during the method.

1647


How do I save a jsp file?

508


Explain how you understand the action tag and jsp action elements.

549


Can you disable the caching on the back button of a particular browser?

511


What is Include directive?

550


What does jsp mean in text?

476