Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • Poll: What part of a Struts will be the most important tosupport for m

    9 answers - 1225 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Well, it would have made Atlassian's life easier.
    JIRA is written with
    WW1 and Confluence is written with WW2, the two
    versions cannot
    coexist in the same web application, and they still
    haven't gotten
    around to migrating JIRA. When people (like me) run
    both applications,
    we need to run them as two separate web apps, instead
    of two "modules"
    that can share session.
    Not to nitpick, but WW1 and WW2 CAN peacefully coexist, because we changed the package names in the change. At Notiva we converted the app piecemeal from WW1 to WW2 over time, moving over new pieces and migrating anything old that we had to touch. We simply mapped them to different extensions.
    I'm not sure why Atlassian didn't switch over. Maybe it just didn't ever make sense. Maybe there was some other issue with common configuration files that we didn't run into at Notiva. But I can tell you that they can run side-by-side, just as WebWork 2.x and Struts 2.x will be able to.
    Posted via Jive Forums
    #66503
    To unsubscribe, e-mail: dev-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: dev-help (AT) struts (DOT) apache.org
  • No.1 | | 358 bytes | |

    Is it possible to have multiple chain configurations for the same Struts
    1.3 app. For example, can you configure one module to use tiles and
    another to not do so?

    Regards,
    Phil Zoio

    To unsubscribe, e-mail: dev-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: dev-help (AT) struts (DOT) apache.org
  • No.2 | | 1395 bytes | |

    At 9:23 PM +0100 6/13/06, Phil Zoio wrote:
    >Is it possible to have multiple chain configurations for the same
    >Struts 1.3 app. For example, can you configure one module to use
    >tiles and another to not do so?


    It is technically possible to change which command is looked up in
    the catalogs and executed to process the request as part of the
    controller-config on per-module basis. However, you'd need to go to
    some greater lengths to define the necessary commands and catalogs,
    because the distributed chain-config.xml in both struts-core and
    struts-tiles use the same catalog name. The idea was to minimize the
    places where a user would need to change configurations to use Tiles.

    For the specific case you cite, there's really no need to do anything
    special, since if you are using the Tiles request processing chain,
    nothing prevents you from using ActionForwards which do not point to
    tiles paths intermixed with those which do. Just use the
    chain-config packaged in struts-tiles (as indicated at
    #)

    If people end up doing a lot of mixing and matching of chain
    catalogs, we would want to make this easier than it is now, but so
    far we just don't know enough about if or how people are likely to
    want to do this, so it's hard to know how to make it easier.

    Joe
  • No.3 | | 2070 bytes | |

    I can't comment on how people are actually using it, but changing the
    request processor workflow on a per module basis is quite easy with
    Struts 1.2. Assuming that this is something which some people are doing,
    then it would seem to make sense to support this for Struts 1.3 as well,
    at least for the interests of consistency with previous versions,
    especially if the 1.2 request processor has been earmarked for deprecation.

    Phil

    Joe Germuska wrote:

    At 9:23 PM +0100 6/13/06, Phil Zoio wrote:
    >
    >Is it possible to have multiple chain configurations for the same
    >Struts 1.3 app. For example, can you configure one module to use
    >tiles and another to not do so?
    >
    >

    It is technically possible to change which command is looked up in the
    catalogs and executed to process the request as part of the
    controller-config on per-module basis. However, you'd need to go to
    some greater lengths to define the necessary commands and catalogs,
    because the distributed chain-config.xml in both struts-core and
    struts-tiles use the same catalog name. The idea was to minimize the
    places where a user would need to change configurations to use Tiles.

    For the specific case you cite, there's really no need to do anything
    special, since if you are using the Tiles request processing chain,
    nothing prevents you from using ActionForwards which do not point to
    tiles paths intermixed with those which do. Just use the chain-config
    packaged in struts-tiles (as indicated at
    #)
    --
    If people end up doing a lot of mixing and matching of chain catalogs,
    we would want to make this easier than it is now, but so far we just
    don't know enough about if or how people are likely to want to do
    this, so it's hard to know how to make it easier.

    Joe

    To unsubscribe, e-mail: dev-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: dev-help (AT) struts (DOT) apache.org
  • No.4 | | 2867 bytes | |

    At 9:09 PM +0100 6/14/06, Phil Zoio wrote:
    >I can't comment on how people are actually using it, but changing
    >the request processor workflow on a per module basis is quite easy
    >with Struts 1.2. Assuming that this is something which some people
    >are doing, then it would seem to make sense to support this for
    >Struts 1.3 as well, at least for the interests of consistency with
    >previous versions, especially if the 1.2 request processor has been
    >earmarked for deprecation.


    Phil:

    Have you looked at what is required to change the workflow in Struts
    1.3 on a per-module basis? Can you point out where you think it's
    unnecessarily complicated? Do you have any ideas about how to do it
    differently?

    Joe


    >Phil
    >
    >
    >Joe Germuska wrote:
    >
    >>At 9:23 PM +0100 6/13/06, Phil Zoio wrote:
    >>

    Is it possible to have multiple chain configurations for the same
    Struts 1.3 app. For example, can you configure one module to use
    tiles and another to not do so?
    >>
    >>
    >>It is technically possible to change which command is looked up in
    >>the catalogs and executed to process the request as part of the
    >>controller-config on per-module basis. However, you'd need to go
    >>to some greater lengths to define the necessary commands and
    >>catalogs, because the distributed chain-config.xml in both
    >>struts-core and struts-tiles use the same catalog name. The idea
    >>was to minimize the places where a user would need to change
    >>configurations to use Tiles.

    >
    >>
    >>For the specific case you cite, there's really no need to do
    >>anything special, since if you are using the Tiles request
    >>processing chain, nothing prevents you from using ActionForwards
    >>which do not point to tiles paths intermixed with those which do.
    >>Just use the chain-config packaged in struts-tiles (as indicated at

    )
    >>
    >>If people end up doing a lot of mixing and matching of chain
    >>catalogs, we would want to make this easier than it is now, but so
    >>far we just don't know enough about if or how people are likely to
    >>want to do this, so it's hard to know how to make it easier.
    >>

    >
    >>Joe

    >
    >
    >
    >
    >To unsubscribe, e-mail: dev-unsubscribe (AT) struts (DOT) apache.org
    >For additional commands, e-mail: dev-help (AT) struts (DOT) apache.org
  • No.5 | | 3190 bytes | |

    Joe Germuska wrote:

    At 9:09 PM +0100 6/14/06, Phil Zoio wrote:
    >
    >I can't comment on how people are actually using it, but changing the
    >request processor workflow on a per module basis is quite easy with
    >Struts 1.2. Assuming that this is something which some people are
    >doing, then it would seem to make sense to support this for Struts
    >1.3 as well, at least for the interests of consistency with previous
    >versions, especially if the 1.2 request processor has been earmarked
    >for deprecation.
    >
    >

    Phil:

    Have you looked at what is required to change the workflow in Struts
    1.3 on a per-module basis? Can you point out where you think it's
    unnecessarily complicated? Do you have any ideas about how to do it
    differently?

    Joe

    Joe - I haven't yet - I will need to understand the mechanism you are
    talking about a bit better. I'm still not very familiar with commons chain.

    Phil

    >
    >
    >Phil
    >>
    >>

    >Joe Germuska wrote:
    >>

    At 9:23 PM +0100 6/13/06, Phil Zoio wrote:

    Is it possible to have multiple chain configurations for the same
    Struts 1.3 app. For example, can you configure one module to use
    tiles and another to not do so?

    It is technically possible to change which command is looked up in
    the catalogs and executed to process the request as part of the
    controller-config on per-module basis. However, you'd need to go
    to some greater lengths to define the necessary commands and
    catalogs, because the distributed chain-config.xml in both
    struts-core and struts-tiles use the same catalog name. The idea
    was to minimize the places where a user would need to change
    configurations to use Tiles.
    >>
    >>


    For the specific case you cite, there's really no need to do
    anything special, since if you are using the Tiles request
    processing chain, nothing prevents you from using ActionForwards
    which do not point to tiles paths intermixed with those which do.
    Just use the chain-config packaged in struts-tiles (as indicated at
    #)

    If people end up doing a lot of mixing and matching of chain
    catalogs, we would want to make this easier than it is now, but so
    far we just don't know enough about if or how people are likely to
    want to do this, so it's hard to know how to make it easier.

    >>

    Joe
    >>
    >>
    >>
    >>

    >
    >To unsubscribe, e-mail: dev-unsubscribe (AT) struts (DOT) apache.org
    >For additional commands, e-mail: dev-help (AT) struts (DOT) apache.org
    >
    >
    >


    To unsubscribe, e-mail: dev-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: dev-help (AT) struts (DOT) apache.org
  • No.6 | | 4550 bytes | |

    Joe,

    Could Struts 1.3 set up to have a separate chain per module? Suppose you
    wanted to partition your app so that certain parts use one chain
    configuration and other parts use another. In 1.2 you'd use separate
    subclasses of RequestProcessor. With Struts 1.3, ideally you should be
    able to use separate chains. You could for example build a lightweight
    chain to handle parts of the application with specific performance
    requirements, and the standard chain for other parts.

    Bearing in mind that a chain is a pretty lightweight object - there will
    only be one instance of each command in memory per chain.

    Any module would by default get the basic pre-supplied chain
    configuration. However, you would be able to override this using a
    web.xml entry in the same way that you set up modules.

    Phil

    Joe Germuska wrote:
    >
    >At 9:09 PM +0100 6/14/06, Phil Zoio wrote:
    >>

    I can't comment on how people are actually using it, but changing
    the request processor workflow on a per module basis is quite easy
    with Struts 1.2. Assuming that this is something which some people
    are doing, then it would seem to make sense to support this for
    Struts 1.3 as well, at least for the interests of consistency with
    previous versions, especially if the 1.2 request processor has been
    earmarked for deprecation.
    >>
    >>
    >>

    >Phil:
    >>

    >Have you looked at what is required to change the workflow in Struts
    >1.3 on a per-module basis? Can you point out where you think it's
    >unnecessarily complicated? Do you have any ideas about how to do it
    >differently?
    >>

    >Joe
    >>
    >>

    At 9:23 PM +0100 6/13/06, Phil Zoio wrote:

    Is it possible to have multiple chain configurations for the same
    Struts 1.3 app. For example, can you configure one module to use
    tiles and another to not do so?

    It is technically possible to change which command is looked up in
    the catalogs and executed to process the request as part of the
    controller-config on per-module basis. However, you'd need to go
    to some greater lengths to define the necessary commands and
    catalogs, because the distributed chain-config.xml in both
    struts-core and struts-tiles use the same catalog name. The idea
    was to minimize the places where a user would need to change
    configurations to use Tiles.
    >>
    >>
    >>


    For the specific case you cite, there's really no need to do
    anything special, since if you are using the Tiles request
    processing chain, nothing prevents you from using ActionForwards
    which do not point to tiles paths intermixed with those which do.
    Just use the chain-config packaged in struts-tiles (as indicated at
    #)

    If people end up doing a lot of mixing and matching of chain
    catalogs, we would want to make this easier than it is now, but so
    far we just don't know enough about if or how people are likely to
    want to do this, so it's hard to know how to make it easier.

    >>

    Joe
    >>
    >>
    >>
    >>
    >>

    >
    >To unsubscribe, e-mail: URL
    >For additional commands, e-mail: URL
    >
    >>
    >>
    >>

    >
    >


    global limited, Registered in England No. 05269056 Reg. : G10 B83 Columba House, Martlesham Heath, Ipswich, Suffolk. IP5 3RE

    This electronic message contains information from global limited which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately.

    This email does not constitute a contract. E&E

    To unsubscribe, e-mail: URL
    For additional commands, e-mail: URL
  • No.7 | | 997 bytes | |

    At 9:07 AM +0100 6/30/06, Phil Zoio wrote:
    >Joe,
    >
    >Could Struts 1.3 set up to have a separate chain per module?


    Phil: I thought we discussed this two weeks ago. In short, the
    answer is "yes". Looking back at what I wrote, perhaps I gave too
    much detail at the wrong time. Here is the core of it:

    >It is technically possible to change which command is looked up in

    the catalogs and executed to process the request as part of the
    >controller-config on per-module basis.


    For context, Struts uses commons-chain code to instantiate a universe
    of catalogs which contain commands. You'd use the <controllerto
    specify the name of a catalog and the name of a command within that
    catalog which is to be executed to process the request. Therefore,
    you could specify different "bootstrap" commands for each controller
    until you turn blue.

    Joe
  • No.8 | | 5067 bytes | |

    That's exactly what Struts 2 does with interceptors, and S2 takes it a
    step farther by allowing each action to have its own sequence, if you
    like.

    An important question is whether we want to stick with Chain in the
    Struts 1.x series or consider moving to Interceptors for Struts 1.4.

    I didn't understand interceptors when we started the Commons Chain
    work, but now that I do, it looks like we reinvented the wheel.
    -Ted.

    6/30/06, Phil Zoio <philip.zoio (AT) iogloballtd (DOT) comwrote:
    Joe,

    Could Struts 1.3 set up to have a separate chain per module? Suppose you
    wanted to partition your app so that certain parts use one chain
    configuration and other parts use another. In 1.2 you'd use separate
    subclasses of RequestProcessor. With Struts 1.3, ideally you should be
    able to use separate chains. You could for example build a lightweight
    chain to handle parts of the application with specific performance
    requirements, and the standard chain for other parts.

    Bearing in mind that a chain is a pretty lightweight object - there will
    only be one instance of each command in memory per chain.

    Any module would by default get the basic pre-supplied chain
    configuration. However, you would be able to override this using a
    web.xml entry in the same way that you set up modules.

    Phil
    --
    Joe Germuska wrote:
    >
    >At 9:09 PM +0100 6/14/06, Phil Zoio wrote:
    >>

    I can't comment on how people are actually using it, but changing
    the request processor workflow on a per module basis is quite easy
    with Struts 1.2. Assuming that this is something which some people
    are doing, then it would seem to make sense to support this for
    Struts 1.3 as well, at least for the interests of consistency with
    previous versions, especially if the 1.2 request processor has been
    earmarked for deprecation.
    >>
    >>
    >>

    >Phil:
    >>

    >Have you looked at what is required to change the workflow in Struts
    >1.3 on a per-module basis? Can you point out where you think it's
    >unnecessarily complicated? Do you have any ideas about how to do it
    >differently?
    >>

    >Joe
    >>
    >>

    At 9:23 PM +0100 6/13/06, Phil Zoio wrote:

    Is it possible to have multiple chain configurations for the same
    Struts 1.3 app. For example, can you configure one module to use
    tiles and another to not do so?

    It is technically possible to change which command is looked up in
    the catalogs and executed to process the request as part of the
    controller-config on per-module basis. However, you'd need to go
    to some greater lengths to define the necessary commands and
    catalogs, because the distributed chain-config.xml in both
    struts-core and struts-tiles use the same catalog name. The idea
    was to minimize the places where a user would need to change
    configurations to use Tiles.
    >>
    >>
    >>


    For the specific case you cite, there's really no need to do
    anything special, since if you are using the Tiles request
    processing chain, nothing prevents you from using ActionForwards
    which do not point to tiles paths intermixed with those which do.
    Just use the chain-config packaged in struts-tiles (as indicated at
    #)

    If people end up doing a lot of mixing and matching of chain
    catalogs, we would want to make this easier than it is now, but so
    far we just don't know enough about if or how people are likely to
    want to do this, so it's hard to know how to make it easier.

    >>

    Joe
    >>
    >>
    >>
    >>
    >>

    >
    >To unsubscribe, e-mail: URL
    >For additional commands, e-mail: URL
    >
    >>
    >>
    >>

    >
    >
    >
    >

    global limited, Registered in England No. 05269056 Reg. : G10 B83 Columba House, Martlesham Heath, Ipswich, Suffolk. IP5 3RE

    This electronic message contains information from global limited which may be privileged or confidential. The information is intended to be for the use of the individual(s) or entity named above. If you are not the intended recipient be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited. If you have received this electronic message in error, please notify us by telephone or email (to the numbers or address above) immediately.

    This email does not constitute a contract. E&E

    To unsubscribe, e-mail: URL
    For additional commands, e-mail: URL
    --
  • No.9 | | 3241 bytes | |

    Joe,

    Yes, I seem to pick up this issue every two weeks, and coming back to it
    again.

    After reading your answers again and delving into the source code, I
    think I understand the mechanism pretty well. The problem for me is that
    Commons Chain does not seem to have an override capability.

    A couple of examples:
    - if you want to use Tiles, you need to either a) uncomment the tiles
    entry in the default chain config or b) use the replacement tiles chain
    config file. IM, you should be able to add Tiles support by specifying
    an additional config file containing only the entries needed to support
    tiles. The main config file should be designed to allow entries to be
    easily overridden or enhanced. A similar mechanism works very well in
    Spring - the way you replace/override existing beans using bean entries
    with the same name in a subsequent config file.
    - if you want to have different chains per module, you'd seem need a
    lot of repeating definitions. I think the result could be pretty
    verbose, again because of the apparent absence of an override mechanism.
    Also, I do think you would be better off having different sets of chain
    instances per module (ie one per ComposableRequestProcessor instance).

    The background of all this is that I'm trying to fine tune the way that
    Strecks supports Struts 1.3.x (which is now present in Strecks 1.0 beta
    3). I'm configuring 1.3 support entirely via chain commands, so it would
    make a big difference if this was easy, especially in allowing for
    different configurations per module.

    The bigger question which is lurking in my mind is whether there is a
    real actual (as against hypothetical) benefit to be gained from the 1.3
    chain request processor. If the chain was easy to configure, it would be
    a no-brainer, but if configuration is not easier, then the advantages
    are much less clear.

    Phil

    Joe Germuska wrote:

    At 9:07 AM +0100 6/30/06, Phil Zoio wrote:
    >
    >Joe,
    >>

    >Could Struts 1.3 set up to have a separate chain per module?
    >
    >
    >

    Phil: I thought we discussed this two weeks ago. In short, the
    answer is "yes". Looking back at what I wrote, perhaps I gave too
    much detail at the wrong time. Here is the core of it:

    It is technically possible to change which command is looked up in

    the catalogs and executed to process the request as part of the

    controller-config on per-module basis.
    >>

    >

    For context, Struts uses commons-chain code to instantiate a universe
    of catalogs which contain commands. You'd use the <controllerto
    specify the name of a catalog and the name of a command within that
    catalog which is to be executed to process the request. Therefore,
    you could specify different "bootstrap" commands for each controller
    until you turn blue.

    Joe
    --

    To unsubscribe, e-mail: dev-unsubscribe (AT) struts (DOT) apache.org
    For additional commands, e-mail: dev-help (AT) struts (DOT) apache.org

Re: Poll: What part of a Struts will be the most important tosupport for m


max 4000 letters.
Your nickname that display:
In order to stop the spam: 5 + 4 =
QUESTION ON "Java"

EMSDN.COM