0

How to put files to out/artifacts the JSP file is not generated.

Project structure:enter image description here

The JSP file shown in the figure is not generated.

I can only put manually copied files into the out/artifacts directory. Is there a better solution?

My IDEA version is 2023.1.2.

These are my artifacts:

Artifacts:enter image description here

Facets:enter image description here

3
  • There's a checkbox at the bottom panel to show the contents of the resource. Can you check it out?
    – Roman C
    Commented Jun 16 at 11:34
  • thank you,I reselect the checkbox, and delete the old out directory. Restart Tomcat successfully.
    – FLX
    Commented Jun 16 at 12:19
  • You should accept the answer below. Help others to find a correct answer.
    – Roman C
    Commented Jun 25 at 15:20

1 Answer 1

0

You have a wrong project structure. The out folder is used for a compiler output, and not for running your application from it. If you need to deploy to another location to be able to compile sources and build artifacts during a web server is started.

1
  • If this answer helped you to solve your problem then you can mark it as accepted. The checkbox is on the left of the answer.
    – Roman C
    Commented Jun 18 at 14:53

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