4,248 Topics
![]() | |
I want to store multiple checkboxe values in my sql database. I am using jsp as front end. | |
hello please i need help, am writing a project to check if a particular folder exist in client system , if not let it create it, but if found let it delet it from client side immediately the client visit the site. i try this on my localhost it work … | |
I facing a problem with checkbox value that already exists inside the database. so how can I retrieve those value into another database table? The table subject and service below is what I want. But based on the code below the SERVICE TABLE on SUBJECTID COLUMN producing null value. How … | |
//The php section of the code <?php function getJSONFromDB($sql){ $conn = mysqli_connect("localhost", "root", "","rent"); //echo $sql; $result = mysqli_query($conn, $sql)or die(mysqli_error()); $arr=array(); while($row = mysqli_fetch_assoc($result)) { $arr[]=$row; } return json_encode($arr); } $jsonData= getJSONFromDB("select Pic from Display"); $jsn=json_decode($jsonData); //for loop to retrieve rows from database for($i=0;$i<sizeof($jsn);$i++){ $a=$jsn[$i]->Pic; //here is the main … | |
I am trying to create an HTML form which displays text from a text file, using a Java Servlet. I keep getting the following error: Error instantiating servlet class servlets.ReportServlet. Here is the HTML page: <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <form … | |
If a table contains field's like name,age tuition fee,bus fee,year, 1,2 When I tried to update 1 year details it is updating but when I try to update the entire fields it's not updating in form of jsp page | |
Can anyone help me out to create multiple check boxes for attendance purpose | |
As I am doing a application on attendance management where I need to store the details by using check boxes I am unable to store the details of check boxes where it will be generated as present or absent in database Can anyone help me to find out this | |
Hi, I'm starting to learn Java EE - JSP / SERVLET and as for my learning progress, I'm trying to achieve this kind of web app but Im having problem with displaying the right selected row (TASK ID Column) from my table. It is populated from my oracle db. Im … | |
I want to have a forum in my website project in school. i don't have any idea. may anyone help me suggesting some examples. it is like daniweb forums. i want to save the topics in the database and retrieve it as a link. i dont know how to do … | |
hi..so i am facing problelm how to upload data on my websites in which format (.pdf,etc) should upload data and how to do it. | |
Hello everyone, I have a simple JSP, with a text input and a submit button, as follow: <form accept-charset="UTF-8" method="get" action="<%=request.getContextPath()%>/someAction"> Enter Search: <input type="text" name="keyword"/><input type="submit" /> </form> And in my Servlet, I am reading the input, as such: String word = request.getParameter("keyword").trim(); System.out.println("Keyword: " + word); The input … | |
Hello Sir, I am developing social networking website using jsp and servlet . I have created login page using mysql but now i am not able to make posting status and commenting system on that post.Please provide me solution. thankyou aayush | |
Hi Everyone, i am a final year computer science student.I was thinking of building a secure online voting system for my university's student union elections process. I wondering if anyone has an idea on how i can go about implementing the system.I would really appreciate any help you give to … | |
My intention is to delete file from folder But Here in above script is not working properly can any one please suggest me about this function deleteFile() { var myObject; myObject = new ActiveXObject("Scripting.FileSystemObject"); myObject.DeleteFile("D:\\WEBSITE_FILES\\docs\\OTR\\"+db_unicid+"\\passportImage.jpg"); return true; } <input type='Button' value='Click to Delete File' onClick='return deleteFile()'> | |
i want source code for uploading ,displaying and downloading image in jsp | |
I have a validateRequiredField(e) function to validate empty field and a validateExistingEmail() to validate an email has existed in my database. I am able to see both alert("Field" + i + "is Required"); when the fields are empty and alert("This email has been registered"); when the email existed in my … | |
I need to validate a name field to validate if the name field is empty and if the name existed in my database. If it passes both the validation(the user has input a name that is not existed in my database), then the form will be submitted. The problem is … | |
the code below is working, but it is displaying only one image in a blank page where there is no css I want it to display all the image in a table. please help me... <%@page import="com.sun.javafx.tk.Toolkit"%> <%@page import="java.awt.Image"%> <%@page import="javax.swing.ImageIcon"%> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import ="java.sql.*" … | |
Hi all i have couple jsp pages and java class as follows below.Can you help me with the session on the handleForm .jsp As this page supposed to show all info entered by the user in the form.I did manage to display session object in thanks,jsp But have now a … | |
Hi, a) I need to display list of ItemName, ItemLocation in a table row with a check box in the left-most column. b) User can select multiple jobs and on clicking "Submit" button I should pass the selected ItemName and ItemLocation to a fuction in java. I am able to … ![]() | |
I want to check if the username existed in my database against the input of the user after the button is clicked. If the username existed, it will show "Username Not Avaliable" in the span and the username textbox will be highlighted in red. I tried to use ajax for … | |
how to do cross browser compatibility> | |
I want to build a very configurable web app where a user can just right-click and add/delete menus. So I would like to get some suggestions( web links, books, frameworks) that can get me going - from design to development. I'm willing to using Javascript and/or Java/JSP. | |
hi all , Am doing event management project. In jsp page am using javascript date picker. Then i passed that to servlet page by the following code. DateFormat formatter ; formatter = new SimpleDateFormat("dd-MM-yyyy"); Date date=formatter.parse(request.getParameter("date")); now I want to insert date in mysql database , How can I achieve … | |
 Plesae take a look at the image attached. I have created a maven project by the following steps: 1. open eclipse EE 2. file > new > pther > maven project 3. click on 'create a simple project' checkbox 4. click on 'use defualt workspace location' checkbox > … | |
