How to use IDEA to configure tomcat and create JSP files

How to use IDEA to configure tomcat and create JSP files

Before using idea to write JSP files, you need to configure the jdk environment (not described here) and the corresponding tomcat. The editor here uses IDEA 2017.1.2 version, jdk is 1.8, and the configuration of tomcat environment needs to correspond to the jdk version.

No.1

Download tomcat

First, we go to the official website http://tomcat.apache.org and click "Which version?" to view the corresponding version. We can see that jdk1.8 requires tomcat9.0 and above to be compatible. If the versions do not match, various problems will occur when writing Web.

Directly click on Tomcat 9.0 on the left. The editor's computer is 64-bit. You can choose according to your computer configuration. Note that it is best to choose a compressed package, which can be used after decompression. The installation package needs to be installed by yourself, which is a bit troublesome.

No.2

Creating a Web Project

The file name is arbitrary.

No.3

Creating JSP Files

Created successfully.

Next you need to configure tomcat, otherwise the following situation will occur.

No.4

Configure tomcat

Select the path of Tomcat 9.0 that you just downloaded and unzipped from the Tomcat official website.

It is best to uncheck After launch. When I first started, I wanted to try what would happen after checking it. Every time I ran tomcat, a new tab would appear in the browser, so it is better to uncheck it.

No.5

Configuring artifacts

Click the plus sign. If the previous tomcat was not configured properly, there will be no Tomcat Server here.

After clicking Local, Tomcat Server will appear on Defaults, and the name is whatever you want.

Click Development -> "+" -> Artifact...

Then it runs successfully~

Summarize

This is the end of this article about using IDEA to configure tomcat and create JSP files. For more information about how to use IDEA to configure tomcat to create JSP files, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • About IDEA using jsp to access the page converted to html pop-up page 404 problem
  • idea springboot modify css, jsp does not restart to achieve page update problem
  • A brief understanding of Spring Boot and idea integration jsp process analysis
  • Several ways to solve the problem of no code prompt in IDEA JSP
  • Problems and solutions of EL expressions not working when writing jsp with IDEA
  • SpringBoot adds JSP support and comes with creating JSP files in IDEA [Tested correctly]
  • idea2017 build jsp project and tomcat configuration tutorial
  • IDEA quick tutorial on how to build a jsp project

<<:  Detailed explanation of how to install mysql5.6 from binary installation package in centos7 environment

>>:  Vue uses rules to implement form field validation

Recommend

MySQL replication advantages and principles explained in detail

Replication is to transfer the DDL and DML operat...

React implements the expansion and collapse function of complex search forms

Give time time and let the past go. In the previo...

A brief discussion on CSS blocking merging and other effects

Non-orthogonal margins When margin is used, it wi...

JS Object constructor Object.freeze

Table of contents Overview Example 1) Freeze Obje...

Rainbow button style made with CSS3

Result: Implementation code: html <div class=&...

Modification of the default source sources.list file of ubuntu20.04 LTS system

If you accidentally modify the source.list conten...

How to quickly build an LNMP environment with Docker (latest)

Preface Tip: Here you can add the approximate con...

When backing up files in Centos7, add the backup date to the backup file

Linux uses files as the basis to manage the devic...

How to build sonarqube using docker

Table of contents 1. Install Docker 2. Install so...

MySQL database rename fast and safe method (3 kinds)

Table of contents How to rename MySQL database Th...

JavaScript implements bidirectional linked list process analysis

Table of contents 1. What is a doubly linked list...

Gradient slide effect implemented by CSS3

Achieve results Code html <div class="css...

Use nginx to configure domain name-based virtual hosts

1. What is a virtual host? Virtual hosts use spec...