Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hosting problem , the Host provider tomcat does not understand .do

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
I get a hosting package from a provider ,
Now all jsp files works but when i press some buttons or links that lead to a .do (Action) it return error 404 file not found.
is there any other configuration that i should do in my hosting package ?
it is on linux and tomcat 5.5.9
Is there some MIME that i should set ?
The host has Cpanel

Thanks
 
James Ellis
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what Cpanel is, but usually the extension ".do" is mapped to a servlet. For instance, if you have a servlet class "BeerFinder.class" and you want all requests with extension ".do" to be routed to this servlet, this is what you would put in the deployment descriptor (web.xml file).



Now any requests (example http://www.yourservername.com/whatever/test.do) will be routed to that servlet.
 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The project Well on local computer but in remote host it just return 404 for Actions
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic