24 Unanswered Topics

Remove Filter
Member Avatar for
Member Avatar for lucy nana

I facing a problem with checkbox value that already exists inside the database. so how can I retrieve those value into another database table? The table subject and service below is what I want. But based on the code below the SERVICE TABLE on SUBJECTID COLUMN producing null value. How …

0
405
Member Avatar for Muni123

I am trying to add some text in to a page by using a textarea where text is entered the text gets saved in to a database after clicking on a add button on a page. However, I am unable to achieve this after trying. I have two tables matchreportcomments …

0
223
Member Avatar for wallet123

I want to connect my website with Facebook. I'd like my user to be able to login to my site without having to sign up. Jut by clicking the facebook logo, I will be able to fetch the data needed like their email, name, age, etc. I used **restFB** but, …

0
131
Member Avatar for mahemaa.iyer

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); PrintWriter out = response.getWriter(); try { int c=0; String u1=request.getParameter("u1"); String e1=request.getParameter("e1"); String user=request.getParameter("user1"); request.setAttribute("u1",u1); request.setAttribute("e1",e1); request.setAttribute("user", user); out.println("welcOme"); Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection con =DriverManager.getConnection("Jdbc:Odbc:db5"); String str = "select * from Table1 where email=?"; out.println("welcOme"); PreparedStatement statement = con.prepareStatement(str); statement.setString(1,user); ResultSet …

0
146
Member Avatar for shilu2

Hi All, Can you please help me how to create user defined function for database connectivity and return values to anather servlet. I have tried following code but it indicates error can not find symbol package controller; import java.io.IOException; import java.io.PrintWriter; import java.sql.*; import java.util.*; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import …

0
83
Member Avatar for manish250

Hi All, I am not been able to understand "What is application context" even after trying a lot on google.Can anybody make be understand the application context concept and how it is different from servlet context. Thanks

0
122
Member Avatar for bcwoodz
0
99
Member Avatar for alanborder

package edu.edusys.demo.jdbc.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.util.ArrayList; import edu.edusys.demo.jdbc.bean.Customer; public class CustomerDAO { private Connection connection; public CustomerDAO(Connection connection) { super(); this.connection = connection; } public boolean addCustomer(Customer customer) throws Exception { String sql = "INSERT INTO Customer" + "(name,address,phone)" + "VALUES (?,?,?)"; PreparedStatement ps …

0
213
Member Avatar for Pravinrasal

Hello everyone, I am designing one website in which I want to build one chatting application. My problem is in which technology chat application will be develop like jsp, servlet and spring and how to start to develop chat application. I heard about RMI so using RMI it is possible …

0
105
Member Avatar for SomeNewGuy

[CODE]<%-- Document : index Created on : Dec 5, 2011, 10:44:50 PM Author : Orange --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>The Collection</title> </head> <body> <center> <%------------------Search-------------------------%> <form method="post" action="search.jsp">Please select the search parameter you want: <select name="SearchDB"> <option>Please select one</option> <option>Collectable</option> <option>Item Owned</option> …

0
90
Member Avatar for shivarocks

hello friends i am new to ejb and i tried to create a session bean for obtaining JDBC Connection,and i called it from a servlet the session bean was a remote session bean but connection is not getting established.. EJB CODE : ConnectionBean.java [CODE] package com.ejb; import java.sql.Connection; import java.sql.DriverManager; …

0
115
Member Avatar for abhinavM

I have a jsp page where I am accessing data from the database and showing the data in table on the browser with radio buttons in between.And then there is a submit button on whose click the control is transferred to a servlet where I reading the status of the …

0
74
Member Avatar for bluerabbit

for my web application I am needed to reply short code SMS queries over HTTP. how can i integrate the service provider API with jsp and servlets. I am using jboss, Tomcat and MySql. Developers API are given below : Bulk SMS API Documentation (Single/multiple SMS via HTTP) for website/software …

0
118
Member Avatar for cmaheshwari16

Hi All, I am using JSP and servlet technology for making graphs. Below please find my jsps, Display.jsp [CODE]<%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page import="java.awt.*" %> <%@ page import="java.io.*" %> <%@ page import="org.jfree.chart.*" %> <%@ page import="org.jfree.chart.axis.*" %> <%@ page import="org.jfree.chart.entity.*" %> <%@ …

0
129
Member Avatar for JoshKumar87

Hello, Can anyone please tell me how to get the arraylist in servlet? Using dao layer, I have connected to database and got the arraylist values. Now I need to pass it to Servlet through service layer. How to use that request.setAttribute in Servlet and how to redirect that arraylist …

0
69
Member Avatar for ronnieaka

here's my code: [CODE] import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.annotation.WebServlet; @WebServlet(name="HelloWorld",urlPatterns={"/HW"}) public class HelloWorld extends HttpServlet { public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { PrintWriter out = response.getWriter(); out.println("Hello Programmers!!! "); } } [/CODE] to access it on Tomcat, i goto : localhost:8080/examples/HW so i …

0
125
Member Avatar for Eric Cute

Hi everyone, Im trying to download all files in a directory residing in the server to clients pc. I know how to download single files using response.getoutputStream(). My problem is I want to download ALL the files in that directory with a single click of a button. i tried iterating …

0
96
Member Avatar for Haclon

I search a lot of solution but neither is working. Can anyone help me with this storing the textarea from JSP into MySQL and retrieve it? Thanks a lot! [code]<html> <head> <% String ta1 = request.getParameter("ta1"); %> </head> <body> <form action="testing.jsp" name="form" id="form" class="form"> <textarea cols="10" rows="10" id="ta1" name="ta1"></textarea> <input …

0
73
Member Avatar for matstars

I have a JSP page that has two pieces of data that I need to send to a page on another domain via post when a button is clicked. My original iteration was just having the two pieces of data in 2 hidden fields and when the user clicked a …

0
116
Member Avatar for mokztan

Hi. Im having a difficult time to figure out how to connect all the claass and jsp as well as the .xml. (I am working on a web application project, and these codes are for the registration module oly. Im using ECLIPSE EUROPA for my IDE, Apache Tomcat 6.0 for …

0
90
Member Avatar for EagerLearner167

I'm a student. I am trying to make simple project for online borrowing book system. Basically the flow is from Borrow.jsp (The user select which data their want to update) The UpdateBorrowBinder.java will grab the object and pass to sql then bring the result to appear in UpdateBorrow.jsp But the …

0
75
Member Avatar for khurram.1987

when we call servlet from a JSP page .. explorer/program moves to servlet page .... Such in my scenareo i have JSP form that on submiting call servlet to retrieve data from XML .. But problem is that . i like that on submitin form servlet runs in background without …

0
81
Member Avatar for raul8

I have an HTML/JSP page on which I have to display all the images stored in a folder. For this I have to use Java. Please tell me how this can be done. Will appreciate if it is possible to provide code for explanation. Thank You

0
89
Member Avatar for sugumarclick

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a uploading a file into (desired location) server I will show my code as some one can point out where am i going wrong. Currently im dealing with null …

0
110

The End.