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 |
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...........
What do you mean by custom tag in jsp?
Can any one explain about the project Approximate shortest distance computing:A query dependent local landmark scheme
How to send data from one page to another in jsp?
What is error page in jsp?
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
What are the differences between get and load methods?
How can automatic creation of session be prevented in a jsp page?
Why does _jspService() start with an ‘_’ but other lifecycle methods do not?
What will happen if iselignored attribute is set as false?
What are the different types of directives available in jsp?
What happens when a page is statically included in another jsp page?