webappenhance

Java web application enhancements library

Лицензия

Лицензия

Группа

Группа

com.github.pukkaone
Идентификатор

Идентификатор

webappenhance
Последняя версия

Последняя версия

1.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

webappenhance
Java web application enhancements library
Ссылка на сайт

Ссылка на сайт

https://github.com/pukkaone/webappenhance
Система контроля версий

Система контроля версий

https://github.com/pukkaone/webappenhance

Скачать webappenhance

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.pukkaone/webappenhance/ -->
<dependency>
    <groupId>com.github.pukkaone</groupId>
    <artifactId>webappenhance</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.pukkaone/webappenhance/
implementation 'com.github.pukkaone:webappenhance:1.0.1'
// https://jarcasting.com/artifacts/com.github.pukkaone/webappenhance/
implementation ("com.github.pukkaone:webappenhance:1.0.1")
'com.github.pukkaone:webappenhance:jar:1.0.1'
<dependency org="com.github.pukkaone" name="webappenhance" rev="1.0.1">
  <artifact name="webappenhance" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.pukkaone', module='webappenhance', version='1.0.1')
)
libraryDependencies += "com.github.pukkaone" % "webappenhance" % "1.0.1"
[com.github.pukkaone/webappenhance "1.0.1"]

Зависимости

provided (3)

Идентификатор библиотеки Тип Версия
javax.servlet.jsp : jsp-api jar 2.2
javax.servlet : servlet-api jar 2.5
javax.el : el-api jar 2.2

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.10

Модули Проекта

Данный проект не имеет модулей.

Java Web Application Enhancements Library

Utility library for Java web applications

Add library to your project

Add this Maven dependency:

<dependency>
  <groupId>com.github.pukkaone</groupId>
  <artifactId>webappenhance</artifactId>
  <version>1.0.1</version>
</dependency>

Compile JSPs on startup

In the web.xml file, add a listener:

<listener>
  <listener-class>com.github.pukkaone.jsp.JspCompileListener</listener-class>
</listener> 

Escape JSP EL values to prevent cross-site scripting

In the web.xml file, add a listener:

<listener>
  <listener-class>com.github.pukkaone.jsp.EscapeXmlELResolverListener</listener-class>
</listener> 

Disable escaping

Use a custom tag to surround JSP code in which EL values should not be escaped:

<%@ taglib prefix="enhance" uri="http://pukkaone.github.com/jsp" %>

<enhance:out escapeXml="false">
  I hope this expression returns safe HTML: ${user.name}
</enhance:out>

Read model data in Jersey MVC JSP templates without "it."

Jersey's MVC framework exposes the model object to the JSP template as a request attribute named "it". To read the model data, a JSP template must evaluate an EL expression reading a property of this object, for example, ${it.propertyName}. This custom EL resolver exposes model properties as implicit objects, allowing a JSP template to read a model property with an EL expression like ${propertyName}.

In the web.xml file, add a listener:

<listener>
  <listener-class>com.github.pukkaone.jsp.ViewableModelELResolverListener</listener-class>
</listener> 

Версии библиотеки

Версия
1.0.1
1.0.0