Results 1 to 5 of 5

Thread: SimpleUrlHandlerMapping

  1. #1

    Default SimpleUrlHandlerMapping

    Hi,

    I have the following code for urlMapping in the xyz-servelt.xml.

    Code:
    <bean id="urlMapping" class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    		<property name="mappings">
    			<props>
    				<prop key="/customerManagementNEW.lak">customerNEDManagementController</prop>
    				<prop key="/customersView.lak">customerViewManagementController</prop>
    				<prop key="/searchCustomers.lak">customerManagementAjaxController</prop>				
    				<prop key="/suppliersView.lak">supplierViewManagementController</prop>
    				<prop key="/supplierSearch.lak">suppManagementAjaxController</prop>
    				<prop key="/supplierManagementNEW.lak">supplierNEDManagementController</prop>
    				<prop key="/banksView.lak">bankViewManagementController</prop>				
    				<prop key="/bankManagementNEW.lak">bankNEDManagementController</prop>
    				<prop key="/cashManagementNEW.lak">cashNEDManagementController</prop>				
    				<prop key="/acctGrpsView.lak">acctGrpViewManagementController</prop>
    				<prop key="/acctGrpManagementNEW.lak">acctGrpNEDManagementController</prop>
    				<prop key="/searchAccountGroups.lak">acctGrpManagementAjaxController</prop>				
    				<prop key="/ledgerManagementNEW.lak">ledgerNEDManagementController</prop>						
    			</props>
    		</property>
    	</bean>
    and i am sending the request
    http://localhost:7001/industry/supplierSearch.lak

    but this is not detecting in the urlMapping SimpleUrlHandlerMapping.

    Any problem in my above code to detect.

    Im struggling about this last two days onwards please guide me.


    Thanks,
    Bhaskar.

  2. #2
    Join Date
    Apr 2006
    Location
    South Carolina
    Posts
    122

    Default

    Two questions:

    1. Is *.lak (or something like that) mapped in web.xml?
    2. What exactly happens when you hit the URL? Error 404? Anything on the console? Does the application start happily in the first place? Anything else unusual?

  3. #3

    Default

    Yes i have declared in the web.xml *.lak like below
    Code:
    	<servlet>
    		<servlet-name>industry</servlet-name>
    		<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    		<load-on-startup>1</load-on-startup>
    	</servlet>
    
    <servlet-mapping>
    		<servlet-name>industry</servlet-name>
    		<url-pattern>*.lak</url-pattern>
    	</servlet-mapping>
    Im getting error like 404 error, but it was not showing any error in my console or in my log file. that is the problem if it shows any error then we will trace it but not.


    Thanks,
    Bhaskar.

  4. #4
    Join Date
    Apr 2006
    Location
    South Carolina
    Posts
    122

    Default

    Yea, these 404's can be annoying. Usually it takes me forever to fix them, and I promptly forget what was wrong in the first place.

    Can you hit other pages?

    Is your applications secured, or do you authenticate first? (Specifically, could your security somehow be blocking it?)

  5. #5

    Default

    Hi,

    other pages are working and links also working fine, i dont know y only this link is not working...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •