-1

i have a javascript breadcrumbs() function

and i want that this function should be call on page load of every jsp page ,so my breadcrumb can be set for all jsp.

can anyone help me?

Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
manoj
  • 118
  • 8
  • Any code you have? What's the structure? – Praveen Kumar Purushothaman Jan 30 '13 at 06:08
  • You can call that function as usual on the `onload` event of the `` tag. There is no magical way to do so. What are your functional requirements? – Lion Jan 30 '13 at 06:11
  • actually i am not using and – manoj Jan 30 '13 at 06:23

2 Answers2

1

You can use

<%@include file="script.jsp" %>

to embed the script into the page code directly. This would be preferable if the script is small and JSP can even customize it for every page, if required.

Audrius Meškauskas
  • 20,936
  • 12
  • 75
  • 93
0

you can put on body tag like this

<body onload="breadcrumbs()">
zdesam
  • 2,936
  • 3
  • 25
  • 32