Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I think I am going to die....

 
Reilly Morris
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,
I am a customer of a web host running Apache. He tells me I can run servlets off my hosting, and that all I need to do is upload the servlet to my main folder using FTP, then use SSH to move this file into a virtual folder called "jsp", which I have also done. My HTML form simply posts 3 params to the servlet, which should return them for display in the browser. Nothing amazing, not trying to save the world here, just trying to plumb my servlets on this hosting.
Now, he hasn't been much help, not knowing Java and all. My ACTION tag in the html looks like this (the actual domain name has been changed to protect the innocert):
FORM ACTION="http://www.myURL.com/ThreeParams"
The html file is located in another directory. That, I can safely say, works no problem. But as soon as I hit Submit, I get a 403 error. Assuming that my java has no synax errors (after all, I don't make java syntax errors), does anyone have any suggestions (other than turning to drink?).
Any help would be greatly appreciated. All I want to do is run a servlet off this thing...
Reilly
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi reilly
can u ask to have a look at the log access from him? then u can probably drill down more to see what is causing the problem....
also u might ask him to give u restart access from the prompt so that u can have better view of things...
else i don't know the way out...its difficult to work things this way...
i guess u made sure that ur servlet is working fine when hosted in YOUR environment (u can test it in ur env first and make sure there is nth silly on ur part)...
regards
maulin
 
cer
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
o ,so good
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cer
Welcome to the JavaRanch! Please adjust your display name to meet
the JavaRanch Naming Policy. You can change it here.
Thanks!
and welcome to the JavaRanch!
 
Nick Delauney
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im new here, but I believe your form action url should have the word servlets in it. The server should be configured to read from a "servlet" or "servlets" directory.
 
vagabond heart
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried including the directory name, where your servlets or jsps are stored, in the action tag ??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic