We have a web application and we open the word file, excel file, wri file.. from a jsp using sendRedirect method. these files are opening in a browser. once we close the applciation, if we have the file link open in a browser we are able to open the file directly. But we want file to be open only from the web application.
If any one know who to achieve, please reply.
suppose you have a button in a jsp page , by clicking that you get an excel file opened in a new window (with a different url).
if you use that url alone ,then also you get that file opened. and you want that to be happened.
if(request.getRequestURL() ==expected page ( I mean the page with the button) )
I think this will will solve that issue. and no need to edit web.xml also.