1 Replies Last post: Aug 23, 2013 7:11 PM by Alexander Chernikov  
kg maven Newbie 14 posts since
Aug 2, 2013
Currently Being Moderated

Aug 23, 2013 5:10 AM

IDEA can not create jsp from template in a maven web app module

Hi:

 

I have created a maven web application module, however I found some problems:

 

1) There will be a default jsp file named index.jsp generated, however this is its content:

 

<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
No jsp header like `<%@ page ....`  or taglib included.
2) When I try to create a new jsp file I can not create it from the template
See this.
Now I can only choose the `New-File` then enter 'xxx.jsp'. But the generated jsp lose too many jsp specified tags. I have to copy them manually from somewhere.
So I miss anything?
Alexander Chernikov JetBrains 1,135 posts since
Jan 11, 2007
Currently Being Moderated
Aug 23, 2013 7:11 PM in response to: kg maven
Re: IDEA can not create jsp from template in a maven web app module

Hi.

 

1. Am I correct that you call New Module wizard and select maven-archetype-webapp to create the module from it? Then jsp content is provided by that Maven archetype, IDEA does nothing with that.

 

2. IDEA suggests to create JavaEE Web Page for directories under webapp root. Please check, does New menu contain this item, when webapp (or sub-directory) is selected. (I'm not sure, how your screenshot could illustrate the issue.)

 

Regards,

Alexander.

More Like This

  • Retrieving data ...