wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
Author

Maven structure jsp page compiling problem

siva kumarl
Greenhorn

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
author
Bartender

Joined: May 14, 2008
Posts: 5811
    
    7

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: 860

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.

WP
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Maven structure jsp page compiling problem
 
Similar Threads
Maven warning implication
How to Compile source code from a different Java project using Maven
Importing Eclipse project in to MyEclipse 6.6
Maven add classes to jar
Maven project in eclipse do not show compilation errors