This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Accessing JSP/PDF directly through URL

 
changu mani
Ranch Hand
Posts: 30
  • 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: 34837
369
Eclipse IDE Java VI Editor
  • Likes 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic