Siddique Ansari

Greenhorn
+ Follow
since May 11, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

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.

Henry



I need to share Both DB and Some word files. Can you suggest me best website for learning socket programming.
11 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?
11 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?
11 years ago
PHP
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.
11 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 (JobSchdeduleServlet.java) .. here I dnt know how to pass variables to class(TestJob.java)
3) From that servlet I am calling TestJob.java
4) In TestJob.java 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:

<servlet-mapping>
<servlet-name>LoginServlet</servlet-name>
<url-pattern>/SmsServices/LoginServlet</url-pattern>
</servlet-mapping>

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.
11 years ago
JSP
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="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]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>PlzDo.it</title>

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

<!--[if lt IE 9]><script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>

<body>
<%
String uname=(String) request.getSession().getAttribute("uid");
if(uname!=null){
System.out.println("UID =" +uname);
response.sendRedirect("UserHome.jsp");
return;
}
%>

<br>
<br>

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

<form method="post" action="LoginServlet">
<p>${message}</p>
<c:remove var="message" scope="session" />
<p>${errMsg}</p>
<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">
<label>
<input type="checkbox" name="remember_me" id="remember_me">
Remember me on this computer
</label>
</p>
<p class="submit">
<input type="submit" value="Login"></p>
</form>

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

</div>

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


</body>
</html>
11 years ago
JSP
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
11 years ago
JSP
What about Open Office? Can I use that in my swing application??
11 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.
11 years ago
okay.. can I use H2 Database.
11 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?
11 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?
11 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.
11 years ago