25 Discussion / Question Topics

Remove Filter
Member Avatar for
Member Avatar for steph7

Hello, so I'm a student and in one of my projects I have to capture the image of a client from a WebCamp and then save it on the database. Now, I'm having some problems and doubts. I've found some videos where they use the library JMF (Java Media Framework), …

Member Avatar for JamesCherrill
1
1K
Member Avatar for mrabrar09

Hello Everyone, Already my web project is developed by using jsp and servlets now I would like to do security check on each and every pages. so, is there any software to check whether my all pages are robust and secure before deploying on to the live server. Eg: Like …

0
159
Member Avatar for joelanandraj

in my program a simple shopping application for my lab exercise, i just calculated the price of items inside a for loop but when i try to print it outside it is not getting printed...pls give me some suggestion. for (int i = 1; i < 7; i++) { String …

Member Avatar for stultuske
0
258
Member Avatar for KhubaibQaiser

I want to know how can i use a servlet to generate a table (time table for example) dynamically in a jsp page? The result should come between header and footer inside a div (see the picture) http://img191.imageshack.us/img191/8942/nbo6.png <html> <head> <title>Time Tables</title> <link href="default.css" rel="stylesheet" type="text/css"/> </head> <body> <div id="header"> …

0
124
Member Avatar for manaila

Hi, I have learned that servlet containers like tomcat handle concurrency in web application. I just want to get a clear comfirmation whether I dont have to multithread my business logic classes/methods(e.g database connections) when I am developing servlet applications. Cheers!

Member Avatar for LastMitch
0
96
Member Avatar for sankhasubhra

I'm developing an application in JAVA where a servlet is taking the inputs from a JSP page. After inserting the values in db it will redirect to another servlet. Then the 2nd servlet will dispatch a JSP page with an ArrayList. But I can't redirect from the 2nd servlet to …

Member Avatar for nadim123
0
375
Member Avatar for manaila

Is it necessary to learn Servlet programming when one is already comfortable with JSP

Member Avatar for ruchi18
0
153
Member Avatar for abevenkat

how can i make a servlet to validate a form with two file upload one image and other a pdf file. along with the other string parameters like name age gender etc., i need to validate the pdf and image files in servlet and save it in folder of my …

Member Avatar for subramanya.vl
0
203
Member Avatar for dtkhshi

I have written a web app with a few JSP pages and Java servlets running on a Tomcat server. The app needs to be able to send location updates to a Servlet every x seconds. I have found the html5 watchPosition(sucess_callback, error_callback) function to get the location updates from the …

0
82
Member Avatar for Valten1992

I'm currently adding a dashboard-like view to my web project, which polls data from OIDs using SNMP. My current step is to use AJAX to reload the page but I'm running into some design issues on that front. Accessing the servlet class on the server will generate hello.jsp, which displays …

0
125
Member Avatar for Pravinrasal

I want to display image from database to my htnl form but it id not displayed. Image copied from database to local c:\file_upload folder but from this folder i want to display in img src in html form .project doesn't give any error but image not displayed on html form. …

Member Avatar for imdeadsoul
0
277
Member Avatar for slasherpunk

System Information: OS: Ubuntu 11.10 Server: Tomcat 7.0 JVM: openjdk 1.6 I have checked if the server is running by going to [url]http://localhost:8080[/url]. It's working fine. I just need to know the directory in which I should save my servlet in order to run it. I think I am supposed …

Member Avatar for peter_budo
0
143
Member Avatar for deepdon

I am getting java.lang.nullpointer exception for this code plzz help me out all database linked programs are creating same error [code]import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.sql.*; public class retser extends HttpServlet { Connection c; Statement st; ResultSet rs; ServletConfig config; public void init() { config = getServletConfig(); try …

Member Avatar for stultuske
0
140
Member Avatar for eLu-sive

hi, am working on a bigger project than this, only using this as an example because i do not want to waste a lot of your time. i have this code, its supposed to write to the database, but have no idea as to what i should put under action= …

0
86
Member Avatar for abhinavM

I have this servlet code for retrieving contents from database and displaying it on the browser.But when I am running this code it is giving "ClassNotFound Exception" at Class.forname().I have built the path with db2jcc.jar and db2jcc_license.jar file but still this exception is thrown.Please help me [CODE] import java.io.IOException; import …

0
111
Member Avatar for Seshakumar

Hi guys! am new to this forum and this is my first thread :) am not sure if am posting at the correct forum, but its regarding servlets am doing a web application for 'online exam' using jsp, servlets and java bean. i've three serialized files holding my questions(questions.ser), options(options.ser) …

0
80
Member Avatar for josiefrut

Hi guys, I need your help. I was trying to update a certain data in my database using jsp and servlet. However i can't figure out why it wouldn't update the data. :( I'd greatly appreciate it if you could check my codes below. THANKS MUCH! Here's my jsp [CODE] …

Member Avatar for josiefrut
0
2K
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 jbennet

How to do a HTTP PUT/DELETE? (Using jquery) . Im making a REST-ful twitter-type aplication using Java Servlets etc... and i have the methods for handling PUT and DELETE, i just need to be able to perform these e.g. when a user submits a form (with the id of the …

Member Avatar for jimforsyth
0
335
Member Avatar for Dhruv Gairola

this is inside my servlet: [CODE]ArrayList<String> currentCustomer = model.getAllCustomers(); req.setAttribute("currentCustomer", currentCustomer );[/CODE] how do i access this arraylist in my JSP file? I eventually wanna loop over each string element.

Member Avatar for Dhruv Gairola
0
233
Member Avatar for feoperro

Hi, Does anyone know where I can read about ways to protect a website from potential threats? i.e. SQL Injection, etc. In particular, a website using HTML/JSP/Servlets/Java/Tomcat. Thanks, Ashton.

Member Avatar for peter_budo
0
2K
Member Avatar for kamweshi

Hi, can anyone help me to split the servlet(week02_4) so that only control code remains.I need to forward/redirect request/responses to two other servlets(VowelFrequencyServlet and WordCountServlet).I am not sure where to place the RequestDispatcher. Week02_04 servlet: [CODE=java]package servlets; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Week02_04 extends HttpServlet { protected …

0
120
Member Avatar for newtoajax

HI I am trying to pass a value from dropdown list on onchange event fo the dropdown in a jsp page through AJAX to servlet. The servlet then returns the value back to the jsp page and displays it in dropdown list. the problem I am facing is that the …

Member Avatar for Stefano Mtangoo
0
2K
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 Class method which should return a result set([B]result of a join query[/B])as a an arrayList using the existing bean class. I will show my code as some one …

Member Avatar for sugumarclick
0
188
Member Avatar for Stefano Mtangoo

Hi All, I have JSP and Servlet that need to "talk" to each other. Actually I need to get record from database, fill it in JSP file. I have created Servlet that does the query and gets the result. I need those results to be shown on JSP file. In …

Member Avatar for Stefano Mtangoo
0
135

The End.