Author | Message |
---|---|
layla08
Posts: 70
|
Posted 08:14 Jun 29, 2015 |
I keep getting a 404 when I'm trying to link a .java page from a .html (in this particular instance). It has happened often before and I'm wondering if I learned linking the wrong way! Here is the 404 error that says my path is the following: cs520 > homework1jsp > cs520 > homework1 > AdminMainController Here are the types of links I've tried on my .jsp page:
"AdminMainController"
"${pageContext.request.contextPath}/homework1/AdminMainController"
"cs520/homework1/AdminMainController"
I don't understand why the path is automatically inserting a "homework1jsp" in there when that's the wrong directory. Thanks for you time!
|
cysun
Posts: 2935
|
Posted 08:18 Jun 29, 2015 |
Show the actual 404 error (e.g. a screenshot) and the actual <a href> tag in your JSP. |
layla08
Posts: 70
|
Posted 08:48 Jun 29, 2015 |
Thanks for the quick response! Here are 2 examples and their error messages attached: <a href="AdminMainController">For Administrators</a> <a href="${pageContext.request.contextPath}/homework1/AdminMainController">For Administrators</a>
|
cysun
Posts: 2935
|
Posted 08:58 Jun 29, 2015 |
It may be because your HTML syntax for the breadcrumb is wrong. Remember |
layla08
Posts: 70
|
Posted 09:10 Jun 29, 2015 |
Thanks! |