• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

How to invoke Servlet from iframe

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 90
Eclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic