Which project settings should I enable to let IDEA recognize create index.jsp from predefined template?

Answered

At the moment I just wanna create jsp page (I definitely remember I was able to do so last year), but idea creates empty file without useful minimal skeleton...

So how can I create fresh new jsp file with that content on at least add that content in empty created file index.jsp?

I'm using latest IDEA ultimate

Thanks in advice

---

Regards, Maksim

 

0
6 comments

Hello Maksim,

So, you run "New - JSP" and it creates empty file? Do you face this problem with every project (even new simple web project)? Could you please share idea.log ("Help | Show Log in...") after restarting IDE and reproducing the issue?

 

0
Avatar
Permanently deleted user

Hello Ярослав,

Thanks for web project hint, but no, -- option add new JSP was not available at all.

I played a little bit with IDEA, and finally found solution: Seems like there is only requirement to project: it must have WAR packaging type. Just adding Web Facet is not enough.

0

Maksim,

JSP is suggested for folders that are set as "Web Resources Directory" in Web facet settings. In this case it should work even you have "pom" packaging type.

 

1
Avatar
Permanently deleted user

Got it. Thanks. I will try do that and let you know if issue will be fixed

0
Avatar
Permanently deleted user

Now I can confirm that requirements are:

1. add web facet to a module

2. in that faced settings 'web resources directory' settings should have entry point to folder where WEB-INF located (in my case it was: /absolute/path/to/project/src/main/webapp)

Thank you for your support!

1

Maksim,

You are welcome!

0

Please sign in to leave a comment.