4,248 Topics

Member Avatar for
Member Avatar for vinnitro

This is my program for Biodata in applet using JFrame import javax.swing.*; import java.awt.*; public class Biodata extends JFrame { JLabel jlname,jladd,jlmobno,jldob,jlgender,jltab,jlhob,jllang; JTextField jtname,jtmobno; JTextArea jtadd; JComboBox jcd,jcm,jcy; JRadioButton jrm,jrf; ButtonGroup bg; JTable jtedu; JScrollPane jsp,jshob; JList jlhobby; JCheckBox jc1,jc2,jc3; JButton jb1,jb2; JPanel jpr,jpcombo,jpcheck; JFrame jf; Biodata() { jf=new JFrame("Biodata"); …

Member Avatar for vinnitro
0
1K
Member Avatar for asif49

On the jsp page; I have a logic:iterate tag which loops through data from an xml file and displays it within a drop down. How do i take and store the selected option from the drop down into the form-bean for processing.

Member Avatar for rrpandiarajan
0
1K
Member Avatar for anand01

Hi all, I have created web application, I have converted as .war ,now i need to deploy it in apache-tomcat-7.0.16, Have pasted that war file in apache-tomcat-7.0.16\webapps but I cant acces that file ,its shows resource not available(404 error ) Could some one help me thanks in advance

Member Avatar for anand01
0
111
Member Avatar for Ansraj

Please give me solution for this problem problem while connecting DB2 database with JSP in netbeans on Windows 7 ultimate 64bit platform...... Error code that is appear on the browser while running connectivity code is-> "Failure in loading native library db2jcct2, java.lang.UnsatisfiedLinkError: C:\Program Files\IBM\SQLLIB\BIN\db2jcct2.dll: Can't load AMD 64-bit .dll on …

Member Avatar for okule
0
171
Member Avatar for vinnitro

This is my program TimeCheck.java i am developing using NetBeans IDE 6.8 When i run it gives me following error: Class "TimeCheck" neither has a main method nor it is a servletspecified in web.xml I didnt find anything specifying Servlet to add so added it here. following is my TimeCheck.java …

Member Avatar for vinnitro
0
946
Member Avatar for fpsasm

Hello, I have a question regarding implementations of uploading a file from a browser to a server. I have currently two pages, page (1) is used to select the file. Using a form-submit section, the form is passed to page(2). Page (2) now gets a javabean, passing `request` to it. …

0
129
Member Avatar for karthikprs

Hi friends, I'm trying to do a online test software in which i would like to provide the user an option to calculate the answer in case of math questions. please give me ur valuable ideas. My reqt: On click of calculate(a button) the windows calculator should be invoked.

Member Avatar for peter_budo
0
62
Member Avatar for solomon_13000

I created an EJB project using Spring toolkit Suite. The JDK is version 7 and the JBOSS application server version 7. However I keep getting the following error message: 17:57:35,015 INFO [org.jboss.modules] JBoss Modules version 1.1.1.GA 17:57:35,140 INFO [org.jboss.msc] JBoss MSC version 1.0.2.GA 17:57:35,202 INFO [org.jboss.as] JBAS015899: JBoss AS 7.1.1.Final …

0
122
Member Avatar for softDeveloper

Hi, I'm submitting a html file in a form enctype=multipart/form-data file item to the server: at the server: <%@ page language="java" contentType="text/html; charset=utf-8"%><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> DiskFileUpload fu = new DiskFileUpload(); fu.setSizeMax(5000000); List fileItems = fu.parseRequest(request); Iterator itr = fileItems.iterator(); while(itr.hasNext()) { FileItem fi = (FileItem)itr.next(); if(!fi.isFormField()) { text=fi.getString(); } …

0
91
Member Avatar for shandow

hey guy, i found a problems during my project, i write a web apps in jsp html, i found that i can call a java function by succesfully. the scenario is like this : Below is my html code of button, i got two button here, 1 is submit button …

Member Avatar for sunnykeerthi
0
103
Member Avatar for jerin francis

hello i want to load one of my table column(employee_id) in to a combobox, and i also want to delete the raws correspondant to any selected item(employee_id) from that table.can u help me please..

Member Avatar for anand01
0
58
Member Avatar for mandible

Our application has a requirement to use a ShowModalDialog box functionality. We have just phased out IE6 and now can develop towards IE8 functionality. From what I can tell ShowModalDialog works still and that's lovely, but I believe it's deprecated and therefore doesn't support some of the newer functionality of …

0
113
Member Avatar for feoperro

Hi, I would like to have a Combobox where the selected item is the value set in the session attribute. For example: HTML: [CODE] <select name='myCombo'> <option value='--Select Table--'>--Select Table--</option> <option value='OPTION1'>OPTION1</option> <option value='OPTION2'>OPTION2</option> </select> [/CODE] Javascript: [CODE] document.getElementbyName('myCombo').selectedValue = session.getAttribute("choice"); [/CODE] Thanks, -Ashton.

Member Avatar for jerin francis
0
1K
Member Avatar for brood_snow

ArrayList<String> cs = CourseAssignments.getInstance().getStudentCoursesByName(sname); %> <table border="1" cellspacing="1" cellpadding="8" bgcolor= #EBDDE2> <% Iterator<String> i = cs.iterator(); while(i.hasNext()){ %> <tr> <td><%= i.next() %><input type= "radio" name= "courses" value="<%= i.next() %>"/></td> </tr> <%}%> </table> <center><input type= "submit" value= "Submit"></center> </form> <%} In ArrayList cs I have all the courses that a student …

Member Avatar for brood_snow
0
2K
Member Avatar for rithish
Member Avatar for hp51185

Hello I am trying to run a perl script on tomcat server. I am putting the incoming http request in a variable data which collects the headers as well as the text file attachment data. The code is like this : .... while(<>){ $data = $data . $_ ; } …

0
111
Member Avatar for lsvife

I created a website that will upload files to a webdav server I can now upload files to the webdav server and I am able to view it. below is my code <% boolean isMultiPart = FileUpload.isMultipartContent(request); DiskFileUpload upload = new DiskFileUpload(); List items = upload.parseRequest(request); String baseUrl = "http://localhost:8084/webdavserver"; …

0
117
Member Avatar for aarushik

i want to link my thumbnail image to an slider i have made in jquery and html http://www.jeppiaarcollege.org/jeppiaar/Gallery/photogallery.html something like this i want to create in my website i m new to it please help. i have created the slider in html page now i want to put some thumbnail …

Member Avatar for hardik.rajani
0
95
Member Avatar for mrabrar09

Hi to everyone. I have created jsp report in that date column is there where am showing the date format like this (02-01-2012) <% String Rcheckdate=""; SimpleDateFormat df = new SimpleDateFormat("dd-MM-yyyy"); Rcheckdate=df.format(rs.getDate("tr_dt")); %> <td align='center'><%=Rcheckdate%></td> In report i have given the excel button from there am exporting the data to …

Member Avatar for mrabrar09
0
311
Member Avatar for mrabrar09

Why my javascript menu is structing after 5 minutes (measn the drop down menu is not coming ). For that i need to referesh the whole page that page is in jsp. Can anyone help me to overcome from this problem. below is the sample code <td WIDTH=150 onmouseover="awgMnBSpmc('awgMnBSpma0',1);awgMnBSpmd('awgMnBSpm11','awgMnBSpma0');" onmouseout="awgMnBSpmc('awgMnBSpma0',0);awgMnBSpme('awgMnBSpm11');" …

Member Avatar for dany12
0
120
Member Avatar for dart.suresh

my client using apache tomcat server in this server form post method not working but instead am using get method its working what the configuration am missing in web xml?

Member Avatar for dart.suresh
0
369
Member Avatar for rajeshgoblet

hello i am working on a c,c++,java tutorial website, & i want to insert lots of source code example in it. I am doing this using <span> & CSS classes. I have seen some online code highlighter. i want to make one for my site. And is there any other …

Member Avatar for Dani
0
116
Member Avatar for webmania_bt

Dear all, I am about to implement a user feedback page, by using the smtp server of my university. When I try to send a form, an error message is received as below: [COLOR="Red"]Could not connect to SMTP host: smtp-auth.bris.ac.uk, port: 587[/COLOR] I tested with telnet this smtp address, along …

Member Avatar for kinthada
0
880
Member Avatar for GlenRogers

Ok, I have a website built for a friend(simple/static). I want to add an amdin panel for him, so he can log in, put pictures into the gallery, change or update his stocklist and change or update his news section with special offer etc (he owns a reptile shop). I …

Member Avatar for stultuske
0
125
Member Avatar for jamojo

Hello Everyone, I am looking for an example on how to upload files in Java only. What I saw recently it requires JSP also. But I only wish to use Java only. Here is an example on what I used, but it seems does not work. Can you please provide …

Member Avatar for NormR1
0
912
Member Avatar for GlenRogers

Ok, I have a websie built for a friend(simple/static). I want to add an amdin panel for him, so he can log in, put pictures into the gallery, change or update his stocklist and change or update his news section with special offer etc (he owns a reptile shop). I …

Member Avatar for GlenRogers
0
121
Member Avatar for raviaaaa

While lunching the application in TOMCAT 5.5 and JDK 1.5 I am getting below exception could some help me in resolving the issue Jul 25, 2012 4:12:50 AM org.apache.catalina.core.ApplicationDispatcher invoke SEVERE: Servlet.service() for servlet jsp threw exception java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZ)V at org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) at org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:401) at org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:248) at org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:162) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418) at …

