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

Answers were Sorted based on User's Feedback



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

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

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

Answer / sk

set any variable as property in the tag then use that
<%c:out value="${ }"%>

Is This Answer Correct ?    2 Yes 0 No

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

Answer / bhanu

with the help of expression tag of jsp ...
<%= "javawoorld" %>

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More JSP Interview Questions

Java Server Page I can use a function in two ways: Either I declare <jsp:useBean id="myBean" scope="session" class="mypack.mysubpack.MyClass" /> or I declare <%@ page import = "mypack.mysubpack.MyClass" %> In each case I can call a function later by coding MyClass.myFunction(); So what is the difference between the two variantes? Why are Beans invented if we don't need them because we have the import statement ? please guide me its an humble request to you reader if u know n i'll be thankful to you...........

0 Answers  


What do you mean by custom tag in jsp?

0 Answers  


Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme

0 Answers  


How to send data from one page to another in jsp?

0 Answers  


What is error page in jsp?

0 Answers  






hi friends...i created sessions in my login page i can able to create a session but after loging out again i can able access the pages by its addresses. i think u may got problem if possible post me small example for login with sessions including database

1 Answers  


What are the differences between get and load methods?

0 Answers  


How can automatic creation of session be prevented in a jsp page?

0 Answers  


Why does _jspService() start with an ‘_’ but other lifecycle methods do not?

0 Answers  


What will happen if iselignored attribute is set as false?

0 Answers  


What are the different types of directives available in jsp?

0 Answers  


What happens when a page is statically included in another jsp page?

0 Answers  


Categories