This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error in struts-config.xml

 
Maheswaran Devaraj
Ranch Hand
Posts: 47
  • 0
  • 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
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • 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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Merrill,


Thanks for your reply. I did it

regards,
Maheshwaran Deveraj
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic