This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes Maven structure jsp page compiling problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Maven structure jsp page compiling problem" Watch "Maven structure jsp page compiling problem" New topic

Maven structure jsp page compiling problem

siva kumarl

Joined: Nov 29, 2008
Posts: 21
Hi Friends,

I am newbie to Maven, i have create a web applicaiton structure using maven and added all dependencies, java files are compiled fine, but i am seeing lot a errors in JSP files because i have imported so many class files in JPS's. So JSP files are not able to identify the java files. Please let me know the configuration for identifying the java class in jsp files.. so that all the errors will clear.

Thanks in Advance
Siva kumar.
Peter Johnson

Joined: May 14, 2008
Posts: 5850

You need to add dependencies to your pom.xml for the JAR files required by your JSPs. (Are you actually placing server-side script in the JSPs? You shouldn't be doing that - instead use tag libraries and the expression language in your JSPs and code all of your logic in servlets.)

JBoss In Action
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

JSPs get compiled by the JEE container on first invocation (most cases, they can be precompiled for performance).

If they are not finding the imported packages/classes then your configuration is incorrect.

Consider Paul's rocket mass heater.
subject: Maven structure jsp page compiling problem