4,248 Topics

Member Avatar for
Member Avatar for curdiMan

hi, im using tomcat and im trying to do simple submit form. before submiting i must chek the fields. the problem is that my submit functuin dosnt sends to the server the fields values. help... how can i submit but check all the fields first??? here is my html [code] …

Member Avatar for curdiMan
0
143
Member Avatar for khurram.1987

Hello, I am creating TextChat site .. on java Servlet .. I want to know the mechanism of identifying each user to forward message updates between each other in that perticular chat room. whether it i by knowing there ip-adress OR how. THANKS to all Helpers ....

0
117
Member Avatar for hims4u

Hello mods!!This problem is really frustrating me now!! i already know about ur tutorial on MVC Connection but i do not want to follow it since it is very complicated for me to understand and implement. So i have written a code (Ora.jsp) to connect to Oracle XE on my …

Member Avatar for musthafa.aj
0
419
Member Avatar for eswaramoorthy

Hi everybody, I want to know the difference between jsp and struts. Advantage of these two. I expect from all. Thanks for your effort.

Member Avatar for musthafa.aj
0
95
Member Avatar for hims4u

hello mods!! i am a newbie in jsp and just wanted to ask a basic question! i have a small jsp code for displaying the date and time. i have tomcat6 and apache web server installed on my linux machine(using fedora 12). can somebody plzz tell me how to run …

Member Avatar for ~s.o.s~
0
242
Member Avatar for hasbeenbad

I have a web app that creates an employee.txt file, how do I go about printing the contents of the file from a form? [CODE]<%-- confirmation.jsp --%> <%@ page session="false" import="java.util.*" %> <%@page import="java.io.InputStreamReader"%> <%@page import="java.io.BufferedReader"%> <%@page import="java.io.DataInputStream"%> <%@page import="java.io.FileInputStream"%> <%--Retrieve the Employee and Hiring beans from the Request scope--%> …

Member Avatar for NormR1
0
135
Member Avatar for khurram.1987

Hello. Actually not that much good in web development ... So i need little help in doing this work. I am creating realtime chating site in which i am having problem that how to send mesages to user's. I've read some simple example on internet they uses request to server …

0
69
Member Avatar for merinajose

Hi I need code for searching the records in a table for specified conditions using jsp

Member Avatar for Member 784740
0
1K
Member Avatar for Viruthagiri

Hello friends, I have a table which contains file names. For example i have stored a file "java.pdf" in a directory called "course". The file is located here. [url]http://www.something.com/course/java.pdf[/url] Now i stored the file name in a column named "document_filename". I stored it as "java.pdf" Now if a user click …

Member Avatar for Viruthagiri
0
111
Member Avatar for sarfarazahmed

Actually ,i made one project for web based application,but now i have to use for desktop application.and also i don't want to show my code to customer to whom i will give my project.While running WAR file in tomcat ,it automatically makes source code file,please help me out. In advance …

Member Avatar for lemon81
0
860
Member Avatar for dodla sri

i am engineering student developing project on shopping cart...how to implement cart using jsp cookies..when user clicks on one item and add to the cart and next if he wishes to go to next page and add another item to cart, then both items value should be added in one …

0
40
Member Avatar for nikhilgotan

Hi there, i want to redirect from the SERVLET page to an HTML page after 5 seconds. Please help..!!

Member Avatar for nikhilgotan
0
244
Member Avatar for shishir

hello everyone i have been trying to run my ejb-jsp code using j2ee server and have connceted to oracle using sun.jdbc.odbc.jdbcodbc bridge driver. but i am encountering this particular problem again and again and no data is inserted into database Error java.sql.SQLException: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_ENV failed …

Member Avatar for NormR1
0
169
Member Avatar for alsoumahi

Hi experts, I would ask you how to create dynamic image in JSP along with other content

Member Avatar for ~s.o.s~
0
41
Member Avatar for AbhikGhosh

Hi I have a simple jsp page in which there is an ajax call on an input string which returns the upper case of the string in json. This is working for the first time but not on successive requests. I am using the GET method. Why is it not …

Member Avatar for AbhikGhosh
0
371
Member Avatar for virendrachandak

Hi, I am using the following code to send email using JSP through gmail. But i am getting error in the following line: Session mailSession = Session.getDefaultInstance(props, null); [code] String host="", user="", pass=""; host = smtp_server; //"smtp.gmail.com"; user = jsp_email; //"YourEmailId@gmail.com" // email id to send the emails pass = …

Member Avatar for eswaramoorthy
0
358
Member Avatar for prabhabati

How to pass a hidden variable to servlet/action class on clicking of a hyperlink in jsp page.

Member Avatar for stephen84s
1
95
Member Avatar for kaustubh.pandey

i want web based project topics in java.who's r not common in development means i want smthing defferent topic which is not more complex n easy 2 built....so pls give me sm topic...4 ma project....

Member Avatar for masijade
0
143
Member Avatar for Rick The Mad

Hi, I am creating a web application that will be accessed by several different users who need to be coupled and to interact. More specifically, I would like to let both of them call the same servlet instance and make the servlet start his operations only when both users already …

Member Avatar for ~s.o.s~
0
89
Member Avatar for iamar

Hi, I am trying to call servlet using Ajax request in Post method which simply return Hello in Hebrew and I am keep getting gibbrish. I use the following code lines : 1. On the top o the JSP page - <%@page language="java" pageEncoding="UTF-8" contentType="text/html;UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML …

Member Avatar for ~s.o.s~
0
109
Member Avatar for gazzy1

The task is very simple; you have to work on two functions Encrypt and Decrypt. The encrypt function will encrypt the user input string with the help of encryption key. The decrypt function will decrypt the user input string with the help of encryption key. The output will Hints: Encoding: …

Member Avatar for peter_budo
-1
143
Member Avatar for haya_quraan

hi please help me ihave aproblem how could icall ireport from jsp environment haya quraan <FAKE SIGNATURE>

Member Avatar for peter_budo
0
27
Member Avatar for SamuBaskar

Hi, I am new to jsp. i want to learn how to create web applications in that. Anybody please help me.

Member Avatar for peter_budo
0
58
Member Avatar for amer.m

i'm making a web application based on jsp i wan't a code that when a button clicked, take value from textbox and insert its value into mysql database pool maybe the sql stmt only isn't right my code is: [CODE]<form id="form1" name="form1" method="post" action="http://localhost:8080/servlet/mailservlet"> <p>&nbsp;</p> <table width="100%" border="0" cellspacing="0" cellpadding="0"> …

Member Avatar for peter_budo
0
142
Member Avatar for eswaramoorthy

Hi, I need to show the loading status(wait status) in cursor for all actions. If i perform some action([B]Login[/B]), then go to the backend and perform some process and it will return some value. Here this whole process will be taken some times. Now that time i want to show …

Member Avatar for javaAddict
0
153
Member Avatar for valuba

hello all, i just joined this forum. i actually joined because i am having a serious problem with my program which i believe u can help me solve. i am designing a web based application that authenticates user login using MySql as database, java as programming language and NetBeans 6.5 …

Member Avatar for ashalatha6
-1
125
Member Avatar for prem2

Hi daniweb team, I am new to Servlet concepts can any one tell why peoples use doGet and doPost method in the Same program.And What is the difference between doGet and doPost method. Thank you, With Regards, Prem.

Member Avatar for prem2
0
100
Member Avatar for virendrachandak

Hi, I need help with JSP session. My problem: I have a login page. When a user logs in then, i set a session and its expiration time. So, when the session is expired, the user will be redirected to the login page with a session expired message. I want …

0
85
Member Avatar for avidubey

I want to make a jsp page which checks some condition and if it is not true it should send error response 404 to server.. so that the tomcat server should think that the page is not available... is it possible to do in jsp..???

Member Avatar for avidubey
0
55
Member Avatar for avishkar.joshi
Member Avatar for fankoff

How could I like programming ? When you spend 2 days on one single, pointless line and the only thing you get to see is an ERROR-response. It`s really inhuman and I cant imagine who would want this voluntarily. Nevertheless, what am I yammering about is following error, that is …

Member Avatar for bapi
0
106
Member Avatar for Sabzar

Hi can any one help me please .. i want validate textfield value with database in jsp onchange event .. i am using struts2 ..when i enter a value in textfield on onchage event the value should get validate with database and if the data is present it should display …

0
62
Member Avatar for jacklops

Hi I am very new to the JSP and EL. I have a JSP main file which loads several custom tags from tagx files. But all tags for now are statically loaded on page load. I want to dynamically load the custom tags using javascript I wrote a ajax/script for …

0
38
Member Avatar for vishant

Hi everyone, I am doing a project for school and i'm having some problems. I have a Profile page. When i call on Profile.java, this servlets get(doGet) the profile info from the database and shows it on the profile.jsp. The user has the option to edit the info on the …

0
72
Member Avatar for fraenckel

This should be really easy, but I'm a novice at webapps.... I have a simple drop down list in my JSP which I created using <select> and <options>. I've got a javascript function in which I would like to get the selected value and proceed to do other stuff with …

Member Avatar for fraenckel
0
173
Member Avatar for azhar27

In the below code i m trying to send my request attribute from req.jsp page to retr.jsp. i would like to know if we can pass request attributes from one jsp page to other jsp page the below is my req.jsp [CODE] <html> <head> hey i m page 1 </head> …

Member Avatar for javaAddict
0
297
Member Avatar for sara khan

I m making a website in which I hav an admin and members .. I want to define rights of users who can access a certain page.. For this purpose I m using an array of String along with a Session object. I m storing URLs of pages which a …

Member Avatar for sara khan
0
230
Member Avatar for AbhikGhosh

Hi I am not been able to receive URL parameters passed from my ajax code in my jsp. Here is the code [CODE] function showDetails() { document.detailsForm.sltdUser.value = selectedUserID; alert('selectedUserID' + selectedUserID); var httpRequest; var url = 'showDetails.jsp?sltdUser = ' + selectedUserID; if (window.XMLHttpRequest) { // Mozilla, Safari, ... httpRequest …

Member Avatar for Thirusha
0
732
Member Avatar for mindbend

Need to make a website for a school project. Decided to make a website like photobucket. I got every page read, but the only thing missing is the uploading part. Does anyone know where I can find some examples of uploading blobs? Or mayb someone can share one. The thing …

Member Avatar for mindbend
0
94
Member Avatar for fankoff

It simply wont forward my page! I`ve tried everything, and it still wont forward it. Basically what I have is a register.html where the user can put his username, passwort, etc. , a db_register.jsp which handles the input and sends it to the appropriate tables in the db. When the …

Member Avatar for javaAddict
0
175
Member Avatar for fankoff

One last question, really ! How for goodness's sake can I load the results in the html page without leaving it? Always when I click a button (do I always have to click a button? is there a way to call a resultset from the html and to handle it …

0
85
Member Avatar for fankoff

Hallo guys, a theoretical question I have there for you. I have a search form in HTML with several input fields, so the user can search for particular features in a db. My queiston: How can I generate a dynamic query, depending on which fields the user had filled in? …

0
81
Member Avatar for fankoff

Hi guys, I have a quick and interesting question there for you: I have my DB and a execute a query to read some data from the DB and return it to the HTML. The data that is returned depends on the search fields the user had filled in. So …

Member Avatar for fankoff
0
126
Member Avatar for AbhikGhosh

Hi I am unable to pass value from one jsp to popup jsp. Code [CODE] <form name="detailsForm" method="post" onsubmit="return showDetails(this); "> <input type="hidden" name="sltdUser"> <input type="submit" value="Details"> </form> function showDetails(detailsForm) { detailsForm.sltdUser.value = selectedUserID; alert('selectedUserID :' + detailsForm.sltdUser.value); // works fine window.open('showDetails.jsp?abc =' + detailsForm.sltdUser.value); } [U]showDetails.jsp[/U] <% String abc …

Member Avatar for javaAddict
0
135
Member Avatar for balaji153

Hi , i am php developer. But plan to learn JSP do i need to learn java for that?.....

Member Avatar for ~s.o.s~
0
59
Member Avatar for karanits

Lets say i have a jsp page which invokes a servlet. Now I want the servlet to forward this request to someother secured jsp page which i have configured to be secured in my web.xml. The problem is the jsp pages opens as secured if I open it directly from …

Member Avatar for karanits
0
138
Member Avatar for vishantpoeran

Hi everyone, I searched a while on the internet how to work with mvc for a school project. I found a really great tutorial on this site. ([URL="http://www.daniweb.com/forums/thread141776.html"]http://www.daniweb.com/forums/thread141776.html[/URL]) This tutorial has everything that i needed. In this tutorial the connection of the database is made by setting paramaters in de …

Member Avatar for ~s.o.s~
0
293
Member Avatar for Alex_

I have tried installing and uninstalling everything i had about java, different JRE's and JDK's. These are my current settings : [code]alexandru@alex-desktop:~/Programs/eclipse_Java$ java -version java version "1.6.0_20" Java(TM) SE Runtime Environment (build 1.6.0_20-b02) Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing) alexandru@alex-desktop:~/Programs/eclipse_Java$ echo $JAVA_HOME /usr/lib/jvm/java-6-sun-1.6.0.20 alexandru@alex-desktop:~/Programs/eclipse_Java$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-6-sun-1.6.0.20/bin …

Member Avatar for Alex_
0
602
Member Avatar for Squires

I am pretty proficient in C++ and Java. I know that most progrmas could be written in either language. My question for those of you who have been out there for a while, do companies tend to use one programming language for certain types of programs? For example, is C++ …

Member Avatar for surojit das
1
277
Member Avatar for sara khan

Hey i m using href for forwarding control to other page but it displays null when i want to get that attribute in other page.. Can any 1 suggest me what to do...

Member Avatar for kvprajapati
0
110

The End.