Reza
Reza

Reputation: 116

how to create a link to a war file from a jsp page

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

Answers (3)

vim
vim

Reputation: 407

If you want to reuse some resources see Weblets project (formerly on java.net)

Upvotes: 0

dogbane
dogbane

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

Brian
Brian

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

Related Questions