Jump to content

Search the Community

Showing results for tags 'java servlets'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Discussion
    • Website Management and Coding
    • Technology and the Internet
    • Philosophy, Politics, and Science
    • Art and Entertainment
    • Other Discussion
  • HelioHost
    • Questions
    • Customer Service
    • How You Can Help
  • HelioNet
    • News
    • Contact HelioNet

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 2 results

  1. Hi. I'm softlab on Johnny. My web application uses log4j to trace errors and writes them in a subfolder of the application. In the application I have a function that reads that file, but it gets always an error. How can I read that log file? Thanks
  2. Hello, I have an account on Jhonny with java enabled. JSP is working fine but Servlets just won't work. I tried the most basic class I could find: import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("text/html"); PrintWriter out = res.getWriter(); out.println("<HTML>"); out.println("<HEAD><TITLE>Hello World</TITLE></HEAD>"); out.println("<BODY>"); out.println("<H1>Hello World</H1>"); out.println("Today is: " + (new java.util.Date().toString()) ); out.println("</BODY></HTML>"); } // doGet } // HelloWorld And compiled it. I uploaded it to /public_html/WebContent/WEB-INF/classes and added the needed info to web.xml. I could not reach the servlet HelloWorld. I uploaded it to /public_html/WEB-INF/classes and added the needed info to web.xml. I still could not reach the servlet HelloWorld. I tried any combination I could think of in order to get this servlet to work, but nothing did the trick. If anyone knows or has been able to activate the servlets, here are my three questions: Where did you put the compiled servlet class? Where did you put the "web.xml" (I know, in the WEB-INF, but there are two)? How did you do the servlet mapping in the "web.xml" (using the .class in the path or not)? What URL did you use to reach the servlet (with starting from the <name>.heliohost.org/)? I tried any combination I could think of but nothing did the trick. Thank
×
×
  • Create New...