GeeCON Prague 2014*
The moose likes Struts and the fly likes Error in struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error in struts-config.xml" Watch "Error in struts-config.xml" New topic
Author

Error in struts-config.xml

Maheswaran Devaraj
Ranch Hand

Joined: Sep 14, 2007
Posts: 47
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

Joined: Feb 15, 2005
Posts: 4864
The input path is not considered valid unless it begins with a "/", so change input="index.jsp" to input="/index.jsp".


Merrill
Consultant, Sima Solutions
Maheswaran Devaraj
Ranch Hand

Joined: Sep 14, 2007
Posts: 47
Hi Merrill,


Thanks for your reply. I did it

regards,
Maheshwaran Deveraj
 
GeeCON Prague 2014
 
subject: Error in struts-config.xml