File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Accessing JSP/PDF directly through URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Accessing JSP/PDF directly through URL" Watch "Accessing JSP/PDF directly through URL" New topic

Accessing JSP/PDF directly through URL

changu mani
Ranch Hand

Joined: Aug 31, 2012
Posts: 30
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

Joined: May 26, 2003
Posts: 33124

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Niranjan Aithal

Joined: Mar 17, 2012
Posts: 6
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:
subject: Accessing JSP/PDF directly through URL
It's not a secret anymore!