Member Avatar for majestic0110
0
355
Member Avatar for Se7Olutionyg

I am trying to run the code that was run on Jboss already from the command line. Now i want to make it as a Tomcat project running from the IDE. Don't know how to deploy the WAR file and EAR file to get it run.. .. To code compile …

Member Avatar for SagarSe7en
0
194
Member Avatar for digda

Hello i am currently picking up jsp to extend my knowledge of web languages. I am currently trying to connect to a database but i keep getting a weird error on the index page where i verify conditions for the authentication.jsp page. Parts of Code Below: index.jsp <div id="sidebar"> <% …

Member Avatar for SagarSe7en
0
256
Member Avatar for prnjn

Hi . i am a final year computer science engineering student , Recently i have learned Java Servlets , JSP and Struts 2 framework . I am looking for help regarding my major project . I am in dark what (which application) i should develop for my major project using …

Member Avatar for SagarSe7en
0
274
Member Avatar for bipi09

i have this code in main.jsp <html> <head> <link rel="stylesheet" href="/bipi/css/bp.css" type="text/css" media="screen"/> </head> <body> <div class="navigator"> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Add</a> <a href="/bipi/display.jsp">Delete</a> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Main</a> </div> <%--<% String fname = request.getParameter("f_name"); String fage = request.getParameter("f_age"); if (fname != null && fage != null ) { com.test.gerrard.Insert(fname, fage); } %>--%> <form …

