Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show javascript dropdown menu in jsp

Status
Not open for further replies.

pravzICS

Programmer
Aug 8, 2005
12
0
0
US
Hi all,

I am trying to show a javascript dropdown menu in a jsp page, but its not popping up at all.

say, when I open static.html, it shows .js drop down, but when I try opening the same page (.jsp or even .htm) in my application, the drop down does'nt come at all. i am using:

<script language="JavaScript1.2"
SRC="scriptspath/dropDownMenu.js"> </script>

It would be great if you can give me suggestions about what could go wrong.

Thanks a lot.

Pravz

 
Hi,

There is a JavaScript forum in here were in you can get more help try posting the question in javascript. How ever make sure that you .js file in the application's context path and the script should be like this

Code:
<SCRIPT TYPE="text/javascript" language="javascript" src="scriptspath/dropDownMenu.js"></SCRIPT>

Cheers
Venu
 
i tried posting this on javascript also. but it doesnt seem to be a javascript error, as js dropdown menu comes up in a static html, but when i include it in the struts application, its not coming up.
still struggling....
thanks
pravz
 
Try using <html:script type="text/javascript" src="scriptspath/dropDownMenu.js"/> if you are using struts tags.

Hope this will hlep you. If not copy and page the static html page here and how you are calling it in the jsp page.

Cheers
Venu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top