Reza Reza - 10 days ago 6
Java Question

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?

Answer

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");
Comments