Actually I need to add some button with each link and on click of that button i need to call a Javascript function . Since Javascript function can be written in JSP only so i have to shift the UI part to JSP.
Javascript can be put into any HTML response. There is nothing special about JSP in that regard.
Anyway, the SiteMap main logic will stay the same in terms of building the structure to display. You just need to create a bean to share the data between the logic and display functions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.