3,760 Topics

Member Avatar for
Member Avatar for rahulrulez

Hey guys.. I'm just getting started with JSP, Servlet and SQL. My teacher has given me project on Shopping Cart using language JSP, Servlet and Database will be SQL. Since I'm very much starter in JSP, I don't know from where to start. So I thought of creating a thread …

Member Avatar for peter_budo
0
86
Member Avatar for mayank.dyl

Can any one please tell me exactly what is the process of creating a website using J2EE and concept of domain and web hosting....as it is a lot confusing and also i wants create a website of my own as college project.....help me out...thanx a lot..!!

Member Avatar for peter_budo
0
92
Member Avatar for johndoe444

I wrote this basic web app using jsf. My templates were jsp not jsf. And in the faces-config.xml and everywhere else I used jsp and nowhere I used jsf. But surprisingly it (the servlet container) is being able to correctly locate the thing (jsf files) it is looking for. How …

0
82
Member Avatar for pmbfriends

HI guys !! I am new to jsp so pls do help me in solving this .. I am getting error at the highlighted part as: Syntax error,insert ": Expression" to complete Expression [code]<% ---- --- ----- UrlGen urlg = new UrlGen(request.getQueryString(), "UTF-8"); String url = "Contacts.jsp"+"?"+urlg; %> <a href="[B]<%=url%>[/B]"><img …

Member Avatar for pmbfriends
0
3K
Member Avatar for Sam_john_2010

How to check text validations to form data entered by user? Can any one write a code to do this in javascript?

Member Avatar for javaAddict
0
76
Member Avatar for newjspuser

Hi all, I'm very2 new to JSP, I've give a task to make a search and pagination function for my project.... but look like it to tough for me.... here is my code... can anyone help me?? <%-- Document : index Created on : Jul 21, 2010, 11:40:54 AM Author …

0
59
Member Avatar for johndoe444

hi, In this example: [CODE]public void init() throws ServletException { bookDB = (BookDBAO) getServletContext() .getAttribute("bookDB"); if (bookDB == null) { throw new UnavailableException("Couldn't get database."); } }[/CODE] As it is not instantiating the BookDBAO instance and the connection with entity manager is done in the constructor: [CODE] public class BookDBAO …

Member Avatar for johndoe444
0
97
Member Avatar for johndoe444

I just used: ant ant deploy and it gave me following error: [code=text] deploy: [echo] localhost [echo] 8080 [echo] order [echo] C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\bp-project\ma in.xml/../../../../../../bin/asadmin.bat [echo] order [echo] SQL92 [exec] Deprecated syntax, instead use: [exec] asadmin --port 4848 --host localhost deploy [options] ... [exec] com.sun.enterprise.admin.cli.CommandException: remote failure: Excep tion while loading the …

Member Avatar for ~s.o.s~
0
311
Member Avatar for johndoe444

Hi, I tried to deploy the books example. But in the deploy descriptor it says: [CODE]<web-app xmlns="http://java.sun.com/xml/ns/javaee" version="2.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"> <display-name>books</display-name> <listener> <listener-class>com.sun.books.listeners.ContextListener</listener-class> </listener> <servlet> <display-name>books</display-name> <servlet-name>books</servlet-name> <jsp-file>/books.jspx</jsp-file> </servlet> <jsp-config> <jsp-property-group> <display-name>books</display-name> <url-pattern>*.jspx</url-pattern> <el-ignored>false</el-ignored> <scripting-invalid>false</scripting-invalid> <is-xml>true</is-xml> </jsp-property-group> </jsp-config> </web-app>[/CODE] The only jspx file is books.jspx. After the application is …

0
72
Member Avatar for rishabh_pesit

Hey hi all, I am new to jsp,servlets .. i am doing a small project on employee database management. In this I have a form which has various fields. And also buttons for add,delete,update,next and previous. Now what I want is I click on previous it should retreive values from …

Member Avatar for javaAddict
0
113
Member Avatar for chandini123

[B]Why is a null displayed in the first row?[/B]:-/ I want the first row to display the text value given in the textfield(actually i am getting the text value from database) Any help??[code]<html> <head> </head> <body> <form name="form1"> <input type="text" name="txtname"> <input type="submit" value="Click here" name="Click" onclick="fun(this.form)"/> </form> <script> function …

Member Avatar for javaAddict
0
118
Member Avatar for bgg

can anybody suggest me abt the issues 2 b considered while implementing online examination system for college level... i m planning 2 use jsp and mysql..... any suggestion regarding technology 2 used vl b helpful 2 me..... waiting 4 ur ans..

-2
182
Member Avatar for KilluaX

Hi, all Can anybody tell me how to get the current date in a java program? And, I want to insert the date into a database with a date/time format, is there any difference from insert a string? thanks for reply

Member Avatar for sangeetha.cse
0
362
Member Avatar for johndoe444

Hi, I was trying to j2ee web service example helloservice. When I was building the simpleclient I got the error: [CODE]wsimport-client-generate-nosecure: wsimport-client-generate-nojvmargs: [echo] C:\glassfishv3\glassfish\docs\javaee-tutorial\examples\bp-project\ma in.xml/../../../../../../glassfish/lib/endorsed [echo] helloservice.endpoint [echo] build/generated/wsimport/client [echo] build/jar [echo] http://localhost:8080/helloservice/HelloService?WSDL [wsimport] Consider using <depends>/<produces> so that wsimport won't do unnece ssary compilation [wsimport] JDK's tools.jar was not …

Member Avatar for peter_budo
0
212
Member Avatar for Cabrakan

Hi, look I've been with a very frustating problem for like 2 or 3 days now, I have advanced but think I've gotten to point where cannot go any further I need some help and the sdn (business objects) forum regarding this topic simply suck, there's only one guy answering …

