I deployed a simple program.

public class HahaServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {
resp.setContentType("text/plain");
resp.getWriter().println("Helgggggfflo, world");
 Connection c = null;
 try {
DriverManager.registerDriver(new AppEngineDriver());
      c = 
DriverManager.getConnection("jdbc:google:rdbms://----------/guestbook");
      
      String statement ="INSERT INTO entries (guestName, content) VALUES( ? 
, ? )";
      PreparedStatement stmt = c.prepareStatement(statement);
      stmt.setString(1, "hihihi");
      stmt.setString(2, "hahhhha");
      int success = 2;
      success=stmt.executeUpdate();
      if(success == 1) {
   resp.getWriter().println("Success, world");
      } else if (success == 0) {
   resp.getWriter().println("Failure, world");
      }else
   resp.getWriter().println("hahahahahahahaha, world");      
      
} catch (SQLException e) {
   resp.getWriter().println("*SQLException, world*");
e.printStackTrace();
}
}
}

This code works in local environment, but after deploying, it shows me just 
SQLException, 
world. (Eclipse)
I don't know why.

Do i have to add or change something before deploying?

please help me

by the way, do dashboard logs mean logs in app id in google APIs





-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/LGcqUiIMxrMJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to