Announcement Announcement Module
Collapse
No announcement yet.
Pages are not loading using Spring MVC Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pages are not loading using Spring MVC

    Hi

    I am using frames, I have header, footer and left frames and corresponding files. all the pages are static pages in these frames instead of content.
    content pages are jsp files. when a link is clicked on left.htm corresponding jsp page is loaded in the content.

    At the moment i am unable to see any page, Any Suggestions;
    Code is here


    mainFrameset.jsp
    -------------------
    Code:
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    
    <frameset rows="132,*,32" cols="*" frameborder="NO" border="0" framespacing="0">
      <frame src="header.htm" name="topFrame" scrolling="NO" noresize >
      <frameset rows="*" cols="274,*" framespacing="0" frameborder="no" border="0">
        <frame src="left.htm" name="leftFrame" scrolling="AUTO" noresize>
        <frame src="content.htm" name="mainFrame" scrolling="AUTO" noresize>
      </frameset>
      <frame src="footer.htm" name="footerFrame" scrolling="NO">
    </frameset>
    </html>


    left.htm
    -----------
    Code:
    <body link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="95%" border="0" cellspacing="1" cellpadding="1">
      <tr> 
        <td height="335"> 
          <table width="100%" border="0" cellspacing="1" cellpadding="1">
            <tr> 
              <td colspan="2" class="leftMainHeading">Users Management</td>
            </tr>
            <tr class="leftPane"> 
              <td width="10%" class="leftBlue">&nbsp;</td>
              <td width="90%" class="leftLinks"><a href="createUser.htm">Create 
                User</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="updateUser.htm" target="mainFrame">Update User</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="deleteUser.htm" target="mainFrame">Delete User</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="createRole.htm" target="mainFrame">Create Role</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="updateRole.htm" target="mainFrame">Update Role</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="deleteRole.htm" target="mainFrame">Delete Role</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="createPermission.htm" target="mainFrame">Create Permission</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="updatePermission.htm" target="mainFrame">Update Permission</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="deletePermission.htm" target="mainFrame">Delete Permission</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="viewAllUsers.htm" target="mainFrame">View All Users</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="viewAllRoles.htm" target="mainFrame">View All Roles</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="viewAllPermissions.htm" target="mainFrame">View All Permissions</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="AssignRoleToUser.htm" target="mainFrame">Assign Role To 
                User</a></td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks"><a href="AssignPermissionToRole.htm" target="mainFrame">Assign Permission 
                To Role</a></td>
            </tr>
          </table></td>
      </tr>
      <tr> 
        <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
            <tr> 
              <td colspan="2" class="leftMainHeading">Orders Management</td>
            </tr>
            <tr class="leftPane"> 
              <td width="10%" class="leftBlue">&nbsp;</td>
              <td width="90%" class="leftLinks">Create Order</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Update Order</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Delete Order</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">View All Order</td>
            </tr>
          </table></td>
      </tr>
      <tr> 
        <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
            <tr> 
              <td colspan="2" class="leftMainHeading">Staff Management</td>
            </tr>
            <tr class="leftPane"> 
              <td width="10%" class="leftBlue">&nbsp;</td>
              <td width="90%" class="leftLinks">Create Employee</td>
            </tr>
             <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Update Employee</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Delete Employee</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">View All Employee</td>
            </tr>
          </table></td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="1" cellpadding="1">
            <tr> 
              <td colspan="2" class="leftMainHeading">Inventory Management</td>
            </tr>
            <tr class="leftPane"> 
              <td width="10%" class="leftBlue">&nbsp;</td>
              <td width="90%" class="leftLinks">Add Parts</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Update Parts</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Delete Parts</td>
            </tr>
           <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">View All Parts</td>
            </tr>
           <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td width="90%" class="leftLinks">Add Items</td>
            </tr>
            <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Update Items</td>
            </tr>
             <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">Delete Items</td>
            </tr>
           <tr class="leftPane"> 
              <td class="leftBlue">&nbsp;</td>
              <td class="leftLinks">View All Items</td>
            </tr>
          </table></td>
      </tr>
    </table>
    <p class="leftMainHeading">&nbsp;</p>
    </body>
    </html>
    
    DispatcherServlet
    --------------------
    
    	
    	
    	
    
    
    Code:
    <bean
    		name="LoginFormController"
    		class="com.wonder.presentationtier.LoginFormController">
    		<property name="sessionForm">
    			<value>true</value>
    		</property>
    		<property name="formView">
    			<value>login</value>
    		</property>
    		<property name="successView">
    			<value>mainFrameset</value>
    		</property>
    		<property name="validator">
    			<ref bean="LoginValidator" />
    		</property>
    		<property name="userServiceImpl">
    			<ref bean="UserServiceImpl" />
    		</property>
    		<property name="applicationSecurityManager">
    			<ref bean="ApplicationSecurityManager" />
    		</property>
    		<property name="userImpl">
    			<ref bean="UserImpl" />
    		</property>
    	</bean>
    
    <bean
    		id="urlMapping"
    		class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
    		<property name="mappings">
    			<props>
    				<prop key="/login.htm">LoginFormController</prop>
    				<prop key="/createUser.htm">CreateUserFormController</prop>
    			</props>
    		</property>
    	</bean>
    Stacktrace
    -------------
    Code:
    2008-06-17 13:40:27,812 WARN [org.springframework.web.servlet.PageNotFound] - No mapping for [/WonderSales/header.htm] in DispatcherServlet with name 'Wondergas'
    20094 [http-8081-Processor24] WARN org.springframework.web.servlet.PageNotFound  - No mapping for [/WonderSales/header.htm] in DispatcherServlet with name 'Wondergas'
    2008-06-17 13:40:27,812 WARN [org.springframework.web.servlet.PageNotFound] - No mapping for [/WonderSales/left.htm] in DispatcherServlet with name 'Wondergas'
    20094 [http-8081-Processor24] WARN org.springframework.web.servlet.PageNotFound  - No mapping for [/WonderSales/left.htm] in DispatcherServlet with name 'Wondergas'
    2008-06-17 13:40:27,828 WARN [org.springframework.web.servlet.PageNotFound] - No mapping for [/WonderSales/content.htm] in DispatcherServlet with name 'Wondergas'
    20110 [http-8081-Processor24] WARN org.springframework.web.servlet.PageNotFound  - No mapping for [/WonderSales/content.htm] in DispatcherServlet with name 'Wondergas'
    2008-06-17 13:40:27,859 WARN [org.springframework.web.servlet.PageNotFound] - No mapping for [/WonderSales/footer.htm] in DispatcherServlet with name 'Wondergas'
    20141 [http-8081-Processor23] WARN org.springframework.web.servlet.PageNotFound  - No mapping for [/WonderSales/footer.htm] in DispatcherServlet with name 'Wondergas'

    It seems to be a simple problem but cant figure out, If there is any other better solution of doing this please suggest.

  • #2
    i do have same problem, please some one help me !!!!

    Comment

    Working...
    X