Hi, I am trying to generate a *dynamic* menu. I have a regular 'java' function which spits out menu tags (struts layout taglib related). The intention is to use Sitemesh to create the menu depending on the access permissions of the logged in user without any "dirty coding" in JSP's.
<%=Resource.generateMenu(DataAccessManager.getResourceById(-1))%> Resource.generateMenu recursively calls itself till it generates a string of menu tags depending on access permissions. Ignore the fact that my JSP is directly calling a function in my dataacess layer! ;-) Will fix it once I get this to work:-) I am stuck with the following problem. I do not know how to force the interpretation of the string of tags generated. What is happening (as expected) is that the tags just pass to the browser as they are with OUT getting processed. A "view source" on my browser shows the following: <body> <table width="100%"> <tr width="100%"> <!-- The output of generateMenu function starts here --> <layout:dynMenu config='MainMenu' left='10' top='10'> <layout:menuItem key='All' link='All'> <layout:menuItem key='Reports' link='Reports'></layout:menuItem> <layout:menuItem key='Student' link='Student'> <layout:menuItem key='Enrollment' link='Enrollment'></layout:menuItem> <layout:menuItem key='Enquiry' link='Enquiry'></layout:menuItem> <layout:menuItem key='Search' link='Search'></layout:menuItem> </layout:menuItem> <layout:menuItem key='Management' link='Management'> <layout:menuItem key='Location' link='Location'></layout:menuItem> <layout:menuItem key='Centre' link='Centre'></layout:menuItem> <layout:menuItem key='Course' link='Course'></layout:menuItem> </layout:menuItem> </layout:menuItem> </layout:dynMenu> etc..... Note that these tags are generated as a result of the generateMenu function and are NOT getting processed further on the server side before they are pushed on to the browser. I believe JSP does only ONE pass parsing. How do I circumvent this problem and get my tags to be processed before they leave the server? Thanks. Regards, Raghu --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]