• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to reuse war file

 
gunjan deogam
Greenhorn
Posts: 11
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If we have a fully loaded war file and we want to use some tag define inside that war file, then how can we reuse tld, tag, or classes define inside that war file to our new web application.
 
Rohan kanade
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for classes, you can get the context of the application in your war file and then dispatch requests or include content from the war file.

As far as tags go, you can simply take the jar files of the tag libraries and copy them in your new web applications WEB-INF/lib directory. This will allow you to use the tags again by just using the <@taglib %> directive or the using xml namespaces.
 
gunjan deogam
Greenhorn
Posts: 11
Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Rohan.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds like a typical source control and build issue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic