• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Request sent by the client is syntactically incorrect.

 
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am new to spring and learning from spring source. I tried a multipart file upload example from the documentation. When I tried to upload the file my server is responding with

Request sent by the client is syntactically incorrect.


My html code is The controller isThis is in my app-config.xml file
Can anyone please help me.

Thank you all in advance. Good day
 
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is your URL mapping. You get that error when the url your browser used is incorrect. There is no URL with that mapping.

Mark
 
chaitanya karthikk
Ranch Hand
Posts: 806
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Mark Spritzler wrote:It is your URL mapping. You get that error when the url your browser used is incorrect. There is no URL with that mapping.

Mark



That is the example given in Springsource itself. I just replicated it. Can you please tell me how to fix this?

Thank you in advance.
 
Mark Spritzler
ranger
Posts: 17344
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'll give you the same response. Your URL is not mapped correctly. That includes Servlet mapping and url mapping in Controller and configuration. You don't post any of that so the most I can tell you is that your Mapping is wrong somewhere.

Mark
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!