Jeromy -- I don't mean to step on your toes and your plug-in sounds great; but should this "tiny extra" bit of namespace code be submitted as a patch to the already existing wildcard code? I agree the action configuration needs to be flexible but most of it already is. I would just hate to see the need to drop three plug-ins to support parameterizing three adjacent attributes in one action mapping! Plug-ins are an easy way to write these one-off solutions and I can see things getting crazy without a more global assessment.
P.S. What about the RESTful URL plug-in? Does it support swappable namespaces? Scott On Fri, Mar 7, 2008 at 6:12 AM, Jeromy Evans < [EMAIL PROTECTED]> wrote: > I've posted the snapshot jar, example source and an example webapp: > http://code.google.com/p/struts2urlplugin/downloads/list > > The full source is being synsync'd to googlecode as I type. > I won't make a formal release until there's user documentation, but > you're welcome to ask me questions. > > The namespace example exactly matches your requirement. A userId is > passed through the action's namespace to the UserAction. > > jignesh.patel wrote: > > thanks jeromy > > It would be fine for me,if you will send binary or any plug in example. > > > > > > jignesh.patel wrote: > > > >> Hi, > >> I am having struts2 + hibernate application.It uses static > >> namespace(crud) like http://hax.mysite.com/crud/createUser.action. > >> > >> I want it to be dynamic like, i can be able to set it with my algorithm > >> which is unique for each session ... > >> e.g > >> for 1 session) > >> > http://hax.mysite.com/2345RA234/createUser.action....http://hax.mysite.com/2345RA234/showUser.action...etc > >> > >> for 2 session) > >> > http://hax.mysite.com/2323F3B2S/createUser.action....http://hax.mysite.com/2323F3B2S/showUser.action...etc > >> > >> for 3 session) > >> > http://hax.mysite.com/E3459A531/createUser.action....http://hax.mysite.com/E3459A531/showUser.action...etc > >> ... > >> ... > >> etc. > >> > >> Is it possible in struts2 and if yes how ? > >> > >> Thanks in advanced. > >> > >> > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Scott [EMAIL PROTECTED]