Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

Siddique Ansari

+ Follow
since May 11, 2013
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Siddique Ansari

Henry Wong wrote:

surlac surlacovich wrote:

Siddique Ansari wrote:I am making a desktop application which will be running on multiple PC's sharing the same Database. Should I use Socket programming? Please suggest me What to do?

I see no way to avoid socket programming if you talking about PCs in network. JDBC will use sockets under the hood anyway.

I believe the context of the question was in regards to "socket programming" -- not whether sockets are used "under the hood". If the DB is the only service that communicates with the applications, then JDBC alone could do the job. Otherwise, you will need some sort of network based communications, and yes, the socket library is probably the simplest choice.


I need to share Both DB and Some word files. Can you suggest me best website for learning socket programming.
6 years ago
I am making a desktop application which will be running on multiple PC's sharing the same Database. Should I use Socket programming? Please suggest me What to do?
6 years ago
Hello Everyone, I need to extract name, mobile no and email from Resume(Word File). For JAVA I used Apache POI library but I cant find any library for reading word file in PHP. Though I am using FOpen for Doc and XML Zip Archie for Docx. Suggest me some good option. And How to search in the word file using PHP?
6 years ago
I want to this but don't know how can i do that?

you can create a class that implements the Job interface called "SalesReportJob". The job might be coded to expect parameters sent to it (via the JobDataMap) to specify the name of the sales person that the sales report should be based on. They may then create multiple definitions (JobDetails) of the job, such as "SalesReportForJoe" and "SalesReportForMike" which have "joe" and "mike" specified in the corresponding JobDataMaps as input to the respective jobs.
7 years ago
Hello everyone I want to schedule message sending using quartz. But i dont know really how.
I can send message to given mobile no but for scheduling its difficult. What I am trying is

1) I am taking message, mobile no, period, from user (JobSchedule.jsp)
2) I am calling a Jobscheduler Servlet ( .. here I dnt know how to pass variables to class(
3) From that servlet I am calling
4) In i am calling my message sending method but i dont know how to pass mobile no and message from tht?

jagrutkumar dalwadi wrote:By looking at your error it seems that it is servlet configuration issue.

Correct configuration would be as below:


Reason: If we are putting "/" before url pattern, container understands that request should start from the servlet context. However that we dont want in this case.

Then Home.jsp is also giving not found error.
7 years ago
<%@ taglib prefix="c" uri=""; %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"

<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="en"> <!--<![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">

<base href="${pageContext.request.contextPath}">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/style.css">

<!--[if lt IE 9]><script src="//"></script><![endif]-->

String uname=(String) request.getSession().getAttribute("uid");
System.out.println("UID =" +uname);


<section class="container">
<div class="login">

<form method="post" action="LoginServlet">
<c:remove var="message" scope="session" />
<c:remove var="errMsg" scope="session" />

<p><input type="text" name="name" value="" placeholder="Username"></p>
<p><input type="password" name="password" value="" placeholder="Password"></p>
<p class="remember_me">
<input type="checkbox" name="remember_me" id="remember_me">
Remember me on this computer
<p class="submit">
<input type="submit" value="Login"></p>

<form action="/CreateUser.jsp" method="post">
<p class="submitt">
<input type="submit" value="Sign Up">


<div class="login-help">
<p>Forgot your password? <a href="index.html">Click here to reset it</a>.</p>

7 years ago
Hello Everyone, I am getting error 404 because of my address is wrong but i dont how to correct it. When I run my program using apache tomcat then it shows http://localhost:8080/SmsServices/Home.jsp but when i click on login button it goes to http://localhost:8080/LoginServlet while it should goto http://localhost:8080/SmsServices/LoginServlet. What to do?
my Web.xml file
7 years ago
What about Open Office? Can I use that in my swing application??
7 years ago
Hello Everyone, I am trying to display contents of word file into jTextPane same as its displayed in MS-Office. But jTextPane displays the contents in text format. What should I do? I am using POI library.
7 years ago
okay.. can I use H2 Database.
7 years ago
Yes I am familiar with JDBC, and am using JDBC:ODBC bridge. But when I have to run it on different machine what shoul I do?
7 years ago
Hello, I have created my first java swing application which has database also. I am using sql server 2005 as my database and am connecting to it using sql native client. Which datbase should I use to run it on different computers?
7 years ago
I dont know why I am getting this error or Exception. My program was running fine before I changed some code of a different class but that has no problem. Help me out.
7 years ago