• 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

Identifying Struts application

 
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How does the Application Server differenties between regaular J2EE application and J2EE application with Struts framework ? Is it based on following entry in web.xml ?

<servlet>
<servlet-name>action</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>

Thanks
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, it is the entry you mentioned that distinguishes a struts application, along with all associated entries, especially the <servlet-mapping> entry which directs all URIs that end in .do to the action servlet. It is this single servlet directing traffic to the rest of the application that most distinguishes a struts application.

This means that if you want to have your own servlets co-exist in the same application as your struts application, that's certainly possible (although not recommended). Just make sure that the URI you use to call them doesn't end with .do.
reply
    Bookmark Topic Watch Topic
  • New Topic