3,760 Topics
| |
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"); … | |
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. … | |
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 … | |
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> <%} … | |
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 … | |
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 ♥ ) 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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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.. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 ??? … | |
I looking for a jsp web hosting ? that support visual frameworks ? | |
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 … | |
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 | |
i want to include next page option in my web application | |
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 … | |
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 … | |
Is it possible to restrict the file type for a uplaod form? | |
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 | |
Hi All can anyone tell me what is the advantage and disadvantage of using pre-compiled JSP files. | |
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 … |
The End.