Discussions

Web tier: servlets, JSP, Web frameworks: Problem with struts-config.xml

  1. Problem with struts-config.xml (2 messages)

    Hi, I am new to struts, I have created a jsp page and trying to submit the data from the page to action servlet. But it is not executing the execute() method of ActionServlet. Can anyone please help me. I am providing my struts-config.xml entry. <!-- Data Sources --> <!-- Form Beans --> <!-- Global Exceptions --> <!-- Global Forwards --> <!-- <forward name="welcome" path="/Welcome.do"/> <forward name="logon" path="/Logon.do"/> --> <!-- Action Mappings --> <!-- Message Resources --> if I remove the input attribute from servlet-mapping it gives error that no input attribute defined. On giving this it remains on the same page. Thanking you in anticipation Amit Kanodia
  2. Re: Problem with struts-config.xml[ Go to top ]

    try changing the name of form bean to some other name. You are using the name that is same as class name
  3. Re: Problem with struts-config.xml[ Go to top ]

    Thanks for your reply. But it is perfectly acceptable with the form-bean tag having any name to represent the bean. This is just to make the reference to the particular bean.