• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

cocoon

 
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I installed cocoon & Tomcat in solaris under my account.
But there is no folder called servlets or classes. Where should I put my servlet class file, and html file? what is the appropriate URL to load the servlet & html?
Thanks
 
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i made my own folder where i store my files in it.
 
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think if you must need to keep your folder in classpath of the
Server. Which is Important.
regards
Bidyut
 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your tips.
But should I modify the web.xml or server.xml file to do servlet-mapping stuffs?
Thanks
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

either ONE will work. For an example, pl read this article where
they explain everything abt Tomcat and more....
Also, to run servlets based on HTML, you don't need cocoon,
Tomcat is sufficient.
regds.
- satya
 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Madhav, Thanks.
One more thing, how could I set up my classpath under Unix (Solaris)? It works in my PC. But I do not know where can I find autoexect file under unix.
thanks
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

In your ~/.profile or ~/.login file.
It also depends on the type of shell you run. In a ksh
use export CLASSPATH=/usr/jdk1.2.2
hth.
regds.
- satya
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simon,
PLease check the foll links from Sun to set classpath in Unix.
http://java.sun.com/products/jdk/1.2/install-solaris.html#Classpath
http://java.sun.com/products/jdk/1.2/docs/tooldocs/solaris/classpath.html
regds
maha anna
 
Simon Xu
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maha & Madhav,

Thanks for your help.
 
I will open the floodgates of his own worst nightmare! All in a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic