No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
46 Posted Topics
Re: I think this what you want [code] #include<stdio.h> #include<stdlib.h> char check(void); char array[3][3]={'-','-','-','-','-','-','-','-','-'}; void display(); int main() { int i=0,l=0,x,y; int k=1; char done; for(i=0;i<9;i++) { if(k==1) { printf("player %d,Input your coordinate:",k); scanf("%d %d",&x,&y); array[x][y]='x'; display(); if(check() != '-') break; k++; } else { printf("player %d,Input your coordinate:",k); scanf("%d %d",&x,&y); … | |
Hi experts, I have a problem which is I can't write arabic text as values of table , here is the steps I have done , please help me and correct me if I am mistaken this is what I did: ************************************************** set names utf8 COLLATE utf8_general_ci; create database see; … | |
Hi experts, I have a click button called log off , here once a user clicks it , task goes to logout servlet to end current user session . below is my code , I don't know why it works fine with mozilla firefox and google chrom but not working … | |
Hi experts , I have finished my web application , and now I would deploy it in centos , I need to call my web application the index page like this url [url]http://intranet[/url] it goes directly to index page . My web application including the index page is under Root … | |
Hi all , I am trying to map a user to a jsp page when he tries to enter to a directory of my application using URL. let say my web directory is called school and it has a directory called pages . now I need to map a user … | |
Hi guys , I am trying to convert a web page to pdf , I have searched about this a lot but I did find any answer I have one program to convert using YAHP converter but I couldn't understand its parameters used in the program [code=Java]String fontPath = getParameter(args, … | |
Hi guys I am trying to prevent user to access directly using URL to my application , so in order to do that I have used security constraint in web.xml file and it works with me . my problem is in my application I am using href and redirect method … | |
Hi guys, I am trying to restrict users to access the sources of my application so I have used tomcat-users.xml file , but later I will be facing a problem which is how if I have a lot of authorized users , so I will add each one to that … | |
Hi experts, I am having very small error with my attachment file. the thing is , if I let my servlet send e-mail fwith attachment file exists on my computer and that file I edit by myself , there is no error with my file , so if i download … | |
hi experts, hope you are fine. I am having a connection problem from client side to my servera(localhost:8080/project). client can access to my normal pages either jsp or html. However, for the jsp pages that show information stored in database , they are not appeared in client side and I … | |
hi all , I have finsihed my small project(online form system), I mean the development stage, now I am looking for how I deploy it in windows, exactly windows professional environment . what do I need in order to successfully access to online form project installed in windows professional. I … | |
Hi all, I am trying to access login page (html page) from subdirectory of my web directory , the login page calls loginServlet which is reponsible for authintication, then the loginServlet response back to the client a web page to the user(whether user or adminstrator) . my web directory called … | |
hi guys, hope you are fine. I have project is about online form appliation , I have done half of the project, the part that the client login to the system and choose a form, filling the form , then sending to adminstrator a message saying one user has applied … | |
hi all, I have simple question which is how to access to servlets inside subdirectories of classes directory? I know that for one subdirectory inside the classes directory , you can access to servlets like this [url]http://host/servlet/packageName.ServletName[/url] but how about the servlet is inside one or more subdirectories? I have … | |
I want to understant pager-taglib idea , how to use it , where to install it in which directory. please provide me with tutorials that can explain it with clear examples because I read about it and got confused thank you in advance | |
Hi all, I am having a problem in JSP, it is very simple. I have a java class and a JSP program, my JSP program will call the a method of java program in order to work as one complete application .however, I got an error says undetermined method. Based … | |
hi guys, I am doing online form project, I get problem with navigation. the user can forword and back the page . I need to prevent user from that. I mean that once user gets new page , he can't get the prevouis page , but it asks him to … | |
Hi experts, I have finished writing my servlets and web pages. all my servlets tested using tomcat in windows operating system. In other words , I have finished the development stage. Now I need to move all my servlets and web pages to web server for deployment. but my web … | |
Hi experts , I got problem and need help please. I have created a servlet sends a message to the client, I have tried to attach a text file with message being sent but I couldn't do that. please help me how to attach a file with a message. is … | |
Hi experts, I got problem in servlet. I have a web page that has two buttons (submit button and update button) , both buttons call the servlet. my question is how I let my servlet program distinguish the two buttons when one of the two buttons is pressed. the servlet … | |
Hi experts, I am having a problem with sending mail from servlet I have written this code : [code=Java] import javax.mail.Session; import javax.mail.Message; import javax.mail.Transport; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import javax.mail.internet.InternetAddress; import java.util.Properties; public class EmailSenderDemo { public static void main(String[] args) { String from = "ali@mlabs.com"; String to = … | |
Hi experts, I have two questions, please help me because I am trying to create an application and I stopped because of these 1) how to read data in servlet from a web page for select menue I have used [request.getParameter("?????")] but I don't know which name I put inside … | |
Hi Friends hope you are fine, my question is how to send a respond message created by a servlet to a specific e-mail. let's say I create a registration servlet, this servlet will send a respond message to an e-mail , instead of showing the respond message as a web … | |
hi all , I have a simple question , let's say we have a servlet program and a web page . the question is how to make a servlet calls the web page and sends it as a respond to any request coming to the servlet. Is there any statement … | |
hi all , my question is how to create a hypertext link in servlet so if the user click it, it shows another web page or a message . | |
Hi all , I have a servlet program, this program will get a user name and password from a web page. I need to check the user name and passsword entered by user with a data file has all user names and passwords. the thing is I know how to … | |
hi all , I am new to this forum I have a simple question why getParameter() doesn't work with me . My java server page is as follow: [code=Java] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class InputServlet extends HttpServlet { public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException, ServletException { String … | |
Hi all, I got an error when I start admin server this is the error an error occurred while trying to start admin. check console log for more details please help how to avoid this error please | |
Hi all , I have been given a task which is to create a (log in )web page , user has to log in to the page after that a page with many links of forms such as leave form, feedback form,complain form,...etc. once a user has clicked to one … | |
Hi all , I have been assigned to do a task which is to create a web based application, the task is actually a normal form application, I have to use that form and make it online as a web-based application and store the information in a database I know … | |
Hi all , I have decided to use java applets and java servlets regarding creating a form.(because I don't know other langauages except java) guys the scenario is like this , visitors will enter to website, surfing it and then they will enter to feedback form , they have to … | |
Hi all , My question is that I want to know if possible I use C language dealing with windows such as I create a folder ,file, and show for example a pop up message says hi when windows starts to operate . I mean can I do these kind … | |
Re: first of all, what is the value of variable (s) here in the program, it is assumed here as it is zero , is it the value that you want it or not secondly the looping will be infinite because value of variable (a) and value of variable (b) is … | |
Hi gys I hope you all fine I just have a question that I would send two UDP packets from the client to the server and the server will reply back the both messages to the client , my problem is that my program only sends one packet to the … | |
Hi gys how are you, I really need your help to understand the idea for putting some parameters with main function, it is like this ( int main ( int a , int b , char* c) ) what is this and when we use it and how!!! ... I … | |
Hi guys hope you fine I have a request and question, for my request I would like from you to recommend me which books and tutorials that I may follow help me to understand how to read and write files in java I really need to know that. and for … ![]() | |
Hi guys, how are you? I need your help in a tic tac game, I have created a program that asks a user to specify first the index whether [0][0],[2][1],[2][2],etc..and to enter the char letter either 'x' or 'o' but I don't know where is the wrong? can any any … | |
Re: can you plaese show us how is that being done in simple program? | |
Re: it is easy i is 5 then -- i which means (i) is 4 then i-- which will appear 4 then i will be 3 then ++i which means increase by one so (i) is 4 then -- i becomes i is 3, then print last (i) which is 3 … | |
Re: static in simple words means that we are not able to use instance variables(the class variabes)which don't have the word static in the main method or invoking other methods those don't have the word static also in the main method. you will ask me why?? I will tell you that … | |
Re: Ok try this, int x[11]; int i=11,decimal=0; for(i=0;i<11;i++) /*here to allow the user to enter 11 binary numbers*/ scanf("%d",&x[i]); for(i=10;i>=0;i--) { if(a[i]==1) decimal= decimal + 2 * i ; } printf("your decimal number is %d",decimal); | |
Hi,guys how are you I just want to ask in c programming that how to return a string to a main function thanks. | |
How are you guys, I need your help in java could someone know how to change from character to string what I mean is that let's say I have a variable x with char type and it has a value a. so how I can change that value (a) from … | |
Re: I may help you in doing this could you wait me because I just read your message thanks | |
Re: I have another way to solve your problem 1. x=x+y; 2. y=x-y; 3. x=x-y; | |
Exuse me gys, I am a biggener in java and I would like to know how to use the data file in java such as taking data from the file and printing the data in new file is there any class library carring out this task please reply to me |
The End.