KenTan85
asked on
JSP include Query
Hi I kn that <jsp:include page> can include a html file. But can it do a html archor link as well???
I tried the below code, but it could not seem to work.
<jsp:include page="testing.htm#Mylink" flush="true"/>
I tried the below code, but it could not seem to work.
<jsp:include page="testing.htm#Mylink" flush="true"/>
no, it doesn't make sence. an anchor just references a location in the html (for the browser to position at). The full page is still returned.
ASKER
Orh because I am writing a jsp to be able to display a html page then go to a specific position, how do I do that in jsp to achieve a similar result???
you need to include the anchor tag in the html, and have the link that calls it specify the anchor tag in the request url
basically the same way you would do it with html (no jsp)
ASKER
hi, how you do that??? any example of it??? Basically my suitation is I have 1 html with different archor point. Inside my jsp, I had a include page of a html. So when user click in my jsp, it would bring user to different part of the html via archor point.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.