Announcement Announcement Module
Collapse
No announcement yet.
Not calling onSubmit in MVC tutorial Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Not calling onSubmit in MVC tutorial

    I've tried searching before posting, but no luck.

    In chapter 4 of MVC tutorial(it won't let me post link)

    I am attempting to do the last part of increasing price and I am getting the 404 not found when it makes it to /springapp/priceincrease.htm

    So I click the Increases Price link on the hello.htm forward and when stepping through it goes straight to the setPercentage method and never makes it to onSubmit of the PriceIncreaseFormController

    I've attempted to follow tutorial and my only difference is the location of JSP's, they are not inside of web-inf. I've checked all the files and will post whatever code is needed, but I'm not sure what else to try. Anyone else seen this problem? Thoughts?

    Code:
    	<bean name="/priceincrease.htm" class="springapp.web.PriceIncreaseFormController">
    		<property name="sessionForm" value="true" />
    		<property name="commandName" value="priceIncrease" />
    		<property name="commandClass" value="springapp.service.PriceIncrease" />
    		<property name="validator">
    			<bean class="springapp.service.PriceIncreaseValidator" />
    		</property>
    		<property name="formView" value="priceincrease" />
    		<property name="successView" value="hello.htm" />
    		<property name="productManager" ref="productManager" />
    	</bean>

  • #2
    nevermind, pathing issue. mod can delete thread.

    Comment

    Working...
    X