Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
W

williamroma

@williamroma
About
Posts
51
Topics
26
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • dynamic button id , javascript
    W williamroma

    hi i have a button , and when i click it i want to add a new input text and i want to add an ID for this new input text , how can i do it by javascript cos i want to press the button many times and so i have to have many input text , each one with a uniqe ID i worked like this

    var num=1;
    function on(){
    var div = docuemnt.getElementbyID('div1');
    div.innerHTML+="";
    }

    but doesn't work with me :( :( please any help :)

    JavaScript javascript help question

  • javascript doesn't work with FORM tag
    W williamroma

    and i don't want to put the javascipt in the same file with html , cos i have many many functions :(

    JavaScript help question javascript

  • javascript doesn't work with FORM tag
    W williamroma

    thanks for your replay i don't mean that javascript doesn't work with me no it words but if i call any javascript function into a form tag , this doesn't work i will explay this works

    JavaScript help question javascript

  • javascript doesn't work with FORM tag
    W williamroma

    (SORRY FOR MY BAD ENGLISH) hi i have a code , the javascript in the code is working perfectly , but when i surround the code with

    javascript stopped working , i tried to remove that

    then javascript continue working , please help me how can i solve this problem ? the code is

            *                   Name
                    
                
            *                   
    
                        Places
                        
                        Select
                            Roma
                            italy
                            totti
                        
                    
    
                
            *
    
    JavaScript help question javascript

  • httpResponse question
    W williamroma

    i want to send back data from server to client, i receive the request on the server using the function doGet is there any way to send data using httpServletResponse but not by using outputstream? i meas something like this response . SetAttraibye(attName,attValue) and if there is , how can i extract that value on the client thank you very much

    Hosting and Servers question sysadmin

  • connecting android app to server
    W williamroma

    hi i have an android application and i want to connect it to a server (java server ) i know how to connect J2ME client to a server can i do the same thing with android? or there is another way (so what is it ) ? is there any tutorials (even videos ) for that thank you very much

    Mobile question java android sysadmin tutorial

  • how can i ope outlook from php
    W williamroma

    hi for all plz how can i open outlook from php ? ty all

    Linux, Apache, MySQL, PHP question php

  • y this query answer wrong ?
    W williamroma

    (SORRY FOR MY BAD ENGLISH ) i have these : cust_line (line_num,cust_id). line_contact(contact_period,line_num). i want to know the customer who the customer of the longest period contact i think this is the quest select max(cc),cust_line.line_num from cust_line JOIN ( select SUM(contact_period)as cc , line_num from line_contact group by line_num )As a on cust_line.line_num=a.line_num where cust_line.line_num=A.line_num but it make a wrong results , please help me ty

    Database database sales help question

  • css doesn't work with .htaccess
    W williamroma

    (SORRY FOR MY BAD ENGLISH) hi i am using windows i have .htaccess file it contain RewriteEngine On RewriteCond %[REQUEST_FILENAME] !-d RewriteCond %[REQUEST_FILENAME] !-f RewriteCond %[REQUEST_FILENAME] !-l RewriteRule ^(.+)$ index.php?url=$1 [QSA,L] but when i put the .htaccess file , the css files doesn't work , please help me (yesterday i take about 8 hours just to make php files work with .htaccess file )

    Web Development php css apache database help

  • container inside container
    W williamroma

    hi **(SORRY FOR MY BAD ENGLISH )**i have build a body container like

    i put in it this :

    the search and the descretpion is : #descretpion{ width: 30%; height: 200px; margin-left: 69%; background-color:#ccccff; border-bottom: 5px solid #000000; border-top: 5px solid #000000; border-right: 5px solid #000000; border-left: 5px solid #000000; } #search{ width: 40%; height: 200px; background-color: red; } when i run the code the don't be inside each other , the descretpion be above the search , look i close the div tag for every tag ,where is the wrong ty (SORRY FOR MY BAD ENGLISH)

    Web Development docker architecture

  • how to transfer PDF file from servlet on server to client
    W williamroma

    but first i have to catch the file in Client side have i use Inputstream or what ? ty for help

    Java sysadmin tutorial question

  • how to transfer PDF file from servlet on server to client
    W williamroma

    ty very much for help plz can u tell me how to catch the in the client

    Java sysadmin tutorial question

  • how to transfer PDF file from servlet on server to client
    W williamroma

    hi how are you all (SORRY FOR MY BAD ENGLISH) i have a server (localhost) and want to send pdf file from my servlet on server to the client how can i do it thank you very much :)

    Java sysadmin tutorial question

  • Question System for Moblie
    W williamroma

    hi (SORRY FOR MY BAD ENGLISH :( ) i want to build a system to send questions from Server to Mobile .. the question should deffer from user to user and from time to time.. the user can answer by just one answer or multi answers or drag and drop ... the system can send hits . the questions can be also images . i need some another ideas ... ty very much..

    Mobile sysadmin question

  • Time in Java
    W williamroma

    hi how are you today (SORRY FOR MY BAD ENGLISH) i have a java program , i need this program to send me every 10 seconds "hi" message but i need the program to keep running and every 10 seconds send me "hi"message how can i do it ? ty

    Java question java

  • how to make a listener to receive from HttpConnection
    W williamroma

    this is the listener in the server when i receive the IM it is automaticllaly called the function instantMessageReceived (SORRY FOR MY BAD ENGLISH) (THANK YOU VERY MUCH) /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package example; import java.io.IOException; import java.io.PrintWriter; import java.util.logging.Level; import java.util.logging.Logger; import javax.servlet.http.HttpServletResponse; import net.sf.jml.MsnContact; import net.sf.jml.MsnMessenger; import net.sf.jml.MsnSwitchboard; import net.sf.jml.event.MsnAdapter; import net.sf.jml.message.MsnDatacastMessage; import net.sf.jml.message.MsnInstantMessage; /** * * @author William */ public class TottiLisner extends MsnAdapter{ public boolean rrr=false; public MsnInstantMessage mmm; public PrintWriter out; public void exceptionCaught(MsnMessenger messenger, Throwable throwable) { for(int i=0;i<10;i++) System.out.println("TOTTI TOTTI TOTTI TOTTI TOTTI TOTTI"); } public void instantMessageReceived(MsnSwitchboard switchboard, MsnInstantMessage message, MsnContact friend) { rrr=true; this.mmm=message; } public void datacastMessageReceived(MsnSwitchboard switchboard, MsnDatacastMessage message, MsnContact friend) { for(int i=0;i<10;i++) System.out.println("BUFFON BUFFON BUFFON BUFFON BUFFON"); } }

    Java java sysadmin help tutorial question

  • how to make a listener to receive from HttpConnection
    W williamroma

    this is the serverlet in the server public class RomaServlet extends HttpServlet { public void processRequest(HttpServletRequest request, HttpServletResponse response) throws IOException { } @Override protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } @Override public String getServletInfo() { return "Short description"; } MsnMessenger messenger = null; BasicMessenger m = null; @Override protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String type = request.getHeader("type"); System.out.println("my Type is :" + type); if (type.equals("1")) { HttpSession session = request.getSession(false); int hits = 0; BufferedReader br = request.getReader(); int len = br.read();//the length of Email ... String email = ""; for (int i = 0; i < len; i++) { email += (char) br.read(); } String password = ""; int ch; while ((ch = br.read()) != -1) { password += (char) ch; } if (session == null) { session = request.getSession(true); session.setAttribute("Count", hits); m = new BasicMessenger(); session.setAttribute("messenger", m); Listener l = new Listener(session); session.setAttribute("rere", ""); try { m.start(messenger, email, password); } catch (InstantiationException ex) { Logger.getLogger(RomaServlet.class.getName()).log(Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { Logger.getLogger(RomaServlet.class.getName()).log(Level.SEVERE, null, ex); } catch (ClassNotFoundException ex) { Logger.getLogger(RomaServlet.class.getName()).log(Level.SEVERE, null, ex); } } session.setAttribute("Count", 1 + (Integer) session.getAttribute("Count")); response.setContentType("text/plain"); PrintWriter out = response.getWriter(); out.println("Complete Login"); } else //if(type.equals("2"))

    Java java sysadmin help tutorial question

  • how to make a listener to receive from HttpConnection
    W williamroma

    the code in Client j2me i beggin received when i pressed receivedChat /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package myPage; import java.io.DataInputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import javax.microedition.io.Connector; import javax.microedition.io.HttpConnection; import javax.microedition.lcdui.Choice; import javax.microedition.lcdui.Command; import javax.microedition.lcdui.CommandListener; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Displayable; import javax.microedition.lcdui.Form; import javax.microedition.lcdui.List; import javax.microedition.lcdui.StringItem; import javax.microedition.lcdui.TextField; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; /** * * @author William */ public class Main extends MIDlet implements CommandListener { //HTTPCONNECTION // HttpConnection hc = null; OutputStream out = null; InputStream in = null; String URL = "http://localhost:8080/DeleteWebApplication/RomaServlet"; //GUI IN J2ME Display display = null; Form mainScreem = null; TextField emailTextfield = null; TextField passwordTextfield = null; Form contactScreem = null; Command loginCommand = null; Command getContactsCommand = null; //ACCONT IN MSN String sessionId; //GUI FOR ERROR CONNECTION Form errorScreem = null; StringItem errorMessege = null; Command back = null; //MY ACCOUNT IN MSN int numberOfContacts; //GUI FOR CONTACTS FRIENDLYNAMES Form ContactsList = null; StringItem[] contactsListGui = null; //GUI FOR CHAT WITH ONE CONTACTS Form chatScreem = null; Command backToContactsList = null; Command sendIMToContact = null; public Main() { display = Display.getDisplay(this); mainScreem = new Form("Welcome..."); emailTextfield = new TextField("Email", "", 100, TextField.ANY); passwordTextfield = new TextField("Password", "", 100, TextField.PASSWORD); contactScreem = new Form("Your Contacts are:"); loginCommand = new Command("login", Command.BACK, 1); getContactsCommand = new Command("get commands", Command.OK, 2); mainScreem.append(emailTextfield); mainScreem.append(passwordTextfield); mainScreem.addCommand(loginCommand); mainScreem.addC

    Java java sysadmin help tutorial question

  • how to make a listener to receive from HttpConnection
    W williamroma

    ty 4 ur help mabye i understand u but i wana tell u all the problem i want to make a chat program on Moblie the program using emails on Hotmail the chat include sending and receving IM i can send the IM to my server then the server send it to the person (that i make chat with) but with the person sends me a IM i can catch it in the server but how can i send it to the mobile here is the problem cos i use HttpConnection look: the function protected void doGet(HttpServletRequest request, HttpServletResponse response) be in the server i can send the IM from J2ME client to server and catch it in the request but when someone send the IM to the server how can i send it back to my J2ME client. i know what i hv to use response but this object don't wait for the user to send data .. other words i dont know when the send the data to the server and so i do not know when i hv to send it to the client plz help me , i have to make it , plz plz plz help me tyvm

    Java java sysadmin help tutorial question

  • how to make a listener to receive from HttpConnection
    W williamroma

    but i dont't want to use socket tyvm

    Java java sysadmin help tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups