I have started looking at Struts, and it seems to have aserious shortcoming
with respect to the customization of web pages:

One of our main services offers a standardized, as well as custom
interfaces, so for example
the standard service is accessed via http://www.datastarweb.com/ , but a
company that has contracted the set up
of a customization, can access it by providing in addition the
customization's name, for example 'foo', as
http://www.datastarweb.com/foo 

We also need to be able to customize pages according to locale in a more
flexible way than just replacing tokens
by language-dependent strings (although we also do that for simple sentences
that do not include dynamic text).

In this case when the application requires to show a page called bar.html,
if the language preference is German, for example, the following sequence of
pages will be tried:

bar_foo_de.html
bar_de.html

While trying out Cocoon, I was able to handle the customization part by
always using the customization prefix in URIs (like
http://localhost/app/foo/somepage.xsp), but
not the language, although probably it could be handled in a similar way
except in the login page:

      <map:match pattern="*/**.xsp">
        <map:act type="resource-exists" src="xsp/{2}_{1}.xsp">          
          <map:generate type="file" src="xsp/{../2}_{../1}.xsp"/>
          <map:serialize type="xml"/>
        </map:act>
        <map:generate type="file" src="xsp/{2}.xsp"/>
        <map:serialize type="xml"/>
      </map:match>
    
I don't think there is a way of achieving this with Struts.

Thanks

--
Fernando Mato Mira                           [EMAIL PROTECTED]
Thomson Dialog

Reply via email to