Member Avatar for SagarSe7en
0
3K
Member Avatar for SagarSe7en

Hello Users, I have been learning the Prepared Statements in Java which is a newer and better way of entering details into the Database. Have been getting problems with the insertion: NullPointerException and still don't know where I am going wrong. Please Assist me in Solving the Issue. Code Below: …

Member Avatar for SagarSe7en
0
389
Member Avatar for ganges

employee_list.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML> <HEAD><TITLE>Employee List</TITLE></HEAD> <BODY> <%@ page import="java.sql.*" %> <%@ page import="java.lang.ClassNotFoundException" %> <% Statement st = null; ResultSet rs = null; Connection conn = null; try { Class.forName("com.mysql.jdbc.Driver"); conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/"+"Hibernate MySQL","root","root"); st = conn.createStatement(); …

Member Avatar for peter_budo
-1
2K
Member Avatar for bipi09
Member Avatar for SagarSe7en

Hello Friends. It has been a long time since i posted my codes in the DaniWeb Forum. I have a problem which is really preventing me from moving ahead in the Project. My project requires me to develop a small quiz application with a registration functionality. The registration functionality requires …

Member Avatar for SagarSe7en
0
2K
Member Avatar for nixeria

Hello! I want the java code for login+registration form using swing along with mysql connectivity. i do not want jsp or java script coding. just simple java code. please revert as soon as possible!

0
55
Member Avatar for Erdem.

i use <c:forEach like this <% ArrayList<Categorie> categories = new CategorieDao().getAll(); request.setAttribute("categories", categories); %> <c:forEach items="${categories}" var="categorie"> <a href="film.jsp?id=${categorie.id}> ${categorie.ad}</a> </c:forEach> but how can i use this categorie's attribute in java tag like this <cc <c:forEach items="${categories}" var="categorie"> <a href="film.jsp?id=${categorie.id}> ${categorie.ad}</a> <% int count= new CategorieDao.getSome(***categorie.id***); %> </c:forEach>

0
61
Member Avatar for Liz Cherian

Hi, I have this customised framework in which the welcome page gives a call to the servlet which further gives the resp. jsp that needs to be displayed. Can somebody suggest how can i do this. Thanks.

Member Avatar for stultuske
0
42
Member Avatar for fularipk

hello, I created project using jsp pages in netbeans.And we are running index page file by starting netbeans.But it should be handled by end user easily like by shorcut on desktop(icon).so in which format it should be given to end user.Means when we are creating project in java then that …

Member Avatar for stultuske
0
146
Member Avatar for shankaraa
Member Avatar for stultuske
0
121
Member Avatar for anand01

Hi I am new to hibernate when run the following code it shows mapping exception how can correct couuld any one guide me may main class UserDetails userDetails = new UserDetails(); userDetails.setUserId(1); userDetails.setUserName("Anand"); SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); Session session = sessionFactory.openSession(); session.beginTransaction(); session.save(userDetails); session.getTransaction().commit(); My hibernate.cfg.xml file <session-factory> <property …

