• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Customized Action Servlet

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
This group is doing really great help to java aspirants. I am very thankful to all of the members. I am new to struts and have a doubt regarding Controller. Please suggest.

Since Struts is designed on MVC architecture, we are not allowed to use more than one Controller per our web application. is this only a guideline or can we have more than one Controller in our application. though this violates MVC design paradigm, is it allowed to use more than one Action Servlet with struts? if yes how can we achieve this?

Also, can we have our own base Action Servlet as a controller?

Thanks in advance.
--Deepika


 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I don't think you can have more than one Controller or (Filter in Struts2),

Regarding creation of your own Controller:
You can create the Controller, however then you would be deprived of the services which the Struts Default Controller provides, as all those would need to be taken care by your own Controller.

However entire objective of using the Struts is to have a some MADE UP, tested and certified, BASE for web application development, and if we are writing our own controller and doing things ourselves it would mean doing things from scratch, so not sure actually where we would require to write our Controller in Struts.

May be some experience users can throw some light on it.
 
Paper jam tastes about as you would expect. Try some on this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic