Win a copy of liveProject: Build an ML Recommender System this week in the Artificial Intelligence and Machine Learning forum!

Alessandro Danesi

Greenhorn
+ Follow
since May 03, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alessandro Danesi

This is my solution. Make s2 as a static variable and modify the argument constructor of Go class.



With Tomcat I think that you can call the servlet without the servlet-mapping tag as:
http://localhost:8080/scwcd/servlet/HelloWorldServlet

if in the tomcat's web.xml (...../conf/web.xml) the servlet-mapping called invoker isn't commented.
You can retrieve container server name as:
ServletContext ctx = session.getServletContext();
ctx.getServerInfo();
17 years ago