Member Avatar for musthafa.aj
0
431
Member Avatar for johnnyturbo3

Hi, I just want to get the opinions of JSP developers on what they think the future of the platform holds. I'm currently a university student and I have gained a lot of experience in Java, and some in JSP. I'm looking now to concentrate on a single web language …

Member Avatar for GujuNilesh
0
763
Member Avatar for shella

Hi all, i'm newbie with jsp and i'm trying to connect with mysql through a select with a variable passed from an another page... The code i have is what follows: [code] <% // Prendo la variabile dal form String username=request.getParameter("username"); String sql="SELECT * FROM cmascella_users WHERE username = " …

Member Avatar for sawedd
0
152
Member Avatar for beluga

Hello, I am little stuck with . It is not populating the errors for me, rather it is loading the page without . Attaching my code: [CODE]<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "struts-config_1_2.dtd"> <struts-config> <display-name>CSV File Upload</display-name> <description>CSV File Upload</description> <form-beans> <form-bean name="FileUploadForm" type="example.struts.FileUploadForm"> …

Member Avatar for java_programmer
0
136
Member Avatar for nihan1

[code=java]package cookie; import javax.servlet.http.Cookie; public @interface getNextCookieValue { cookie = new Cookie("mycookie",""+getNextCookieValue());) }[/code] please help me I don't know how can I create annotation of the structure in java servlets. The code gives an error as: Multiple markers at this line - Syntax error on token "cookie", VariableDeclaratorId expected after …

Member Avatar for NormR1
0
80
Member Avatar for R.DanielRaj
Member Avatar for peter_budo
0
489
Member Avatar for karuppas

Online examination system I need Entrance Exam Registration system through online using jsp. Please need for help to me. thank you

Member Avatar for peter_budo
0
69
Member Avatar for raul8

In the code below, the updates are performing successfully, but the page is not redirecting Please Check: [CODE] out.println("<html>"); out.println("<head>"); out.println("<script>"); out.println("function redirect()"); out.println("{"); out.println("window.location='EmpForm.jsp'"); out.println("}"); out.println("</script>"); out.println("</head>"); Class.forName("org.gjt.mm.mysql.Driver"); con = DriverManager.getConnection("jdbc:mysql://192.168.101.98:5501/TestNJ", "testnj","testnj"); st=con.createStatement(); query="UPDATE emp1 SET E_Name='"+EName+"',E_Address='"+Add+"',E_Dept='"+Dept+"' WHERE E_ID='"+EID+"'"; st.executeUpdate(query); out.println("<body onload='redirect()'>"); out.println("</body></html>");[/CODE]

0
69
Member Avatar for coroll

Hi, i want to call another jsp from a jsp.lets say one.jsp and two.jsp. So one.jsp has a form. two .jsp need to get that values from one.jsp. Can 'request.getparameter()' be used in two.jsp to get the parameters sent by the one.jsp.please can any one help me? this is my …

Member Avatar for javaAddict
0
6K
Member Avatar for jet101

Hi everyone... Im having problems running my servlet using netbeans 6.8, It's just a simple Hello World application but I always encountered error "java.lang.NullPointerException", not sure why since the Hello World apps is already available in netbeans when you add a servlet. I dont have problems deploying my web-apps in …

Member Avatar for jet101
0
162
Member Avatar for vinithktp

Hi All, I cannot export big numbers to excel. I am using POI jar files for jsp to excel export. Here i am pasting my source code. [CODE]<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Export to Excel</title> </head> <body> <table cellpadding="3" cellspacing="3" border="1"> <tr> <th>9 Digits</th> <th>18 Digits</th> <th>27 Digits</th> </tr> …

Member Avatar for vinithktp
0
1K
Member Avatar for Eric Cute

can anyone help me with my problem.. im basically creating a jsp page with two parts. First is the menu which is located on the left side and then the full page on the right. im using tables and not frameset. table have frame="rhs" for a vertical line to seperate …

0
91
Member Avatar for mith_cool

I have designed a jsp which has the following code : [CODE] <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Form Cookie</title> </head> <body> <form action="http://localhost:8080/FormCookie/AddValue"> Name : <input type="text" name="name"><br> Age : <input type="text" name="age"> <input type="submit" value="submit"> </form> </body> …

Member Avatar for mith_cool
0
90
Member Avatar for surabhi.awh

hai iam new to jsp.i want to uplad an image to my website .my code is given below. Pls anyone help me ........... thanks in advance [code=java]import com.mysql.jdbc.Connection; import com.mysql.jdbc.Statement; import java.io.*; import java.sql.DriverManager; import java.util.Iterator; import java.util.List; import java.util.Random; import java.util.regex.Matcher; import java.util.regex.Pattern; import javax.servlet.*; import javax.servlet.http.*; import org.apache.commons.fileupload.*; …

Member Avatar for jaka.ramdani
0
162
Member Avatar for Member 784740

Hey, I want to send parameters via submitted form, and then to reload my jsp page: Should I use onclick command or on submit action to transfer parameters using GET method? My code: [CODE] <body> <form action="ShowPatientList.do" id="patientListForm" name="patientListForm" method = "GET"> <p>ImiÄ™ <input id ="imie" name = "Imie" value …

Member Avatar for jaka.ramdani
0
514
Member Avatar for exchequer598

Hi everyone! I am making a JSP page with Eclipse and Apache Tomcat 6. I want to create a drop-down list that will be populated with the list of all folders in the directory of that JSP page. Can someone show me how to do that? Thanks in advance!

Member Avatar for EloiseJoseph
0
800

The End.