• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP Status 404 - The requested resource (/UploadImage/UploadImage) is not available.

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I got the errors:
Status report
message /UploadImage/UploadImage
description The requested resource (/UploadImage/UploadImage) is not available.


Does it means, my jsp file could not get the UploadImage.class file ? Should I use the full path as blow I highlighted in bold face.
Thanks

<form action="C:\xxx\xxx\\eclipse\workspace\UploadImage\build\classes\UploadImage" method="post" enctype="multipart/form-data" name="productForm" id="productForm"><br><br>
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course not.

You should use the context path followed by the servlet path as defined in the deployment descriptor.

This is covered in the ServletsFaq; see https://coderanch.com/how-to/java/ServletNotRunning404
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic