• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding custom classes & JSPs to existing third party java web application

Declan Barrett
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement to add some custom classes and JSPs to an existing java web application. The custom classes must be in their own package, away from the existing java classes. The existing application is built on the struts framework.

I'm fairly new to all this and need guidance on the following:

1. Using Eclipse IDE, If I import the existing WAR file and libraries and unpack the WAR file, how do I compile .java source files and add the .class files to the project?
2. The existing .class files are contained in a JAR. Do I need to create a JAR file containing the new .class files outside of eclipse and then add it to the same location as the existing .class JAR file i.e. WEB-INF/lib (there is no WEB-INF/lib/classes folder)
3. Adding the JSPs and amending the web.xml file should be fine but are there any pitfalls to look out for ?

Any and all help greatly appreciated,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic