File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Identifying Struts application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Identifying Struts application" Watch "Identifying Struts application" New topic
Author

Identifying Struts application

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
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
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Identifying Struts application
 
Similar Threads
after migrate from 4.0.1 to 4.2.0, cannot load web.xml in .war/WEB-INF
Servlet Action currently Unavailable
"/tags/struts-logic" not found
Problem running a struts 1.1 tutorial
javax.naming.NamingException: Could not dereference object