• 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

MYCGISERVER.COM Question

 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could not find a FAQ on their site that had the simple answer to what could be probably the first question that everybody asks that has a new account on www.mycgiserver.com:
Where in my DIR do the servlets go (I already have a /servlet DIR) and what would be the URL to invoke a servlet in my site, assuming that my username is "user"?
Thanks
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm guessing you already found out the answer but here goes anyway.
You need only place the servlet in what is your root directory. And you invoke it by using the URL of the form.. <A HREF="http://www.mycgiserver.com/servlet/<I rel="nofollow">username</I>.HelloWorld" TARGET=_blank>www.mycgiserver.com/servlet/username.HelloWorld
If you've placed your servlets in a subdirectory, I'm not sure. Also you have to place each servlet in a package based on your username (i.e. package username; ). I believe that the package name that you compile the servlet to be in will reflect the directory structure by default. So you could declare the package for your servlet to reflect the subdirectory you created "/servlet" (i.e. package username.servlet; ). As far as the URL to call the servlet. I'm not quite sure. I would guess something like <A HREF="http://www.mycgiserver.com/servlet/<I rel="nofollow">username</I>.servlet.HelloWorld." TARGET=_blank>www.mycgiserver.com/servlet/username.servlet.HelloWorld.
This is probably an abandoned thread by now but if helps someone else with the same question then that's what I intended. However if you didn't get your answer sooner, better late than never.

Cheers,
Meadowlark Bradsher

[This message has been edited by Meadowlark Bradsher (edited May 05, 2001).]
 
Do you want ants? Because that's how you get ants. And a tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic