Reputation: 116
I have a war file and I want to add it to another project and call it. how to create a link tag() to call it?
Upvotes: 0
Views: 1672
Reputation: 407
If you want to reuse some resources see Weblets project (formerly on java.net)
Upvotes: 0
Reputation: 274612
I assume you want to redirect to the index.jsp
of "another war" running in a different context.
From your jsp, you can send a redirect to the location of the other index.jsp. For example:
response.sendRedirect("http://localhost:8080/othercontext/index.jsp");
Upvotes: 3
Reputation: 6450
You can't do this. A .war file is a web app in its own right, until it's deployed there ain't much you can do with it. (As opposed to a .jar file, which contains classes you can use in other projects)
Upvotes: 1