Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

The differenct between <%out.println(content);%> and <%=content%>

ligangligang Member Posts: 76
The differenct between

<%out.println(content);%>

and

<%=content%>

Comments

  • gigsvoogigsvoo Member Posts: 328
    : The differenct between
    :
    : <%out.println(content);%>
    :
    : and
    :
    : <%=content%>
    :

    Is the same output.


    [size=2]Neo Gigs[/size]
    [color=blue]http://communities.msn.com.my/VisualBasicwithNeo[/color]

  • gnairgnair Member Posts: 17
    : The differenct between
    :
    : <%out.println(content);%>
    :
    : and
    :
    : <%=content%>
    :

    Servlet 101:
    One is an expression that is converted to a string and output <%= expr %>, the other is a script block
    where you have chosen to output a string to the stadard outpu using the explicit out object.
    The expression block can only be used to output, whereas the script block can be used to declare variables,
    control structures, object instantiations etc.
    Any basic Java Servlet or JSP book will have this.
    Good luck,
    Gary
  • gnairgnair Member Posts: 17
    : The differenct between
    :
    : <%out.println(content);%>
    :
    : and
    :
    : <%=content%>
    :

    Servlet 101:
    One is an expression that is converted to a string and output <%= expr %>, the other is a script block
    where you have chosen to output a string to the stadard outpu using the explicit out object.
    The expression block can only be used to output, whereas the script block can be used to declare variables,
    control structures, object instantiations etc.
    Any basic Java Servlet or JSP book will have this.
    Good luck,
    Gary
Sign In or Register to comment.