Hey I'm with and they could easily suit your needs!Go to their site, click on Hosting , click Shared Hosting and then click Get Quote You'll have a cstoum hosting account built to suit your needs and only pay for what you ask for! Its the best in the business, and you're not paying for space/bandwidth that you'll never use. If you would ever need more just upgrade your account at any time.Also check out their affiliate system! Get paid for referrals!
quick question i've whtcaed a few videos on this and nobody mentions this if you host your own webpage this way do you have to keep your pc switched on 24/7 for it to be live on the net? in other words will people still be able to access my web page if my pc is off? if not then could i store these files etc on an external hdd and just keep that plugged to the net?sorry if this is a stupid question, i'm just now starting to learn )
Suggestion get a 64 bit cpu with 12 or 16 gigs of ram and run your home server vitularly I have 3 virtual computers running one is the home server and the others I have 2 XP Pros I have a video showing you how to do this got Questions just send an e-mail
Each request comes to the server uses a stander protocol such as FPT( File Transfer Protocol),
X5(Xitami) web server, Zeus web server. WAMP, LAMP, ZAMP ect.
index.jsp
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<form name="f1" action="userdetail" method="post">
Username:<input type="text" name="uname">
Password:<input type="text" name="upass">
<input type="submit" value="Send">
</form>
</body>
</html>
userdetail.java
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.net.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
/**
*
* @author IkramLim
*/
@WebServlet(name = "userdetail", urlPatterns = {"/userdetail"})
public class userdetail extends HttpServlet {
/**
* Processes requests for both HTTP
* <code>GET</code> and
* <code>POST</code> methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/
Connection myConn=null;
Statement myStmt=null;
ResultSet myRs=null;
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
/*
* TODO output your page here. You may use following sample code.
out.println("<html>");
out.println("<head>");
out.println("<title>Servlet userdetail</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Servlet userdetail at " + request.getContextPath() + "</h1>");
out.println("</body>");
out.println("</html>");*/
Class.forName("com.mysql,jdbc.Driver");
myConn=DriverManager.getConnection("jdbc.mysql://localhost:3306/userdetail","root","");
myStmt=myConn.createStatement();
String query="select * from userdetail";
myRs=myStmt.executeQuery(query);
while(myRs.next());
{
out.println("Username"+myRs.getString("uname"));
out.println("Password"+myRs.getString("upass"));
out.println("</br>");
}
}
catch(Exception e)
{
System.out.println("Exception"+e);
}
finally {
try
{
myConn.close();
myStmt.close();
myRs.close();
}
catch(Exception e)
{
System.out.println("Exception from finally"+e);
}
out.close();
}
}
why don't have any output? can u help me.. thx.. i using wamp server localhost myself.
about javashanaka jayawardena July 23, 2012 at 3:43 PM
i try to downlord java(jdk7).but oracal site allow me to downlord file(capacity 80mb).when i downlorded that its appear like this{Unconfirmed 57014.crdownload }.why is this happen to me.how can i downlord jdk1.7
thank you...
regarding notesmuralidharan March 30, 2011 at 1:01 PM
very usefull to me
about server rentomar kayum June 10, 2011 at 2:01 AM
please sent your server detail.
servletshari September 21, 2011 at 8:32 AM
when maintain a website where they are install the data base
javamadsfggh February 6, 2013 at 11:08 AM
need some more info
package not foundkrishna shah January 25, 2013 at 3:18 PM
when i compile my java file in servlet. there is a error showing package not found for "import javax.servlet.*;" and for"import javax.servlet.http.*;"
hiishaan November 30, 2011 at 12:10 PM
can we replace java with any alternate language???
avgKXMRGBZJLJHBNikita March 6, 2013 at 12:52 AM
Hey I'm with and they could easily suit your needs!Go to their site, click on Hosting , click Shared Hosting and then click Get Quote You'll have a cstoum hosting account built to suit your needs and only pay for what you ask for! Its the best in the business, and you're not paying for space/bandwidth that you'll never use. If you would ever need more just upgrade your account at any time.Also check out their affiliate system! Get paid for referrals!
lGWhGRySBrlMzsYuvraj March 6, 2013 at 12:52 AM
quick question i've whtcaed a few videos on this and nobody mentions this if you host your own webpage this way do you have to keep your pc switched on 24/7 for it to be live on the net? in other words will people still be able to access my web page if my pc is off? if not then could i store these files etc on an external hdd and just keep that plugged to the net?sorry if this is a stupid question, i'm just now starting to learn )
pnwsDHkIlzvAdele March 6, 2013 at 7:55 AM
Smart thinking - a clever way of loknoig at it.
idJYpysHvmXirUJWillie January 18, 2013 at 10:57 PM
That's a brillaint answer to an interesting question
uHpvZkStamxEmLFleiiRahman January 19, 2013 at 7:56 AM
Suggestion get a 64 bit cpu with 12 or 16 gigs of ram and run your home server vitularly I have 3 virtual computers running one is the home server and the others I have 2 XP Pros I have a video showing you how to do this got Questions just send an e-mail
nnOlFOskzeQWGgslVOXChaas January 19, 2013 at 6:58 PM
Appreciation for this inormfatoin is over 9000-thank you!
gdNMuBrSrsIHKQXEClarinda January 19, 2013 at 6:58 PM
Articles like this really gearse the shafts of knowledge.
javakishor February 18, 2012 at 7:10 AM
how to start standlong application in java
javaamit kuamr saini June 10, 2012 at 6:57 PM
what means System.out.println();
Regarding mistakes in writing !!!!!!!!Amit Kumar July 10, 2012 at 3:20 PM
Each request comes to the server uses a stander protocol such as FPT( File Transfer Protocol), X5(Xitami) web server, Zeus web server. WAMP, LAMP, ZAMP ect.
why don't have any output?? ikramlim July 17, 2012 at 12:06 PM
index.jsp <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <form name="f1" action="userdetail" method="post"> Username:<input type="text" name="uname"> Password:<input type="text" name="upass"> <input type="submit" value="Send"> </form> </body> </html> userdetail.java import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.*; import java.net.*; import javax.servlet.*; import javax.servlet.http.*; import java.sql.*; /** * * @author IkramLim */ @WebServlet(name = "userdetail", urlPatterns = {"/userdetail"}) public class userdetail extends HttpServlet { /** * Processes requests for both HTTP * <code>GET</code> and * <code>POST</code> methods. * * @param request servlet request * @param response servlet response * @throws ServletException if a servlet-specific error occurs * @throws IOException if an I/O error occurs */ Connection myConn=null; Statement myStmt=null; ResultSet myRs=null; protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { /* * TODO output your page here. You may use following sample code. out.println("<html>"); out.println("<head>"); out.println("<title>Servlet userdetail</title>"); out.println("</head>"); out.println("<body>"); out.println("<h1>Servlet userdetail at " + request.getContextPath() + "</h1>"); out.println("</body>"); out.println("</html>");*/ Class.forName("com.mysql,jdbc.Driver"); myConn=DriverManager.getConnection("jdbc.mysql://localhost:3306/userdetail","root",""); myStmt=myConn.createStatement(); String query="select * from userdetail"; myRs=myStmt.executeQuery(query); while(myRs.next()); { out.println("Username"+myRs.getString("uname")); out.println("Password"+myRs.getString("upass")); out.println("</br>"); } } catch(Exception e) { System.out.println("Exception"+e); } finally { try { myConn.close(); myStmt.close(); myRs.close(); } catch(Exception e) { System.out.println("Exception from finally"+e); } out.close(); } } why don't have any output? can u help me.. thx.. i using wamp server localhost myself.
about javashanaka jayawardena July 23, 2012 at 3:43 PM
i try to downlord java(jdk7).but oracal site allow me to downlord file(capacity 80mb).when i downlorded that its appear like this{Unconfirmed 57014.crdownload }.why is this happen to me.how can i downlord jdk1.7 thank you...
how to configure a server in myeclipse ide ?girish August 5, 2012 at 10:33 AM
thank you sir.
senchaAbirami August 10, 2012 at 1:17 PM
send sencha touch tutorials
cell servicejaichandergg September 3, 2012 at 7:00 PM
software and hardware solution
Post your Comment