Member Avatar for anand01
0
106
Member Avatar for Arturo32

Hi everyone, Im new to web programming and i need some help, I have something like this: <td><label>User (Login): </label></td> <td><input class="textbox" autofocus="true" type="text" maxLength="7" name="cUser" id="cUser" /></td> </tr><tr></tr> <td><label>First Name: </label></td> <td><input class="textbox" type="text" maxLength="20" name="cFname" id='cFname' value=""/></td> </tr><tr></tr><tr> <td><label>Last Name: </label></td> <td><input class="textbox" type="text" maxLength="30" name="cLName" id="cLName" /></td> …

Member Avatar for firdaus_lazim
0
770
Member Avatar for mydreamgirl

I installed Apache Tomcat 7.0.28 in my JBuilder6. I use JDK 1.6.0_32 (jre6). I can get http://localhost:8080/ page. However, when I tried to run my JSP file, I encountered following error: FileUpload.jsp: java.lang.NoClassDefFoundError: org/apache/tools/ant/Task FileUpload.jsp: Caused by java.lang.NoClassDefFoundError: org.apache.tools.ant.Task ...12 more Could not find the main class: org.apache.jasper.jspC. Program will …

Member Avatar for firdaus_lazim
0
397
Member Avatar for bipi09

i have this code in main.jsp <html> <head> <link rel="stylesheet" href="/bipi/css/bp.css" type="text/css" media="screen"/> </head> <body> <div class="navigator"> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Add</a> <a href="/bipi/display.jsp">Delete</a> <a id="currenttab" href="/WEB-INF/jsp/main.jsp">Main</a> </div> <%--<% String fname = request.getParameter("f_name"); String fage = request.getParameter("f_age"); if (fname != null && fage != null ) { com.test.gerrard.Insert(fname, fage); } %>--%> <form …

Member Avatar for anand01
0
985
Member Avatar for sasikrishnasamy

hi, I am having doubt in peter_budo 's Mvc tutorial, in datbase design he has separate table for group mapping, Even we can add seperate feild (like group) in user table itself to acheive the same result, Is there any advantage in seperate that, Pls some one guide me. Sorry …

Member Avatar for pritaeas
0
162
Member Avatar for Raghu D

hi ! Actually the operation is as follows.when the user clicks the"search" button in t he jsp, the datas from mysql is sent to jsp page.If the user likes to print the datas,he has to click "print" button.Then the datas in the jsp page has to be sent to the …

Member Avatar for Ramkeeys
0
252
Member Avatar for staneja

I am very new to JSP language and i ahve worked a lot on JAVAlanguage and i have configured my Tomcat Server also and its running fire I would like to know about the steps that i am required to follow to Execute my JSP File. 1.Please tell me in …

Member Avatar for Gayanmdh
-4
4K
Member Avatar for rpjanaka

hi all. I have a form in [COLOR=darkred]page1.jsp[/COLOR]. the action for that form submit is in [COLOR=sandybrown]page2.jsp[/COLOR] so I want to just come back to the [COLOR=darkred]page1.jsp[/COLOR] after processing the request.(reload the first page again) so in [COLOR=orange]page2.jsp[/COLOR], how can i redirect the display page to the [COLOR=darkred]page1.jsp[/COLOR] here I …

Member Avatar for Ice515
0
2K
Member Avatar for treasureireland

Hi, I am trying to display certain content to certain mobile devices, specifically displaying alternative content to iphone's as they cant play flash. I am currently using the detectmobilebrowsers.com JSP code, to redirect my site from the full version to the mobile site, the code is as follows: <% String …

0
105
Member Avatar for daravindm

hi, i need a jsp code fordisplying a second form(form2) when i click a submit button. plz help me.

Member Avatar for rajesh1158
0
77

The End.