628 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ArunRaj.SRM

Hi, I'm having my login page as: [code=jsp]<html><head><body> <form action="validateuser.jsp" method="POST"> username - <input type="text" name="userName"> password - <input type="password" name="passWord"> <input type="submit" value="Submit"> <input type="reset" value="Reset"> </form></body></html>[/code] And Validator Page as : [code=jsp]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.util.*" %> <jsp:useBean id="idHandler" class="com.suntec.tbms3.ui.Login" scope="request"> <jsp:setProperty name="idHandler" property="*"/> </jsp:useBean> <!DOCTYPE HTML …

Member Avatar for Vaishnav_1
0
13K
Member Avatar for hidash_in

the below code is to list the running exe files in the windows task manager. but i need only the running applications in windows task manager. if aybody knows pls help me by sending code for this. i am awaiting pls. import java.io.*; import java.util.*; public class GetProcess { public …

Member Avatar for Nirman_1
0
3K
Member Avatar for ArunRaj.SRM

Hi, I'm new to JSP. I want a sample code to call a java class on button click in jsp.

Member Avatar for maheen_1
0
3K
Member Avatar for Mohammed_44

//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 …

Member Avatar for network18
0
371
Member Avatar for tarun_6

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

Member Avatar for tarun_6
0
639
Member Avatar for archie.herbias

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 …

Member Avatar for angela_8
0
2K
Member Avatar for shad

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 …

Member Avatar for Dani
1
1K
Member Avatar for valatharv

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 …

Member Avatar for diafol
0
12K
Member Avatar for anand01

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 …

Member Avatar for Sushmitha_1
0
9K
Member Avatar for beanboy

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 …

Member Avatar for vk
0
4K
Member Avatar for SagarSe7en

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; …

Member Avatar for SagarSe7en
0
372
Member Avatar for Lalit Chattar

Hi I want to display text and image both on the same jsp page. but the code display only image, which is retrieve from database. can i display both on same jsp page. all data retrieve from database with image as blob. please help me..

Member Avatar for prabhu.cyberway
0
3K
Member Avatar for laguardian

Hello guys. I'm creating a web application on Netbeans. Under Source Packages, I've created: - DAO Factories for Customer, Inquiries, and Employee; -DB Connection to establish connectivity with a database I've created; -Entities which include Customer, Inquiries, and Employee; -Servlets containing Login, Reservations, EmployeeRegistration. I'm just wondering if my understanding …

Member Avatar for JamesCherrill
0
186
Member Avatar for daisyy

protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html"); PrintWriter pw = response.getWriter(); InputStream inputStream = null; // input stream of the upload file // obtains the upload file part in this multipart request Part filePart = request.getPart("audio"); if (filePart != null) { // prints out some information …

Member Avatar for jwenting
0
2K
Member Avatar for vasudha k

Can anyone help me out ?....... I have written a code for a form. the first five fileds in the form must be filled automatically by capturing the user id from login page. I have been able to capture the data and print it on the screen But, Iam not …

Member Avatar for jwenting
0
4K
Member Avatar for kaushik259106

Is it possible to get the current URL in my JSP page. Say i open a site "http://abc.com/page1.jsp" I want to display it in page1.jsp the total url as "http://abc.com/page1.jsp" If yes please tell me the step! Thanks in Advance

Member Avatar for Ranjit_1
0
15K
Member Avatar for usiyalla

Can any one send me the config setting for jdbc and mysql using apache server setting in netbean. i wanna use jsp with xampp and jdbc

Member Avatar for hemeneugene
0
811
Member Avatar for gopal_3

<html> <head> <meta name="GENERATOR" content="Namo WebEditor"> <title>Insert title here</title> <link rel="stylesheet" type="text/css" href="css/main_style.css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> </head> <body> <center> <tr> <th style='width: 3%;'> S.NO </th> <th style='width: 6%;'> Company ID </th> <th style='width: 10%;' > Company Name </th> <th style='width: 6%;' > More Company Details </th> <th style='width: 6%;'> User Details …

Member Avatar for stultuske
0
1K
Member Avatar for newcoder310

I have a `jsp` page where I enter a username and click on a submit button. On clicking this button, I post the username along with a hidden target page value to the other application. The other application does its processing and issues some cookies and redirects to the target …

Member Avatar for DaveAmour
0
161
Member Avatar for MrCapuchino

Hi I have a Select element in my page, It looks like this [CODE] <select name="test"> <option value="1">Hi</option> <option value="2">Hello</option> <option value="3">GoodBye</option> </select> [/CODE] Ok, don't mind the syntax or if I missed something, everything works fine, the problem is that I want to get the selected option value from …

Member Avatar for vinay.yash.3
0
6K
Member Avatar for servent123

Hi there , We know that we can use taglibs in JSP page. Is it possible to refer tlds and its tags from the servlets. Can we have control over the taglibs in the servlet programmatically ? I googled but invain. All the results are about creating custom taglibs. Any …

Member Avatar for servent123
0
335
Member Avatar for moaz.amin.37

hello!I install tomcat server and set CLASSPATH variable `servlet-api` and my servlets running properly but when i compile and run my old program program of `java 2 SE` then it compile successfully but not run it prints an error message G:\Java>javac BinarySearchDemo.java G:\Java>java BinarySearchDemo Error: Could not find or load …

Member Avatar for JamesCherrill
0
229
Member Avatar for kroken

Hi i didnt find anything about this here on the forum and i cant figure out how to do it myselfe either. i have a homepage runing java with servlets and jsp pages and i want a simple contactform that sends a message from the form to a specific mail. …

Member Avatar for harpreetfervaha
0
2K
Member Avatar for sciwizeh

I'm trying to list currently online users on a pet project I'm working on. I've found a few ways to do it, but I'm having difficutly getting the one I chose to work properly. The basic idea was to use an HttpSessionBindingListener on the users information to add it to …

Member Avatar for sciwizeh
0
196
Member Avatar for joshua_8

Hi I could get my session values in my jsp, now I want to compare the session value whether it matches the textbox, if it matches, it will redirect the user to another page else it will remain the same page, I am not sure how to proceed, please help …

Member Avatar for stultuske
0
143
Member Avatar for James_30

hello I am working with the daniwebjsptutorial the first one. I have a src and in it I have the resource.dir. I have the HttpServlet.jar there. I do not know how to get the LoginServlet class to find it using eclipse. Is there a standard entry point for the web …

Member Avatar for jwenting
0
138
Member Avatar for James_30

It has been about a year since I have even looked at code. I have written a few db desktop apps and I am beginning to learn the db web app. I am looking for advice. I had a hard time running apps I built in the netbeans environment as …

Member Avatar for James_30
0
140
Member Avatar for James_30

Who wrote the code for these "dumb"telepones and were is the fraking keyboard because this is not typing. Anyway I can not remeber the [/code] tags. I could not find the editor toolbar on this phone . Any help please.

Member Avatar for James_30
0
139
Member Avatar for ronaldpaul

Hi, I've done my bachelors in Computer Science and was working for the past 2 and a half years in PHP and MySQL. Now I'm planning to change my career path to IBM Websphere Administration. However, changing directly from PHP to Websphere seems quite impossible. So I've planned to take …

Member Avatar for jwenting
0
1K
Member Avatar for James_30

Hello. please excuse my ignorance It has been 1 year or so since I finished my 2 million line desktop app. An app with extensive use of every thing you can think of as far as multi tabbed desktop with multi profile login. properties. properties xml properties apache db, extensive …

Member Avatar for James_30
0
168

The End.