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

How to add fields to a large data table in MySQL

Preface I believe everyone is familiar with addin...

Is your website suitable for IE8?

During the Olympic Games, IE 8 Beta 2 will be rele...

Detailed explanation of angular parent-child component communication

Table of contents APIs used Simple Example person...

Detailed tutorial on installing CentOS, JDK and Hadoop on VirtualBox

Table of contents 1. Prerequisites 1.1 Supported ...

MySQL high availability cluster deployment and failover implementation

Table of contents 1. MHA 1. Concept 2. Compositio...

Summary of the pitfalls of using primary keys and rowids in MySQL

Preface We may have heard of the concept of rowid...

JavaScript to implement a simple web calculator

background Since I was assigned to a new project ...

Vue implements tab label (label exceeds automatic scrolling)

When the created tab label exceeds the visible ar...

WeChat applet implements user login module server construction

I chose node.js to build the server. Friends who ...

mySQL server connection, disconnection and cmd operation

Use the mysql command to connect to the MySQL ser...

How to build sonarqube using docker

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

IE8 Beta 1 has two areas that require your attention

<br />Related articles: Web skills: Multiple...

Vue uniapp realizes the segmenter effect

This article shares the specific code of vue unia...

js to achieve interesting countdown effect

js interesting countdown case, for your reference...

Using Apache ab to perform http performance testing

Mac comes with Apache environment Open Terminal a...