Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Archived Topics for the old Version 3.0 JavaScript Menu
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:30

Load problem from request redirect/forwards


Poster: ingemar
Dated: Friday May 16 2003 - 14:58:11 BST

Hi,

I'm using version 3.5.15 in my JSP's inside the Struts framework.

My problem is that when I'm coming from a request redirect/forward the menu is not loading. The menu loads perfectly if I ask for the JSP specifically, for example, http://www.myhost.com/menutest.jsp.

The file menutest.jsp as below:

Code:
<html>
<head>
</head>
<body>
<SCRIPT language=JavaScript src="menu/menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="menu/mmenu.js" type=text/javascript></SCRIPT>
</body>
</html>


When the menutest.jsp is a target for a request redirect/forward it seems like the JavaScript is not loaded or not executed. When checking the code I find that the resulting HTML is exactly the same!

Any advice?

Cheers,

Ingemar Svensson


Poster: Zophar
Dated: Friday May 16 2003 - 15:41:17 BST

I think it's the way you do your redirect and the way you do it... Could we see an example of your redirect!?

Found solution


Poster: ingemar
Dated: Friday May 16 2003 - 17:06:48 BST

Hi there,

Thanks for the reply.

I discovered that because the forward/redirects are executed in a different context then the JSPs my relative paths didn't work. I just replaced them with absolute URLs and voila!

One strange thing is that there was no JavaScript error (normally "Object expected...") telling me that the .js files were not found.

Regards,

Ingemar