Hi guys I need a help here, I’m trying to use Ajax to update the column of the table in the database with combobox without a submit button, by the way it update the column finely but unfortunately the column data is erased to **0** when a webpage is refreshed. … | |
HI all, I'm stuck in a code where i cannot read the database value in jsp textarea. Value stored in database like "address 1 address 2" and cannot be loaded on jsp page. Plz help. | |
The problem that im facing is, the below code is working correctly and retrieve the pdf format files correctly and displaying it in the iframe. but it is only working in eclipse internal browser but not in firefox or internet explorer. what will be the reason for this.... Source code: … | |
hi, The jsp page has multiple check boxes (retrieved from DB),.... [CODE] <input type="checkbox" name="selecttype" value="<%=rs2.getString("description") %>"/> [/CODE] I've read these values in to servlet page using [CODE] String[] selecttype=request.getParameterValues("selecttype"); [/CODE] the 'selecttype' now contains only selected checkbox values. but i want to retrieve values of unchecked checkboxes. Pls help … | |
Hello everyone, I am trying to show an animated spinwheel image when I am making a servlet call, and hiding it, once the call comes back in my JS method. The following code displays the image alright, but fails to hide it, once the call comes back. JSP <div id="spin" … | |
I want to build apps using play framework. I have looked on for [play framework for Java](https://www.eduonix.com/courses/Web-Development/learn-to-build-apps-using-play-framework?coupon_code=offer10) giving guide to build apps. If you are having some additional resources, pls share. | |
Hi, I want to translate text from one language(eg, malay) to other languages(eg, english) in java/jsp . How to do this. Help me please. urgent! Thanks | |
how i create notification system in jsp | |
Hi, I am developing a web application using JSP, servlet in ubuntu. I want to convert a JSP page into PDF. I dont want to store the PDF file in my local drive. Just convert into PDF and view Dynamically while i click a Button. ## For Example, ## In … | |
Hi, I have one CSS. .buttonSize { min-width : 58% } Actually, I have two buttons, with text "Hovers" & "Copy". My button without any css taking spaces which can wrap the text size. This way size of two buttons is not same. What I tried: a) I have hacked … | |
Hello. I have a challenge in editing a joomla component. In the below picture, I want to add another functionality but I cant access the component in the admin   Someone to help please | |
see why is is not working its not taking combo name why | |
I have been trying two save data into mysql database using hibernate but it have been giving me an error. Could someone give a solution to this. Following is the servlet code and hibernate configuration servlet package ac.ke.schoolsystem.controllers; import java.io.IOException; import java.util.ArrayList; import javax.servlet.RequestDispatcher; import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; … | |
Hi, I am creating a form in jsp. <form action="" method="post"> <input type="hidden" name="status_1" value="0" /> <input type="checkbox" id="status_1" name="status_1" value="1" /> <input type="hidden" name="status_2" value="0" /> <input type="checkbox" id="status_2" name="status_2" value="1" /> <input type="hidden" name="status_3" value="0" /> <input type="checkbox" id="status_3" name="status_3" value="1" /> <input type="submit" /> </form> I was … | |
Hey, I have one class Company and one Item class which is an object in Company class as shown: public abstract class Company { @Inject private ItemClass item; void companyMethod() { this.item.itemMethod(); } } public class ItemClass { public void itemMethod() { // logic } } So, many class inherits … | |
hi experts, [code=html]<a href="http://www.example.com"> goods </a>[/code] this is the hyperlink i have to used for example. i want to get the term 'goods' in the above hyperlink through jsp if i will click 'goods'. can i get the term in jsp like the below snippet?? [code]<% String goods=request.getParameter("goods"); %>[/code] or … | |
Hello All, I am currently working on developing an authentication system. Below are the details: This code inserts the details (username and password) to the database. the password is hashed and stored in the db package org.controller; import java.io.IOException; import java.io.PrintWriter; import static java.lang.System.out; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; … | |
i want to count the checkboxes i putted in my project when they get selected and they cant available again when they get stored in mysql plz rply me on shreyasmnt@gmail.com | |
Hi, I am writing a code to dynamically create a table and then add delete and modify records. The table is created from an existing database table. How ever the add and the deleting of records is not wrking. I think there is some error in the query statements. Please … | |
Hi this is giri i need ur help that is i am trying to select two drop down option in html and i want compare to options if those options are equal than it as two redirect to respective page ,will u please provide with a code . thank you | |
I have cretaed a JSP page that has 4 textboxes that need to be validated. 2 are text and 2 are integers. I have tried using the jQuery validation tool but that didn't work out so well. I will provide my JSP code and my script. Can someone help me … | |
I am trying to upload file from postantivirus1.jsp after selecting the file from postantivirus.jsp Here is the code Postantivirus.jsp Anti Virus Software : </td><td><input type=file name="fname"><br/> <input type=submit value="submit"></td><td><input type=submit value="clear"> Postantivirus1.jsp String s=request.getParameter("fname"); System.out.println(s+" s"); FileInputStream fis=new FileInputStream(s); System.out.println(fis+" fis"); String s1=application.getRealPath("/"); String destFolder = s1 + "images/"; s1= … | |
if user select on first select menu then it display a table if user select second select menu then it display paragraph both are show on same page so any one suggest me some jquery code . ![]() | |
im tring to display image from database with som text but i didn't get it but it shows only the data not showdata.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="java.sql.*" %> <%@ page import="java.io.*"%> <%@ page import="java.util.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta … |
The End.