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

The request sent by the client was syntactically incorrect ??

 
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
New to struts and I ma not sure what I am doing wrong. When my forward action is called I get an error. Here is the error and a break-down of what I assume to be the relevant pieces of code

Why is it putting the space in the path? The folder is CurrentSupplies (no spaces) but it seems to keep looking for Current[space]supplies

Error-
The request sent by the client was syntactically incorrect (Invalid path /Current Supplies/menu was requested).
Struts-config (relevant part)-


Forward Action �


Why is it putting the space in the path? The folder is CurrentSupplies (no spaces) but it seems to keep looking for Current[space]supplies
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe the problem lies outside of the code you have shown us. It is the call to the /CurrentSupplies/menu action that is the problem, not the forward. Search your JSPs and html files for a link to /Current Supplies/menu or /Current Supplies/menu.do.

One thing that will cause problems in the configuration file you showed us, though is:

Originally posted by Pat Peg:
path="/app/ currentSupplies /main.jsp"




This shouldn't have any spaces in it.
 
So I left, I came home, and I ate some pie. And then I read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic