Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7703117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:23:06+00:00 2026-05-31T23:23:06+00:00

As of now my Java EE application controller is build using Http Serlvets for

  • 0

As of now my Java EE application controller is build using Http Serlvets for 8 modules
And there is a new module to be added, can I build this new module container using struts1?

What I believe is, this is possible, as these modules are using the front controller pattern for each module.
And as I add new module, I can configure it using my struts1 front controller ActionServlet.
Am I thinking correctly?

 <servlet>
        <servlet-name>module1</servlet-name>
        <servlet-class>com.xyz.module1.BasicsServlet</servlet-class>
  </servlet>
<servlet-mapping>
  <servlet-name>module1</servlet-name>
  <url-pattern>Module1.xp</url-pattern>
</servlet-mapping>

<servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
  </servlet>
<servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>Module9.do</url-pattern>
</servlet-mapping>

PS: I believe if the above is possible,then we can use strut2 also

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T23:23:07+00:00Added an answer on May 31, 2026 at 11:23 pm

    Yes it is possible. below is my web.xml,In My code MyServlet is extending ActionServlet and ImageFormationServlet is extending HttpServlet.

    <web-app>    
      <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>com.core.system.MyServlet</servlet-class>
      </servlet>
    
      <servlet>
        <servlet-name>ImageFormationServlet</servlet-name>
        <servlet-class>com.core.system.servlet.ImageFormationServlet</servlet-class>
      </servlet>  
    
      <servlet-mapping>
         <servlet-name>ImageFormationServlet</servlet-name>
         <url-pattern>/servlet/ImageFormationServlet</url-pattern>
      </servlet-mapping>    
    
      <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
      </servlet-mapping>
    </web-app>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any recommended Java application profiling tutorial? I am now using JProfiler and
We are using a Java EE application and we are right now using Informix
So I have this nice spiffy MVC-architected application in Java Swing, and now I
I am using Java Script MVC framework for building a Web Application.. Now i
Right now I have a Java application running WMI querying event logs, this is
I'm writing a Java application using Struts 2, but now I'd like to make
I want to use R inside my Java application. I now there is some
I am executing an application using Java application (Runtime.get...) but now before running the
I have created a java application for Debian Linux. Now I want that that
Right now, I'm writing a small java application by my own, with few maven

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.