>Do you mean that, inside a JSP page, you are able to get the definition >that contains the current JSP page? It won't give the definiton which content the current page but u have to give the definition name which contains the current page. U have to pass the definition name to the Definitionfactory it will return the Object of that definiton where u can iterate through the hashMap of its member( <Put> in definition file) and u can play with the definition file at run time. Here is the code import org.apache.struts.tiles.ComponentDefinition; import org.apache.struts.tiles.DefinitionsUtil;
function{ ComponentDefinition definition = null; String strDef = "dynamicTiles";//dynamicTiles try { definition = DefinitionsUtil.getDefinition(strDef,request, request.getSession().getServletContext()); HashMap mapAttributes = (HashMap)definition.getAttributes(); if( mapAttributes != null) { //getting the putlist 's ArrayList 's reference by its name ArrayList listBody = (ArrayList)mapAttributes.get("body"); >If yes, what are you waiting for, post the code! (please) :-P Ciao Antonio Antonio Petrelli <[EMAIL PROTECTED]> wrote: navin mca ha scritto: > Hi, > > We can get the whole defition at run time and can also get its attributes and > their value. > > Let me know if this help you then i will post the code. > Do you mean that, inside a JSP page, you are able to get the definition that contains the current JSP page? If yes, what are you waiting for, post the code! (please) :-P Ciao Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks and Regards, Novin Jaiswal +919890089443(M) +912039511388(H) +912026901306(O) direct +912026982424 Extn:1306 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com