• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

sub-module in struts 1.1?

 
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could anyone tell me if Struts1.1 supports sub-modules with multi
struts-config files? Does this mean multi-ActionServlet?
 
author
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need only one ActionServlet.
Multiple modules are configured against the same Servlet using different struts config files.
Each of the module will have its own RequestProcessor though
 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree, and would like to add that the examples that come with download of tiles (e.g. tiles.war) has a good example of multiple config files.
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My impression from the documentatin/website was that multiple ActionServlets were supposed to be used/could be used, but for some reason only one actually was.
However, I don't think it really makes a difference until you start extending it to create your own action servlet. That shouldn't really be necessary with the way the other functionality was pulled out of it for the 1.1 release.
My two cents. (Just in response to another response on this posting)
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Nathaniel Stoddard:
My impression from the documentatin/website was that multiple ActionServlets were supposed to be used/could be used, but for some reason only one actually was.
However, I don't think it really makes a difference until you start extending it to create your own action servlet. That shouldn't really be necessary with the way the other functionality was pulled out of it for the 1.1 release.
My two cents. (Just in response to another response on this posting)


It is possible to assign a different action servlet for each sub-module. However since most people use the action servlet as is, it's not necessary. The functionality that the action servlet had in version 1.0 has been split
between the action servlet and the action processor. As I understand it, each sub-module requires its own action processor but they can share one action servlet. The advantage of using a separate action servlet for each sub-module is that you can separate pieces of your application for sale (assuming your application is that good).
 
I carry this gun in case a vending machine doesn't give me my fritos. This gun and this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!