3,760 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
129
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
99
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
59
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
158
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
97
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
125
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
89
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
188
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
88
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
52
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
77
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
130
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
111
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
42
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
83
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
50
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
232
Member Avatar for kc8pdr
Member Avatar for chackboom
0
137
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
165
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
83
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
61
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
103
Member Avatar for dreamer14
Member Avatar for dreamer14
0
99
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
79
Member Avatar for Wees
Member Avatar for ~s.o.s~
0
53
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
91

The End.