4,248 Topics

Member Avatar for
Member Avatar for chintan_shah09

Hi, I have this scenario and I want to accomplish it using Servlet. I need to build an in-memory Dynmic HTML and pass it on as an InputStream to itext API to convert that XHTML to PDF. Data to be inserted in that in-memory HTML tags will come from a …

0
46
Member Avatar for osirion666

Okay Basically i want to put the contents of array called numbers into a MSSQL database i can connect to it no problem and select and display data so its not a connectivity issue here is what i have so far: [CODE] for (int i = 0; i < numbers.length; …

Member Avatar for javaAddict
0
456
Member Avatar for azrasiddiqui
Member Avatar for fredw300

Hello all, I need to develop a simple web application in java that will take MS excel files as input and generate output in excel format as well. Since I am not very experienced in java I am not sure what framework should I be using. Do I need to …

Member Avatar for peter_budo
0
160
Member Avatar for madhu ms

Hi.. i need to learn how to send the username and password to the database and when the user logs in it should retrieve the password from the database and authenticate if the username and password is correct. Am using this jsp code and getting error in (Resultset line) [U]here …

Member Avatar for javaAddict
0
3K
Member Avatar for Bonface4

Hi guys? I have been programming in Java using J2SE. currently am working on J2EE enterprise application development using JavaServer Faces Technology.Since am new to JavaServer Faces have decided to start by a simple login applications.Developing the interface is not a big problem but getting the parameters from the inputText …

0
51
Member Avatar for darangho

Hi everyone, I am trying to write a code that receives an input from textarea, transfer that input to servlet and send an email with that input using javamail API. It seems that the codes work fine with english characters, but it doesn't work with non-english characters (i am using …

0
61
Member Avatar for panditavinod1

hi i am using a jsp i am having two text fields for entering dates , i am using mysql and i am storing the values of two textboxes in two date fields the format of which is yyyymmdd i want to enter date in ddmmyyyy and change it to …

0
41
Member Avatar for pandeyprashant

Hello everyone, i m trying to take input from jsp page and save this to database. every field is working fine but some problem in date format. its showing some errors. please help me.

Member Avatar for panditavinod1
0
65
Member Avatar for fredw300

Hi, I am developing a web application using JSP/Servlet. I have a form in .jsp to upload excel file which is then processed (by servlet) and an excel ouput is generated. I need to validate input file to see if a certain cell in the workbook has some value as …

0
80
Member Avatar for lse123

NETBEANS: I get none ouput - can you detect? I have a question about server side Ajax (Java) I think serverside error is, Can you find the bug in <div> I do NOT get sample xml data[bookrss.xml]... RSS Client/Server? I get xhrequest.readyState == 4 && xhrequest.status == 200 ... 4 …

Member Avatar for hielo
0
205
Member Avatar for DeadSoul

i have made this code which displays all the values in JTable can any one help me out how to get report of those data.this code is just the module of my library project .Now i want to generate a report for it . [CODE] import java.awt.*; import java.awt.event.*; import …

Member Avatar for Ezzaral
0
103
Member Avatar for yog2mis

Hi All I want to develope a jsp page which skip Jasper server login page and forward at jasper home page without login. i also dont want to sho my URL in brouser. both Jasper and my jsp contain in apache webapps folder.i did it by [CODE]<jsp:forward page="/jasperserver/login.html"> <jsp:param name="j_username" …

0
53
Member Avatar for anandhikrishnan

Hi all, I have two radio button yes,no in a.jsp. var IncludeCharges = document.getElementById("IncludeCharges_no").value; If i select yes i need to pass 1 to the java file and in case of no i need to pass 0. but when i retrive the radio button value using int Includecharges = Integer.parseInt(request.getParameter("IncludeCharges_yes"); …

Member Avatar for hielo
0
180
Member Avatar for himmat.m4

Hi, I have created .js file it is using in jsp page. All methods of .js file work properly but here problem is when I want to execute any method of .js file on body onload event then this method no working. So tell how can execute this method on …

0
72
Member Avatar for nikita.chandra

hi all will it affect my applications speed if i'll set more than 10 attribute in the session thanks in advance!

Member Avatar for Stefano Mtangoo
0
73
Member Avatar for madhub2v

Hello Friends. I want to install Tomcat and struts into my system. I hava downloaded apache-tomcat-7.0.2 , unpacked it. i dont know how to install it. I did as instucted in the RUNNING.txt. But i am unable to run Tomcat server. Please help me..

Member Avatar for peter_budo
0
101
Member Avatar for mishra pradeep
Member Avatar for pin2jay

how to forward the item selected in the combo box instead of the value, to a jsp page.

0
54
Member Avatar for prasannakumarp

hi, iam developing sample exam application. i want to get one by one record when i click next button. plz... give reply to this.

0
47
Member Avatar for alex8206

Hi, Im trying to create three pages for Inserting, deleting or viewing database contents. On my main or home page the database contents are shown. I want to create a "Delete" hyperlink in the last column of every row so that the specific record is deleted on clicking that. I …

Member Avatar for alex8206
0
1K
Member Avatar for yatheeswary

hi friends please tell me anlog with code how to upload the excel file

0
45
Member Avatar for sonu33

[B]Html1 code:[/B] [code=html]<html> <HEAD> <title> Employee Login Page</title> <BODY> <H1> EMPLOYEE LOGIN PAGE </H1> Enter User name: <input type=text > Enter password: <input type =password> Enter Employee id: <input type=text > <form method="Post" action="http://localhost:8080/sonu1/ServletOne"> <input type=submit value=Login!> </form> </body> </html>[/code] [B]ServletOne.java code:[/B] [code=java]import java.sql.*; import java.io.IOException; import javax.servlet.*; import javax.servlet.http.HttpServlet; …

Member Avatar for sonu33
0
3K
Member Avatar for calender24365

[code]<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@ page import="java.sql.*;" %> <%@ page import="java.io.*;" %>> <%Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");%> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Database Page</title> </head> <body background="AC.jpg"> <a href="home.jsp"><font color="white"size="3"><b>Back to Home</b></font></a> <% try { String a=request.getParameter("Book_Id"); String b=request.getParameter("Book Name"); String c=request.getParameter("Author name"); String d=request.getParameter("Publisher name"); String e=request.getParameter("Department"); String f=request.getParameter("Edition"); String g=request.getParameter("no_of_copy"); Connection …

Member Avatar for peter_budo
0
118
Member Avatar for raul8

In the cose below I am fetching & displaying result set in a table format. This table also contains 2 buttons Udate & Delete. Following are the issues: 1. When user clicks update, I want to send E_ID to Update.jsp. I want to know, how to send Only E_ID without …

Member Avatar for calender24365
0
1K
Member Avatar for rahulrulez

Hey guys. I'm developing the Online Shop using JSP and MYSQL database. I've to create one module, basically a "Shopping Basket" which will hold the information about items that to be purchased. Suppose I buy one product from Item list, that should go in item inventory. If I click "Buy" …

0
64
Member Avatar for srikanthdon

i want to control print setting throught jsp or javascript set landscape when clicking on print button directlly plz any support appreciated!

0
42
Member Avatar for srikanthdon

hi every body i have problem when working on IE8 readonly fields geting cursor bling is any body help to solve

0
49
Member Avatar for rahulrulez

Hey guys.. I'm working on one project which is in directory - [QUOTE]C:\Tomcat 6\webapps\ROOT\cart[/QUOTE] This is the code in file called shop.jsp [CODE] <%@ page language = "java" contentType = "text/html" import = "ShoppingBasket, Product, java.sql.*" errorPage = "errorpage.jsp" %> <html> <head> <title>Welcome to Shop</title></head> <body> <table width = "385" …

Member Avatar for nohup
0
2K
Member Avatar for Watashi

I can show the values in a database, with a checkbox, but can't retrieve rows I checked When I submit, the only response that I get is the first row, event that I have checked everyone Here my code <table border="1" align="center" valign="center"> <c:forEach var="row" items="${parcelas.rows}"> <form> <td> <input type="checkbox" …

Member Avatar for nohup
0
130
Member Avatar for madhub2v

Hello Friends, I Know Java, Sevlet, JSP JDBC Technologies very well. now i want to learn Struts,Hibernate, Spring my self. Please suggenst me any online resource or book for me that gives good explanation with sample applications. so that i can learn and devolop projects myself . thanks.

Member Avatar for peter_budo
0
105
Member Avatar for Abdel_eid

hey guys , i'am just new to java EE , well i am pretty good at java SE , so please i want to know where i can start learning jsp and servlets and if there were books that is pretty simple to understand as i mentioned that i am …

Member Avatar for madhub2v
0
145
Member Avatar for Sidharth Agarwa

I am using eXist-db for storing xml documents for my website, build on JSP. I have to provide a upload box, in my website, so that any outsider can upload the xml document and that will get stored in the eXist db. I know how to register eXist db inside …

0
72
Member Avatar for sharma.raj411

hi every1 i m able to print the first record of the database on the page. but i m not able to go to next record which i want to show on click of a button. i dont want to use while(rs.next) as i dont want to show all the …

0
75
Member Avatar for nitin_gyan

Hi all, I saved my connector/j jar file into this location C:\ ... \Java\jre6\lib\ext as well as in $CATALINA_HOME/common/lib and i am using this code in the JSP : Class.forName("com.mysql.jdbc.Driver").newInstance(); I am getting below driver error message. Somebody please help me out. javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver My jar file name is …

Member Avatar for peter_budo
0
146
Member Avatar for nikita.chandra

here is the java script where i used window.close() function but it's not working. <script language="javascript"> var answer = confirm("Session expired! Want to go to the home page?") if (answer){ window.location = "index.jsp" } else{ window.close(); }

Member Avatar for Taywin
0
101
Member Avatar for nitin_gyan

Hi all, I saved my connector/j rar file into this location C:\ ... \Java\jre6\lib\ext and i am using this code in the JSP : Class.forName("com.mysql.jdbc.Driver").newInstance(); I am getting below driver error message. Somebody please help me out. javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

Member Avatar for nitin_gyan
0
189
Member Avatar for tactfulsaint

this error was displayed after i package and deployed my jsp file. i dont know any help? [CODE] HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compile class for JSP …

Member Avatar for ranu26
0
146
Member Avatar for Dean_Grobler

Hi guys, I have this assignment to do: Synchronize access to the instance variable, accBalance. Because accBalance is a double and not an object, it cannot be used as the monitor. Use synchronized methods or synchronized blocks of code, as appropriate. Simultaniously test two threads. Because the threads can complete …

Member Avatar for Dean_Grobler
0
149
Member Avatar for nikita.chandra

hi all ! In my web application for bus ticket booking i want to use session. Here i m describing the flow of my application briefly------------ (1) My first jsp page is index.jsp and after submiting this page it will go to servlet SenndBusInfo.java for processing. Here i am creating …

Member Avatar for nikita.chandra
0
161
Member Avatar for nikita.chandra
Member Avatar for patilsunil47
Member Avatar for himmat.m4

Hi, I m working in jsp project in which I have problem is, Whenever click on different images then some values entered in input text and here I want to when I clicked again any some image that particular value removed from input text. Thank's in advance

Member Avatar for peter_budo
0
105
Member Avatar for nikita.chandra

hi.. Is it ok to add more than 10 attributed on session object or it will slow down my application?

0
43
Member Avatar for rabihkahaleh

hello team, i have a problem with accessing previous url in jsp. let suppose i am at page1,and a link in pagr1 will redirect to page2, i have to access the previous url which is in that case page1. any help thanks in advance.

Member Avatar for rabihkahaleh
0
28
Member Avatar for ambikanair

HI, I am currently working on a project to develop a webpage using jsp. I need to include some css properties in the jsp file. But it doesnt work even though I am not getting any errors. My jsp code is [CODE] <% String captcha = (String) session.getAttribute("captcha"); String code …

Member Avatar for peter_budo
0
153
Member Avatar for alex.antony.a

[CODE] FileInputStream fs = new FileInputStream("/opt/Abhishek/software/tomcat/webapps/AMS/listpass"); DataInputStream in1 = new DataInputStream(fs); while (in1.available() !=0) { String str1=in1.readLine(); StringTokenizer st1 = new StringTokenizer(str1); String node=st1.nextToken(); if (node.equals(sports[i])) { String pass=st1.nextToken(); out.println ("<b>"+sports[i]+" <b>"); out.println("**Your Required Password**"); out.println(pass); out.println("<br></br>"); [/CODE] Hi , I have a text file (named listpass in the above …

Member Avatar for peter_budo
0
177
Member Avatar for tuse

Hi, I just installed Tomcat 5.5 and could see the default index page (with images missing) Upon running the sample JSPs, I get the following- HTTP Status 404 - Servlet default is not available In the logs, I can see a Root Cause saying something like- "java.lang.NoClassDefFoundError: org/apache/naming/resources/Resource" Basically, I …

Member Avatar for peter_budo
0
152
Member Avatar for gopal krishna

my friend:my name is gopal krishan..me and my friend doing project on j2ee.here we are using netbeans as a frontend,mysql as a backend and tomcat server.tell me from scratch how to use netbeans and mysql.

Member Avatar for svilla
-1
59
Member Avatar for nmakkena

Hi I am very new to jsp. i have an XML file stored in a txt file. I am reading that XML file using Java and placing XML content into text area in a jsp page. my requirement is, when i read the XML file into jsp page text area, …

0
67

The End.