• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 228
  • Last Modified:

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"/>
0
KenTan85
Asked:
KenTan85
  • 4
  • 2
1 Solution
 
objectsCommented:
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.

0
 
KenTan85Author Commented:
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???
0
 
objectsCommented:
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

0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
objectsCommented:
basically the same way you would do it with html (no jsp)
0
 
KenTan85Author Commented:
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.
0
 
objectsCommented:
the client (browser) needs to specify the anchor point to load to, it is not controlled server side

0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now