4,248 Topics

Member Avatar for
Member Avatar for vartikachandra

i am trying to retreive the contents of the table in my databse into a html form using servlets in tomcat. here isthe code: [code] import java.io.*; import java.lang.*; import java.sql.*; import javax.servlet.*; import javax.servlet.http.*; public class ServletusingData extends HttpServlet{ public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{ response.setContentType("text/html"); …

Member Avatar for peter_budo
0
130
Member Avatar for Swapna Gouri

Hi All I've created a web page where I'm trying to pull data from the database. My requirement is to populate a combo box from the database automatically, i.e. as and when the db updates, the combo box needs to get updated. I have heard that it's possible with Ajax. …

Member Avatar for ~s.o.s~
0
101
Member Avatar for probedb

Hi all, Finally thought I'd register since these forums come up quite often in search results in google :) I'd a web dev at ufi.com (mainly we do learndirect.co.uk) and have to do everything from HTML and CSS through to configuring Tomcat via Java and JSP. Hoping to learn a …

Member Avatar for jbennet
0
38
Member Avatar for probedb

Hi all, I've just joined but have been coding a while longer :) I'm having trouble migrating a webapp that works fine under Tomcat 5.0.28 to 5.5. I've done several others without any problem. This one, however uses SingleSignOn. I can't see anything wrong with my setup (config below) from …

0
65
Member Avatar for khalidmehmood

Hi Experts! I am trying to build dynamic hyperlinks but i cant do this. i am new to JSP. please guide me. here is my code: [code=JSP]<% try{ Class.forName("com.mysql.jdbc.Driver").newInstance(); connection = DriverManager.getConnection(connectionURL, "root", "root"); statement = connection.createStatement(); rs = statement.executeQuery("SELECT * FROM contacts"); while (rs.next()) { %> <a href="viewdata.jsp?value1="+<%rs.getString(1)%>+">"+<%out.println(rs.getString(1));%></a> <%} …

Member Avatar for peter_budo
0
2K
Member Avatar for dreamer14

Is It possible? Tried this but all i see is blank haha [code] while (rs.next()) { String c=rs.getString("ProductID"); String d=rs.getString("ProductName"); String e=rs.getString ("ProductImage"); out.print("<option value="+c+"><img border=0 src=\"picture/" + e + "\" width = \"170\" height=\"157\"></option>"); } [/code] ANy one with recommendations on how to make a picutre based drop down …

Member Avatar for dreamer14
0
161
Member Avatar for sgbender

Hi, I am kind of new to JSP. I am having trouble outputing something: <%=request.getParameter("UserName")%> now if [I]UserName [/I]has special Characters (i.e &hearts; ) it does not get outputed corectly. that code above should display the heart symbol, but instead I get something like this: âÂ... is there some kind …

Member Avatar for dreamer14
0
2K
Member Avatar for neeraj_jaggimca

Helo Friends please help to me to make this code work properly. this is the jsp page on which i retriving the data from table Userpassword to validate the user's "username and password"and for this i uses the if else condtion and when i execute this code its always prints …

Member Avatar for verruckt24
-1
98
Member Avatar for proloyganguly

I'm facing a problem in our application. In application we are using JSP and Java Beans. Some data are not saving properly according to session. Suppose, User 1 has been logged on. Some field values of user1 has been set in a session within the JSP page . When we …

Member Avatar for stephen84s
0
127
Member Avatar for khalidmehmood

Hi Experts! I am trying to develop a web application in JSP. I want to implement the checkboxes with my records. when a user select multiple record and press delete button selected records should be deleted. best regards Khalid Mehmood

Member Avatar for peter_budo
0
91
Member Avatar for darylesha

I have researched and have not come up with any examples and no answer as to how to do this. Please help... The molecular2.java does all the computation. I will only include a snippet of it. This file is like this because I needed to return multiple items and could …

Member Avatar for peter_budo
0
192
Member Avatar for comsec

I have a mechanism to upload a file to the remote disk from the JSP page. But now the issue is that User is not supposed to access the remote disk as it is supposed to be a restricted access remote disk. Now I was wondering on how to upload …

Member Avatar for stephen84s
0
90
Member Avatar for satin

Hi.. can anyone giv me a program to send mail automatically if it satisfies some condition.. such as i want to send mail before three days of the particular date..(say 5/2/09 i want to send mail on 3/2/09).. Thanks in advance..

Member Avatar for peter_budo
0
54
Member Avatar for Swapna Gouri

Hi All This is my first post on DaniWeb. I'm new to JSPs and my requirement is that I have to pull data from MySQL database and display it on the browser upon a click of a button by the user. I have come to know that one should use …

Member Avatar for peter_budo
0
80
Member Avatar for Madhuparna

I have an apllication to verify the user identity using database(Oracle 9i).I used JSP for page design & servlet for interacting with the database.I made necessary changes in the web.xml file & saved the .class file in classes folder and servlet in src folder all of which lies under JSPMultipleForms …

Member Avatar for stephen84s
0
132
Member Avatar for Tim2o9

So Ya My Explorer.exe Keeps Crashing Too And Everytime I Try To Run It It Shuts Off In Like 10 Seconds. Here Is My Log File Logfile of Trend Micro HijackThis v2.0.2 Scan saved at 10:58:39 PM, on 12/29/2008 Platform: Windows XP SP3 (WinNT 5.01.2600) MSIE: Internet Explorer v7.00 (7.00.6000.16762) …

Member Avatar for crunchie
0
334
Member Avatar for kenshin1733

I am a mumbai university engg. graduate in IT, 2008 batch and i've been working with a software firm as a java/jsp programmer. I left the job after 3 months and currently im a visiting lecturer for a engineering polytechnic college. Im interested in taking free lance projects but before …

Member Avatar for kanaku
0
118
Member Avatar for jackiejoe

I have a table in mysql which I can view perfectly using JSP, but there is a problem with inserting into the table which I cannot figure out. Here is my code: [CODE]<%@ include file = "database_ini.jsp"%> <% if(request.getParameter("insert") != null){ String name = request.getParameter("name"); String sql = "insert into …

Member Avatar for sillyboy
0
114
Member Avatar for Tim2o9

So I Got Word That My Computer Got Messed Up Whilst I Was Away At A Friends And It Appears That My explorer.exe Crashes And Restarts But Won't Stay On For More Than 15 Seconds I Could Really Use Some Help. Here Is My Log File: Logfile of Trend Micro …

Member Avatar for Suspishio
0
157
Member Avatar for biswajit.cse

Hi All, I am a new one in jsp having the basic idea. I have some dll deployed in web server. When user hit my server on the login.jsp page I instatiate a Com dll using the Object tag. Now the problem is that if my site is not added …

0
44
Member Avatar for psaziz

Dear friends I am new to this forum and looking for help here. I am building an application in JSP with TomCat and MySQL. The application is to be stored on C:\ on the server while the data it will be dealing with will be on D:\. When I use …

Member Avatar for stephen84s
0
84
Member Avatar for dreamer14

I am just wondering if i want to delete a file using coding how can i do it using jsp? Example i have a file name pig.jpg in my root folder and I wish to delete this file as i no longer use this any more how can i do …

Member Avatar for peter_budo
0
2K
Member Avatar for pankaj_Salwan

hi!! all i have a problem in jsp file...my file has a javascript function which is using xmldoc.load(mytext1.xml) function..when this file along with other files is bundled as an ear file and deployed on server .. it is not getting loaded in memory..bt as a standalone application it is working …

0
54
Member Avatar for tanha

Hi. I want ot use the TinyMCE editor in my jsf code, but unfortunately there is error in using the init function, and also in eclipse when I copy the folder of the tinyMCE, there is warning sign on the folder. can any one help me through this issue ??? …

Member Avatar for ~s.o.s~
0
237
Member Avatar for kc8pdr
Member Avatar for chackboom
0
140
Member Avatar for omesanni

I am having a with problem displaying the contents of the hql query from the database. Basically I created entity classes for each table in my database. I have an index.jsp page which has a form in it. When the form is submitted the details are passed to a servlet …

Member Avatar for ~s.o.s~
0
170
Member Avatar for whisper_101

Seasons Greetings Everybody! I want to use a Textfield to dispaly details of link information to my website so that others can copy and paste these details upon their website. I want to prevent visitors from being able to type anything in this field altogether. Does anyone know how? Thanks

Member Avatar for ~s.o.s~
0
84
Member Avatar for Gabriel Arun.R
Member Avatar for rajshree13

I have one form and user can enter name,dept,ticketno,email and suggestion and upload file and on submit button the form should directly to my mail box where table should be generated and user data is displayed and also path should be displayed where the uploaded file is get uploaded. Please …

Member Avatar for sillyboy
0
64
Member Avatar for er.prajna

In one page i insert data in textbox amd on clicking the submit button it will open a new page with the previous data(will retrived form database) that has been inserted using swing as desktop application in netbeans IDE6.0.we are able to insert data but unable to fetch it from …

Member Avatar for sillyboy
0
106
Member Avatar for dreamer14
Member Avatar for dreamer14
0
102
Member Avatar for Wees

Hi all Kindly tell me how to pre-compile a JSP page, how to deploy it in Tomcat and Websphere and how to stop Tomcat and Websphere re-compiling the JSP at runtime. Thanks & Regards Wees

Member Avatar for stephen84s
0
82
Member Avatar for Wees
Member Avatar for ~s.o.s~
0
55
Member Avatar for Chaster

Hello, Can somebody help me out? Well, the problem is the following: I have a JSF page, and the address bar contains a query string, like "...?author=something&title=something". I also have a command button, in its action I want to extract the parameters. So, in the bean I have the following …

0
96
Member Avatar for vedmack

Hi, i got the following situation: When user clicks on some link, I'm entering a servlet in which I'm copying a file to a network drive, and than I want to open this file on the Client side, for example the file to be opened is a .pdf file. I …

Member Avatar for stephen84s
0
73
Member Avatar for Akangel

Hey everyone, well ill be quickly...ive gotta a JSP page indexMembers.jsp with a button "Show My Reservations" when u click on that button it calls a JFrame (with a JTable inside) with the data from the databse that the user wrote before. now if i click on another button like …

Member Avatar for stephen84s
0
100
Member Avatar for yingyang

hi every body I am new but there is no time to introduce my self because i have a project to hand in no time but when i tried to lookup session bean in my servlet it give me the error: Borbean not bound //borbean is the session bean so …

Member Avatar for yingyang
0
53
Member Avatar for shareme

Hi I need to get values from xml file. I am trying to do this through JSTL.I worked out in following manner, [code]<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml" %> <c:import url="/corporate/commonjs/YUI_js/validation/valid.xml" var="url" /> <x:parse xml="${url}" var="doc" /> <x:out select="$doc/validationcheck/required" /> My xml file contains, <validationcheck> <required>Required</required> <required>この項目は必須です</required> …

-1
38
Member Avatar for it2051229

hello, i'm new to jsp but i'm not new to web development and been doing PHP for quite some time... I download Java EE and SDK from sun microsystems website and from there when I installed everything, there's a ready made middle ware software to host jsp pages and servlets. …

Member Avatar for stephen84s
0
69
Member Avatar for kellybaz

I am working on a project. Here is some background: I am working on a page that lists people and their training info. The training info is an expansion box listed underneath each person. I am trying to have the expansion box automatically open on page load if their training …

0
61
Member Avatar for Saurabhw

Hi, My problem is that I have to upload a CSV file from Client Machine (Windows) to Unix Application Server. I am using JSP method post and multipart/form-data (as in [url]http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml)[/url]. The file is uploaded fine but the problem is it displays carraige Return (^M) a square boxes on Unix …

Member Avatar for masijade
0
71
Member Avatar for jemu

i am using page navigation to show the search results like in google. presently my page is looking like.... FIRST PREVIOUS [1][2][3][4][5] NEXT LAST But i want to display the link FIRST when i am not in the first page. similarly should display the link LAST when i am not …

Member Avatar for peter_budo
0
32
Member Avatar for ajithraj

haii friends.. i want to search for a file, which resides in my own system using jsp...that is, when i click a button, a search brower is to be displayed which showing all my folders in my system and from that i want to search for the needed file...Is this …

Member Avatar for javaAddict
0
67
Member Avatar for nejimz

I wan't to make a page that "if i enter a value in the textbox and i press submit button in the jsp page will link the data to the jsp page by getting the data in the data base using the odbc in ms access? someone can help me

Member Avatar for nejimz
0
77
Member Avatar for zoroman

Hi. I need to do a scramble game. Simply I need to randomly select a word from my set of strings and print out in shuffled string. Such as if the word is "banana" it should print out something like "anaban" and there should be text field for user to …

Member Avatar for peter_budo
0
178
Member Avatar for Innas

<jsp:include page="hlinks.jsp"/> is not workin on the server. I have taken a webspace and uploaded my files on server. the problem is contents ofpage hlinks.jsp is not included on the page where it is included. What changes should i make in my code so that the tag will work. Similarly …

0
45
Member Avatar for jistoj

Windows explorer.exe was crashing & rebooting itself. On Startup, explorer.exe would show the desktop for about 10 sec, then crash for about 10 sec, then cycle through the same for about 10 min until it just would not start up again. Following the instructions for cleaning from another post: [URL="http://www.daniweb.com/forums/post738435-2.html"]http://www.daniweb.com/forums/post738435-2.html[/URL] …

Member Avatar for jholland1964
0
695
Member Avatar for kardus

hallo...this is my first post.. i want to validation my registration.. if there are anyone to regis but the username is already(in database), there are message " sorry, choose the different name please" i have no idea, i have tried but always failed... o..yeah i use ms.accsess for my database..and …

Member Avatar for stephen84s
0
206
Member Avatar for knightranger1

i had a brain fart & let my sister download this progam called Zwinky well smiley central & mywebsearch toolbar came with it last night i ran spybot & it found over 50 entries for MWS alone so it had to go & i have it almost gone but everytime …

Member Avatar for Virus Expert
0
254
Member Avatar for ucan_aps

hai to all.. help me to solve my problem... im dng one project..in my project i do have one database.. it wil be updated for every 30seconds.. so i have to display the data from database with thier updates.i mean i would like to display data's in the client browser..whenever …

Member Avatar for ucan_aps
0
168

The End.