12.07.2015 Views

Invoking Java Code with JSP Scripting Elements - Java Programming

Invoking Java Code with JSP Scripting Elements - Java Programming

Invoking Java Code with JSP Scripting Elements - Java Programming

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

© 2012 Marty Hall<strong>JSP</strong> Expressions:10Customized <strong>Java</strong> EE Training: http://courses.coreservlets.com/<strong>Java</strong>, JSF 2, PrimeFaces, Servlets, <strong>JSP</strong>, Ajax, jQuery, Spring, Hibernate, RESTful Web Services, Hadoop, Android.Developed and taught by well-known author and developer. At public venues or onsite at your location.<strong>JSP</strong> Expressions11• Format– • Result– Expression evaluated, converted to String, and placedinto HTML page at the place it occurred in <strong>JSP</strong> page– That is, expression placed in _jspService inside out.print• Examples– Current time: – Your hostname: • XML-compatible syntax– <strong>Java</strong> Expression– You cannot mix versions <strong>with</strong>in a single page. You mustuse XML for entire page if you use jsp:expression.• See slides at end of this lecture

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!