Jason Carreira wrote:
-----Original Message-----
From: Rickard Öberg [mailto:[EMAIL PROTECTED]


Yes, and the right way to do this is probably to enforce that views have this style "/WEB-INF/foo" where "foo" is the name of the subapp, i.e. do a "hard prefixing". This will ensure that you can always get them to play along nicely, with a little admin if necessary.

We're talking about subapps here, but they all seem to be packaged together? Wouldn't you want your subapps to be packaged in a war file of some sort?

Yes, it's kind of like multiple WAR's in an EAR, except they're multiple XWork modules in one WAR.


So, yes, the subapps are packaged in a WAR file. The same WAR file.

Why not use the standard XML way to include files in other files, i.e. using entities? The above seems a bit like reinventing the wheel.

Do you have an example of this? I've never used this.

Never used entities? They're pretty straightforward. Here's an example (straight from our AOP config):
<!DOCTYPE aspects SYSTEM "aspects.dtd" [
<!ENTITY interceptors SYSTEM "interceptors.xml">
<!ENTITY serverinterceptors SYSTEM "serverinterceptors.xml">
<!ENTITY extensions SYSTEM "extensions.xml">
<!ENTITY serverextensions SYSTEM "serverextensions.xml">
<!ENTITY services SYSTEM "services.xml">
<!ENTITY objects SYSTEM "objects.xml">


   <!ENTITY forum SYSTEM "forum.xml">
   <!ENTITY form SYSTEM "form.xml">

   <!ENTITY levis SYSTEM "levis.xml">
]>

<aspects>
   <!-- System definitions -->
   &interceptors;
   &serverinterceptors;
   &extensions;
   &serverextensions;
   &services;
   &objects;

   <!-- Modules -->
   &forum;
   &form;
</aspects>
---

Which coincidentally gives an example of multiple subapps in one app, i.e. the form/forum stuff.

It'd be cool if one didn't have to declare the entities, i.e. to be able to have resolve the entities automatically (e.g. "&forum.xml;" would automatically resolve to "forum.xml" without having to declare it first). I have not been able to figure out how to do that though. If anyone knows, please tell :-)

/Rickard



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to