• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to invoke Servlet from iframe

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have written a Servlet to handle iframe request, but it shown the following error:

HTTP Status 404 - /ForestsurfClient-web/product-photo-gallery.jsp

type Status report

message /ForestsurfClient-web/product-photo-gallery.jsp

description The requested resource (/ForestsurfClient-web/product-photo-gallery.jsp) is not available.

Here is my web.xml file:


Servlet class:



When the error message shown on the jsp page, the logger debug message isn't show up in the console.

Here is the file path of the "missing" jsp file:
WEB-INF/views/prouct-photo-gallery.jsp


Caller jsp file:

Any suggestion is very much appreciated.

Thanks
Samuel
 
Cesar Loachamin
Ranch Hand
Posts: 90
Chrome Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sam, I'm not sure if it's your case but when you are trying to access a resource within the WEB-INF folder you'll get a 404 error, I suggest you to move out your folder views one level up from the WEB-INF folder, I hope this help you.

Kind regards.
César


 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Cesar Loachamin wrote:Hi Sam, I'm not sure if it's your case but when you are trying to access a resource within the WEB-INF folder you'll get a 404 error, I suggest you to move out your folder views one level up from the WEB-INF folder, I hope this help you.

Kind regards.
César




Yep, you are right.
Thank you for the suggestion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic