4,248 Topics

Member Avatar for
Member Avatar for Abhijeet Sutar

I am developing the web app and i am new guy I want to include the trace path like one following shown. [CODE]Trace: » about » hai-world » keywords » playground » home[/CODE] How i include within the web-page and i am using the Java Servlet and JSP Technology.. (This …

0
55
Member Avatar for arthurav

I use a mysql database with students and grades for a training program. I would like to create a dynamic form with one field that works like this: if i write the name in the form and press check, and the student exists, i want it to show me the …

Member Avatar for javaAddict
0
117
Member Avatar for rajasekhar1242

hi , i am trying to develop one jsp application with tag concept on netbeans tool. but i am getting this error "According to TLD or tagfile, Attribute uri is mandatory for tag dbquery " . i could not run my application due to this error. In Jsp file i …

Member Avatar for rajasekhar1242
0
176
Member Avatar for yuvi2288

Hi friends .. Can you help me... I have been created a new form. In this form i have multiple check boxes & i should be able to check only one check box at a time from the multiple box. The check box value contains with embedd code. when i …

0
78
Member Avatar for sugumarclick

hi friends, I am a novice java programmer. I am in a learning process in java servlets. But i struck into a Class method which should return a result set as an array. I will show my code as some one can point out where am i going wrong. Currently …

Member Avatar for sugumarclick
0
689
Member Avatar for madhub2v

hi I want any type of source for "some sample projects " to know realtime coding about Servlets and JSP.

1
68
Member Avatar for kotaravitez

hi Guys i'm new to ajax and jsp and i'm trying to execute some code . i'm not getting any error but i'm also not getting any result that i want i have placed code here pls make any correction if it has to be done thank you . caller.jsp …

0
57
Member Avatar for agent7

please help with my connection i'm getting error("exception: org.postgresql.util.PSQLException: The connection attempt failed.The connection attempt failed.") this is my code.. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ page language="java" import="java.sql.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML …

Member Avatar for parry_kulk
0
560
Member Avatar for srdva59

hi, i have a function that return a date using this: d.ymd('-'); this return 2010-08-27 but i need other format like this: 27-08-2010 i have try d.dmy but i receive this error: d.dmy is not a function what is the correct format for receive the date is other format? thanks …

Member Avatar for javaAddict
0
64
Member Avatar for selvis

I want to display large number of searched results in my jsp page. I'm using struts framework. I stored each record in to an object of a class and added to an arraylist and I displayed it with <logic:iterate . But I want to filter results from array list when …

0
57
Member Avatar for selvis

In order to run a report I found display tag is useful for sorting the fields and render the data. During implementing this, I found the following difficulties: In my JSP, the table header is defined in a separate div tag with different styles than the corresponding data in another …

0
60
Member Avatar for mutawari

dear all, i have 2 tables. first table named std_table : [CODE] | ID_std | std_1 | std_2 | std_3 | std_4 | std_5 | | 115 | A | B | A | C | D | [/CODE] then i gave another table named cpr_table : [CODE] | ID_cpr …

Member Avatar for mutawari
0
119
Member Avatar for agent7

please help with my connection i'm getting error("exception: org.postgresql.util.PSQLException: The connection attempt failed.The connection attempt failed.") this is my code.. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ page language="java" import="java.sql.*"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML …

Member Avatar for agent7
0
231
Member Avatar for agent7

This is my EmployeeList.jsp <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html:html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>List of Employee</title> </head> <body> <table border="1" cellpadding="1" cellspacing="1" align="center"> <tr> …

Member Avatar for agent7
0
223
Member Avatar for agent7

This is my EmployeeList.jsp ====================================================================== <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html:html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>List of Employee</title> </head> <body> <table border="1" cellpadding="1" cellspacing="1" align="center"> …

0
65
Member Avatar for Nobuo
Member Avatar for masijade
0
344
Member Avatar for ben05

hi all, i've a major doubt.. i've a jsp page with combo box which is dynamically loaded with values from database.. how to include this page with anohter jsp page provided the dynamically loaded values must remain the same.....[code]hi all, i've a major doubt.. i've a jsp page with combo …

Member Avatar for parry_kulk
0
109
Member Avatar for KcNaveen
Member Avatar for nikk

Hey, all Java & JSP gurus, i'm developing a website using JSP and MS SQL. Can you please tell me the code to invalidate a session object i.e. the code for logout (to be written in JSP) Following is my code for creating session object, on login: [code=java]HttpSession ses=request.getSession(true); ses.setAttribute("Name",name);[/code] …

Member Avatar for selvanandhini
0
2K
Member Avatar for mohammed2raja

Dear friends, I am facing problem to integrate facebook in my JSP application. I found a lot of help in PHP but I need in JSP. Please help me and give me some ideas.

Member Avatar for mohammed2raja
0
108
Member Avatar for chitian5057

Hi All, Is there a way to create a HTML file generated in browser in a JSP file? This same JSP file parsed by server and show up in a browser in HTML form and also save this HTML form to a HTML file on the server. The only way …

Member Avatar for javaAddict
0
160
Member Avatar for nelly_1005

hi guys hope you can help well im tryin to connect my jsp to my database, im uisng tomcat 5 and have stored the MS access database in my ROOT folder. i have created a User DNS, and have sdk 1.4.2_08 installed Problem is im not sure what to do …

Member Avatar for ernikhil
0
473
Member Avatar for mutawari

dear all, i have 2 tables. first table named std_table : [CODE] | ID_std | std_1 | std_2 | std_3 | std_4 | std_5 | | 115 | A | B | A | C | D | [/CODE] then i gave another table named cpr_table : [CODE] | ID_cpr …

0
59
Member Avatar for jefftanner

Hi I am typically an ASP.NET programmer, and I am familiar with ASP masterpages. Because, I also know Java, I was handed a JSP project. I am looking for an equivalent to [B]asp:Content[/B] whereby I can wrap multiple lines of code/HTML between the open and close tag; for example like …

0
46
Member Avatar for alsoumhi

Hi experts, I have a click button called log off , here once a user clicks it , task goes to logout servlet to end current user session . below is my code , I don't know why it works fine with mozilla firefox and google chrom but not working …

0
82
Member Avatar for yuvi2288

Hi developers, I am doing an application regarding video search. I listed some video website such as youtube.com, aolvideo.com, vimeo.com, dailymotion.com etc. in checkboxes. I entered the search query and If I checked youtube only and leave the others, then it should call youtube website only. If I check both …

0
106
Member Avatar for alsoumhi

Hi experts , I have finished my web application , and now I would deploy it in centos , I need to call my web application the index page like this url [url]http://intranet[/url] it goes directly to index page . My web application including the index page is under Root …

0
73
Member Avatar for vineetanimu

Hi All, I have written a JSP file which will run query, get the result in a csv file and send the csv file daily to an email address. But how can I execute this JSP file daily in Linux? Can anyone help in this?

Member Avatar for masijade
0
585
Member Avatar for sweta2010

Hi I am developing a website in that i want an automatic email should be send to the user and the data entered by user should get stored in database(mysql) when the user fills the form Can any one help me with that. Thanks in advance

Member Avatar for chackboom
-1
113
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
88
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
94
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
85
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 PCBrown

Research In Motion (RIM) held an event in NYC at 11 AM EDT today to announce a new device previously referred to as the BlackBerry 9800, but now known as the Blackberry Torch. The real excitement however is the BlackBerry 6 OS. RIM hopes that their revamped focus on multimedia …

Member Avatar for Agilemind
0
459
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
79
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
61
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
101
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
313
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
76
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
116
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
121
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
185
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
366
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
216
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
436
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
770
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
161
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
138
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
83
Member Avatar for R.DanielRaj
Member Avatar for peter_budo
0
490

The End.