• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Customized Action Servlet

 
Deepika Saxena
Ranch Hand
Posts: 59
  • 0
  • Mark post as helpful
  • send pies
  • 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


 
Gagan Tiwari
Ranch Hand
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic