Results 1 to 19 of 19

Thread: java

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128

    java

    java ? browser. , MYSQL JDBC.

    . JAVA .

  2. #2
    دارس وعامل Siemens's Avatar
    Join Date: Jul:2003
    Location:
    Posts: 1,576
    JSP (java server pages) .. servlet- application server, apache. apache software foundation - http://tomcat.apache.org/
    - ( ant), ..
    java .

    P.S. application servers tomcat - ( )! , - tomcat. WHM (.. root) tomcat .
    - tomcat , - .

  3. #3
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ... GlassFish Application server

  4. #4
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052
    GlassFish, JBoss, Tomcat OpenEJB .

    , BEA WebLogic, IBM WebSphere.

    , backend-. cgi

  5. #5

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517
    Tomcat o a a Apache? Apache JSP/Servlet .

    ? HTTP?

    Quote Originally Posted by solar_sea View Post
    GlassFish, JBoss, Tomcat OpenEJB .

    , BEA WebLogic, IBM WebSphere.

    , backend-. cgi
    .
    , , cgi - ?

  6. #6
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052
    Apache tomcat

    .
    ( , enterprise, .)

    add: ,

    , () ( ), .

  7. #7
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    browser MySQL

    java GlassFish. SQL JDBC .

    . PHP + MySQL?
    - ?

  8. #8

    Join Date: Sep:2005
    Location: Sofia
    Posts: 18,517
    Quote Originally Posted by solar_sea View Post
    Apache tomcat

    .
    ( , enterprise, .)

    add: ,

    , () ( ), .
    , . , . , cgi .

    Quote Originally Posted by Bombera View Post
    -. , .
    ...
    . .
    Last edited by vvvlado; 6th March 2009 at 10:30.

  9. #9
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052
    Quote Originally Posted by vvvlado View Post
    , cgi .
    crash- jvm- persistent

  10. #10
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052
    - , .

    - cgi, get post http, , glassfish

  11. #11
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    - :

    - 1,3,9 . .

    MYSQL .

    Application - 1 .

    . - . java - - .

    . , .

  12. #12
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    Quote Originally Posted by Red_Leader View Post
    ...
    . , .
    Google Calendar, . SMS.
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  13. #13
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    ? .

    MYSQL?

  14. #14
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052
    ?date=foobar foobar .



    Code:
    import java.io.IOException;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.Map;
    
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    
    
    public class SchedulerServlet extends HttpServlet
    {
    	private Connection con;
    	
    	private PreparedStatement ps;
    	
    	public void init()
    	{
    		try
    		{
    			Class.forName("your.db.driver.fully.qualified.package.name");
    			String url = "jdbc:mysql url syntax, proveri go"; 
    	        con = DriverManager.getConnection(url,"user1","password");   
    	        ps = con.prepareStatement("INSERT INTO myBla VALUES(?)");
    		}
    		catch (Exception e)
    		{
    			// hm ;)
    		}
    	}
    	
    	private static final String IMPORTANT_DATE_PARAMETER = "date";
    
    	public void doPost(HttpServletRequest request, HttpServletResponse response)
    		throws ServletException, IOException
        {
    		doGet(request, response);
    	}
    	
    	public void doGet(HttpServletRequest request, HttpServletResponse response)
    		throws ServletException, IOException
    	{
    		Map params = request.getParameterMap();
    		
    		if (params.containsKey(IMPORTANT_DATE_PARAMETER))
    		{
    			try
    			{
    				ps.setString(1, (String) params.get(IMPORTANT_DATE_PARAMETER));
    				ps.execute();
    			}
    			catch(SQLException e)
    			{
    				// ;)
    			}
    		}
    	}
    }
    Last edited by solar_sea; 4th March 2009 at 23:52.

  15. #15
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128



    for ( ; ; ) {
    delay (10000);
    time1 = vreme v momenta
    time2 = data na startirane v Mysql
    if(time1==time2){
    //iztegli informatziq ot baza danni i prati na apleta
    }
    else
    {
    continue;
    //sledva6ta data;
    }
    }

    Last edited by Red_Leader; 5th March 2009 at 01:20.

  16. #16
    Registered User
    Join Date: Aug:2006
    Location:
    Posts: 4,052

  17. #17
    _
    Join Date: Apr:2006
    Location: _
    Posts: 1,128
    3 ?

    MYSQL

  18. #18
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    JOIN . , , , .
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  19. #19
    Bombera's Avatar
    Join Date: Jul:2001
    Location: 4EVA
    Posts: 13,833
    -. , . ( , ), ( -- ?!), ( , , ) - . , ( ) , . - -. -. ( ), - , .
    - , - .
    EVGA X299 FTW K|i9-7960X@4.7|4x8 Patriot Viper Steel 4000|GTX 1660 Ti|970 EVO 1 TB|Seasonic Focus GX-1000|Xigmatek Elysium|
    Rampage IV Extreme BE|E5-1680v2@4.7|4x4 HyperX 1866|Cougar Aqua 240|GTX 1050 Ti|970 EVO 1/4 TB|CM 850 SilentPro|HAF-X|

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |