Jsp page to remove the big break in the ugly wrap

sponsored links
Since my last post on trimming whitespace in JSPs seems to be a popular topic, I figured it appropriate to note that JSP 2.1 supports a new trimWhitespace directive. If you're using a Servlet 2.5 XSD, you can also do this in your web. xml: <jsp-config> <jsp-property-group> <url-pattern> *. jsp </ url-pattern> <trim-directive-whitespaces> true </ trim-directive-whitespaces> </ jsp-property- group> </ jsp-config> A Servlet 2.5 XSD seems to be the following: <web-app xmlns = "http://java.sun.com/xml/ns/javaee" xmlns: xsi = "http:// www.w3.org/2001/XMLSchema-instance "xsi: schemalocation =" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web- app_2_5.xsd "metadata-complete =" false "version =" 2.5 "> To learn more about this feature, view Summary of New Features in JSP 2.1 Technology and search for" TrimWhiteSpace ". It'd be nice if there was anchors in this article for a direct link, but I couldn't find any. Now I just wish JSP's EL had an xmlEscape = "true" flag to escape XML in printed variables. Freemarker supports this. Hat tip to Kerem and Krishna's Unified Expression Language for JSP and JSF article. </ web-app>
  • del.icio.us
  • StumbleUpon
  • Digg
  • TwitThis
  • Mixx
  • Technorati
  • Facebook
  • NewsVine
  • Reddit
  • Google
  • LinkedIn
  • YahooMyWeb

Related Posts of Jsp page to remove the big break in the ugly wrap

  • hibernate generic generic DAO

    package org.lzpeng.dao; import java.io.Serializable; import java.util.List; import org.hibernate.Criteria; import org.hibernate.Query; import org.hibernate.criterion.Criterion; import org.springside.modules.orm.hibernate.Page; /** * * @version 2009-1-10 *

  • Servlet brief introduction

    Servlet brief introduction: Servlet is a small application server Are used to complete the B / S architecture, the client requests the response to treatment Platform independence, performance, able to run thread Servlet API for Servlet provides the s ...

  • Spring2.0 + hibernate3.1 + log4j + mysql demo

    applicationContext.xml Non-attachment jar package, necessary friends can send an email to todd.liangt @ gmail.com

  • Struts2 + hibernate + spring problem user log in

    dao layer services layer action jsp <tr> <td align="center"> <b> user name: </ b> </ td> <td> <s: textfield name = "czyNumber" cssClass = "textstyle" theme = "simple" size = &q

  • Hibernate secondary cache

    Hibernate cache: 2-bit cache, also known as process-level cache or SessionFactory level cache, secondary cache can be shared by all of the session Cache configuration and the use of: Will echcache.xml (the document code in hibernate package directory ...

  • Hibernate's lazy strategy

    hibernate Lazy strategy can be used in: <class> tag, it can be true / false Tags can <PROPERTY> values true / false type of necessary tools to enhance <set> <list> can tag values true / false / extra <many-to-one> <on ...

blog comments powered by Disqus
Recent Entries
Tag Cloud
Random Entries