Unfortunatly this does not work (each frame ends up containing my standard error page). I've been through all the posts relating to this type of problem that I can find on this forum and have tried many variations of this code but with no success. I'd be grateful for any help anyone can offer.

Thanks for the reply Marc. It doesn't have to be frames but I don't know what else I can use to achieve the functionality I'm after. I need to hold the menu (which uses struts-menu btw) in place while the body content scrolls. I've tried the Javascript watermark script but its not ideal (i.e. the client doesn't like it). Tried an iFrame for the content but get the same problem as with normal frames. I'd certainly welcome any other suggestions, but from what I've read here my code (or something similar) should work.

You did not mention what the getAsString tags are returning. Are they the names of jsps? I don't think any other value would make sense in this context.

James Blackmore
Greenhorn

Joined: Apr 11, 2005
Posts: 5

posted Apr 12, 2005 08:47:00

0

The header frame needs to go right across the top of the page, with the menu frame underneath and down the left with the content on the right, so I think so. The layout look right on the page.

Yes the 'getAsString' calls are to JSPs. I've viewed the source of the generated page and its finding the correct JSPs. I also tried 'get' calls instead and the source of the JSPs was written into the generated HTML, but this still didn't work.

Could it be something to do with the way Struts is configured? Do I need to set up action forwards for the pages? I can't access the JSPs if I type their URL into the browser address bar (e.g. http://host ort/appContext/x.jsp). Sorry, I'm new to Struts and am modifying code that I didn't originally write.

Originally posted by James Blackmore: Could it be something to do with the way Struts is configured? Do I need to set up action forwards for the pages? I can't access the JSPs if I type their URL into the browser address bar (e.g. http://host ort/appContext/x.jsp). Sorry, I'm new to Struts and am modifying code that I didn't originally write.

If the jsps are in the WEB-INF folder you will not be able to access them directly from the browser and will need some Struts Actions that point to them.