21

I have to create a Spring Boot WEB app but the JSP pages are show as plain text without any highlight or marker.

How to configure STS to show JSP files as Eclipse do?

Using STS 4.0.0.M12.

6
  • I don't think we need to configure anything extra , by default whatever eclipse do same STS will do . Commented Jul 27, 2018 at 13:29
  • Then something is very wrong here....
    – Magno C
    Commented Jul 27, 2018 at 13:49
  • @AvijitBarua the problem is not the code itself. In Eclipse I can receive some assistence from the IDE when it highlights the code and show some tips and hints like "This tag is wrong" or "I can't find the JSP file you're including here"... In STS it is just a plain text file. STS don't know it is a JSP file. Nothing wrong when compile and run.
    – Magno C
    Commented Jul 27, 2018 at 18:26
  • open that jsp file with html editor.
    – Sanjay
    Commented Jul 29, 2018 at 8:52
  • Bingo! There is a "JSP Editor" .. after open the first solved for all of them.
    – Magno C
    Commented Jul 29, 2018 at 21:13

7 Answers 7

39

STS to show JSP files as Eclipse does you have to install the plugin form eclipse marketplace.

On your, STS go to

help> eclipse marketplace

and search for

Eclipse Java EE Developer Tools

click install when it's completely installed simply restart the IDE, now you can create jsp file

10

You will have to install the plugin "Java Enterprise Java & Web Developer Tools" form Eclipse Marketplace in your Spring Tool Suite to show JSP files in the Eclipse editor.

On your, Spring Tool Suite go to

  1. Click Help Menu in Eclipse
  2. Select Eclipse Marketplace

Now search 'Eclipse Java EE Developer Tools'

Eclipse Java EE Developer Tools Plugin Screenshot

Install & choose to restart the IDE when prompted by IDE.

4

help> eclipse marketplace

Install Eclipse Enterprise Java And Web Developer Tools 3.21

check the image

2

I have the same problam..after install Eclipse Enterprise Java And Web Developer Tools 3.21 and all are work good.

help> eclipse marketplace

1

Just go the Help -> Eclipse Marketplace --> search for - Eclipse Web Developer tools(lates version) --> install now --> confirm validation --> you are done...ready to go 👍

0

For the Spring tool suite 4.

By default, the JSP files are not included in the suite.

In your suite, Just go to Help -> Eclipse Marketplace -> type Eclipse Enterprise Java and Web Developer Tools (version = latest one is 3.22) and install it

Then restart your suite and check now.

0

Go to help -> Eclipse Marketplace -> Search for JSP -> You will see Eclipse Enterprise Java and Web Developer Tools 3.21. Install the plugin. After installation completed restart the IDE.

1
  • Try this way you can resolve the issue Commented Jun 3, 2022 at 18:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.