HTML anchors are written in a way that is incompatible with JSP. So when you write dynamic Web pages, you need to be aware
One: How to write an anchor point in an HTML page
1 HTML Anchor Point 2 3 <a href= "#abc" >goto1</a>45 <a name= "abc" >111</a>6 7 so that from Goto1 can be positioned to 111
View Code
Two: How to write the anchor point in JSP page
JSP anchor Point <a href= "javascript:void (0)" onclick= "document.getElementById (' abc '). scrollIntoView ();" >goto1</a><a id= "ABC" >1111</a>
View Code
JSP page writing an anchor point another way
1 2 3 today in the JSP page want to use a tag anchor point to achieve in the page positioning, a method for 4 5 <a href= "javascript:void (0)" onclick= "window.location.hash= ' View '" ></a>67 <a name= "View" ></a>
View Code
Another way for JSP pages to write anchor points
1 <a href= "left.jsp #first" > Chapter One </a>2 <a name= "First" > Chapter I content </a>34 // to set the anchor point, you need to write the path first. Even the anchor point of this page requires some path. Denial will jump to the following item, or an error
View Code