my dog learned polymorphism*
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
Author

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
Marshal

Joined: May 26, 2003
Posts: 30595
    
154

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.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Niranjan Aithal
Greenhorn

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.
 
GeeCON Prague 2014
 
subject: Accessing JSP/PDF directly through URL