reset password
Author Message
p0941
Posts: 95
Posted 13:06 Nov 06, 2009 |

When I clicked into a hyperlink I created for a .jsp file, the system took me to an "index" page.  Does this mean something wrong with my database schema?  Thank you. 

 

 

cysun
Posts: 2935
Posted 14:52 Nov 06, 2009 |

It's a MVC framework which means you don't access JSP directly. The application redirects to the index page on a 404 error, which happens when servlet mapping, controller mapping, or JSP resolution fails.

p0941
Posts: 95
Posted 15:07 Nov 06, 2009 |

The error message is "The requested resource(/assignment/viewOnlineAssignments.html) is not abailbable", but I have the mapping in the csns.servlet.xml like this: 

<bean name="/assignment/viewOnlineAssignments.html"
        class="csns.spring.controller.assignment.ViewOnlineAssignmentsController">
        <property name="viewName" value="assignment/ViewOnlineAssignments" />

.......

And my hyperlink is like:  <a href="/assignment/viewOnlineAssignments.html?sectionId=${section.id}">View Online Assignment</a>

Thanks

cysun
Posts: 2935
Posted 15:25 Nov 06, 2009 |

Your href probably should be assignment/viewOnlineAssignments.html, i.e. no "/".