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
  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    _______ \ http://forcoder.org \ free ebooks and video tutorials about // Go Python MATLAB C# PL/SQL Objective-C Perl R Scratch Delphi Swift C++ Assembly JavaScript Visual Basic Ruby Java PHP C Visual Basic .NET Scheme Awk COBOL Apex Kotlin Bash SAS Rust D ML Scala Fortran Julia Dart Transact-SQL Prolog Lisp Ada LabVIEW VBScript Hack Alice F# Crystal FoxPro Lua ABAP Erlang Clojure Logo // ___________

Sign In or Register to comment.