Results 1 to 1 of 1
Thread: init() method displaying html
- 11-10-2007, 07:20 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 2
- Rep Power
- 0
init() method displaying html
is it possible to display html in the init method like you can do
in a doGet or doPost.Java Code:res.setContentType ("text/html"); PrintWriter out = res.getWriter(); out.println("html");
i set my database connection in the init() method and watch to display error on page if any error occur connecting
Similar Threads
-
Applet - Displaying an HTML page with a selected resolution
By Java Tip in forum Java TipReplies: 0Last Post: 03-10-2008, 02:36 PM -
Displaying a Java List in Html:select tag
By ramitmehra123 in forum New To JavaReplies: 0Last Post: 02-07-2008, 05:48 AM -
Applets (init, start, stop, destroy)
By Java Tip in forum Java TipReplies: 0Last Post: 12-12-2007, 10:57 AM -
Images not displaying in JSP in IE7
By chadscc in forum Advanced JavaReplies: 0Last Post: 11-13-2007, 03:24 PM -
[/WEB-INF/applicationContext-dao.xml]: Invocation of init method
By Heather in forum JDBCReplies: 2Last Post: 06-12-2007, 04:33 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks