I am trying to create a dialog framework . and in that I am stuck to a place when I am showing the dialog I wants the contents to be picked up from tag files or jsp's meaning I have for example setting.tag and quicklinks.tag and for both i have have different hyperlinks so onclick when I call the javascript function the contents of my div should take the contents of setting.tag or quicklinks.tag based on which one clicked.

so basically the question is can I dynamically include a jsp or a tag file through javascript in another jsp