File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing JSP/PDF directly through URL

 
changu mani
Ranch Hand
Posts: 30
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

I need to access the jsps/pdfs directly through URL when an EAR/WAR is deployed on WAS. Can you please let me know the settings to be done in WASADMIN to access the jsps/pdfs directly through URL?


I'm working on a banking Application. I've a development environment. I Want the jsps/pdfs to be displayed directly when i access them through the URL. It should not throw any message related to security when I try to access it.

Any pointers will be very helpful.
Thanks in Advance
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 33713
316
Eclipse IDE Java VI Editor
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You put them outside the WEB-INF folder but in your war file. However this is a horrible idea for security - and given that you are working on a banking application, you should care about security. Why not use a servlet to front the jsp/pdf?

Since this isn't specific to WebSphere, I'm moving it to our Servlets forum where it will get more people reading it.
 
Niranjan Aithal
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that in file ibm-web-ext.xmi, fileServingEnabled is "true". Also the web.xml should not have any security constraints for jsps and pdfs.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic