Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

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

 
Greenhorn
Posts: 28
  • 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,
Declan
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!