• 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
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Error in struts-config.xml

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I'm new to struts framework. When I try to match values in the struts-config.xml I got the error like this"Input path value must point to a valid object". I couldn't identify why it is coming... My code is following:

<action path="/Guess"
type="examples.GuessAction"
name="GuessForm"
input="index.jsp">
<forward name="Continue" path="/ContinueGuessing.jsp" />
<forward name="ItsOver" path="/GameOver.jsp" />
</action>

regards,
Maheshwaran Devaraj
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The input path is not considered valid unless it begins with a "/", so change input="index.jsp" to input="/index.jsp".
 
Maheswaran Devaraj
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Merrill,


Thanks for your reply. I did it

regards,
Maheshwaran Deveraj
 
No. No. No. No. Changed my mind. Wanna come down. To see this tiny ad:
Enterprise-grade Excel API for Java
https://products.aspose.com/cells/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!