autocomplete-jsp

Atom autocomplete+ provider for JSP / JSPX

Moritz Kneilmann

13,929

10

Bug Reports

1.2.1

MIT

GitHub

This package provides the following services:

JSP Autocomplete package

Build Status

This Atom package adds autocompletion support for JSP with focus on it's subset JSPX. Uses the autocomplete-plus package.

See setup and changelog.

Features

Autocompletion for implicit objects

Screenshot of autocompletion for implicit objects

Autocompletion for EL keywords

Screenshot of autocompletion for keywords

Autocompletion for variables defined in tags

Screenshot of autocompletion for variables

Autocompletion for variables from <jsp:useBean> tags

Screenshot of autocompletion for variables

Autocompletion of tag functions from .tld files

Screenshot of autocompletion for el-functions

See setup for an explanation how to get autocompletion based on .tld files to work.

Abbreviations

Autocompletion for abbreviations

Autocompletion for tags from .tld files

Autocompletion for tag

Autocompletion for attributes from .tld files

Autocompletion for tag attributes

Autocompletion for attributes values (scope, var)

Autocompletion for var attribute Autocompletion for scope attribute

Follows include directives to find taglib declarations

To find all taglib declarations the package crawls the file system by following include directives.

Goals

What this package won't do

Config

Setup

apm install autocomplete-jsp
mkdir ~/tlds
cd ~/tlds
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/c.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/fmt.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/fn.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/sql.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/x.tld
cp ~/workspace/someProject/src/main/resources/WEB-INF/*.tld ~/tlds
# or perhaps even
cp ~/workspace/*/src/**.tld ~/tlds/

License

This project is licensed under the terms of the MIT license. A copy of the license can be found in the root directory of the project in the file LICENSE.md.