Jump to content


Photo

Passing *.do File Request To Tomcat Server

Apache Tomcat configuration

  • Please log in to reply
2 replies to this topic

#1 vaninf

vaninf

    Rank I Member

  • Members
  • Pip
  • 46 posts

Posted 07 July 2017 - 04:37 PM

Could you please configure Apache http server to pass *.do file request to Tomcat server? Right now only *.jsp file request is passed to Tomcat server.

 

Thank you.



#2 Krydos

Krydos

    Rank X Member

  • Root Admin
  • 18,792 posts
  • Gender:Male

Posted 07 July 2017 - 05:36 PM

Just put your .do files in your servlet. Everything inside the servlet is processed by Tomcat. The extension .do isn't anything special. The struts framework uses that extension, but it could be anything like .whatever.

#3 vaninf

vaninf

    Rank I Member

  • Members
  • Pip
  • 46 posts

Posted 07 July 2017 - 05:52 PM

The servlets you deployed don't work well, because request.getServerName() and request.getServerPort() return wrong values. So I have to deploy the servlets by myself in folder public_html/WEB-INF/. If the servlet's name is *.do, the servlet won't get called because Apache http server won't pass *.do file request to Tomcat.

 

Please configure Apache http server to pass *.do file request to Tomcat server.







Also tagged with one or more of these keywords: Apache, Tomcat, configuration

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users