Hi Antonio ,
Thanks alot for your help.
Could u pls explain me how following code will help me to solve the race
condition
<plug-in className="org.apache.struts.tiles.TilesPlugin">
<set-property property="definitions-config"
value="/WEB-INF/dimensions-config.xml"/>
1. wht should I put in dimensions-config.xml file (Do you want to say that I
should put my tile definition in it which is having such complex accessing
problem.)
2. wht should I do to implement DefinitionsFactory or extend FactorySet , I
had read the documentation but there is no much help regarding these classes.
Do u want to say that after making above configuration in the struts config
file FactorySet will be automatically implemented by struts and one request
will be served by one exclusive instance of the same tile definition file.
if not then let me explain or direct me to some example or tutorial.
Hope my queries are sensible to you.
regards,
Novin
Antonio Petrelli <[EMAIL PROTECTED]> wrote:
navin mca ha scritto:
> Hi Antonio,
>
> >Oh boy your English gave me an headache!
>
> I am really sorry for my bad english.
>
> Following is my tile definition.
>
>
>
>
>
>
>
>
>
>
>
>
>
> Here
>
>
>
> is the condional tile which will be added/removed at run time from the tile
> definition object based on some request flag.
>
> So my query is
>
> What will happen when there will be multiple calls for the same Tile
> definition for both form of the tile object(with or without position3.jsp
> tile)
>
It is a so-called race-condition: it depends what happens first. Anyway
it will lead you to a 50% chance to have it wrong. How Tiles definitions
are created depends on the DefinitionsFactory. The default one creates
definitions for their use in the whole application. Therefore if you
change it once, it will be changed forever (until you change it again :-P ).
The only way to solve your problem is to implement DefinitionsFactory or
extend FactorySet class. To configure it modify struts-config.xml this way:
**snip**
value="/WEB-INF/dimensions-config.xml"/>
**snap**
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
---------------------------------
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
starting at 1¢/min.