3,760 Topics

Member Avatar for
Member Avatar for selvasmartmccan

I want to use XML file to insert some data and want to upload that data into my JSP page. That is "XML parsing in JSP" but i tried using JDOM parser but i cant able to get ... any one know dis???????

Member Avatar for peter_budo
0
34
Member Avatar for feoperro

Hi, I would just like to know if it's possible to ping a certain port from a jsp page. For example: If I had a Apache_Status.jsp on my machine and I wanted to ping it on another machine at: 123.456.78.90:8080 And I had a Glassfish_Status.jsp on my machine and I …

Member Avatar for feoperro
0
371
Member Avatar for alsoumhi

Hi experts, I am having very small error with my attachment file. the thing is , if I let my servlet send e-mail fwith attachment file exists on my computer and that file I edit by myself , there is no error with my file , so if i download …

0
90
Member Avatar for camilia

hi, does anyone know how to do login validation using java...here is my code,bt i cant validate if the username and pw typed are the user in the database. (The java code that i wrote) [CODE] public int Login(Friend fr) throws EventException { Connection con = null; System.out.println("Database connection succeeded"); …

Member Avatar for javaAddict
0
95
Member Avatar for vishalanuj

Hi,I am new to struts.i want to make a database connection with the help of a method call in some other class.I am not able to make the method for the database connectivity.Please if someone could help me.

Member Avatar for Cronless
0
62
Member Avatar for Thendral

Hai.. I want to write a JSP program. In that i want to do insert, delete, display records in a same program. I connected to the database. its working fine. The problem is it displays the record in the window twice.(becoz it has two records). I need that to display …

Member Avatar for peter_budo
0
91
Member Avatar for aredroses

Hi, considering the tutorial given by peter_budo, if manager wants to assign a new course to a teacher, how would he be able to assign that ? I have designed the course page in which students can apply but how a manager can assign a teacher to that course ?? …

Member Avatar for peter_budo
0
65
Member Avatar for Dhruv Shah

As I am new to MySQL, I dont know how to connect my jsp page to the MySQL Database. So please help me by giving some code on how to connect. I have downloaded driver for Java named as Connector/J. MySQL version is 5.0. In this line con = DriverManager.getConnection("jdbc:mysql://localhost/JSP_MYSQL?user=root&password=admin"); …

Member Avatar for masijade
0
2K
Member Avatar for deepak.marur

I have tomcat 6.0.18 running on my laptop. Tomcat is installed under my /home/xxx/bin directory. However, after I start tomcat, I'm unable to connect to tomcat through my browser but my eclipse is able to do so. I do not get any error message, the browser just keeps on trying. …

Member Avatar for deepak.marur
0
152
Member Avatar for hajjo

Hello all I am using the request scope. I have parent window, which opens a child window on button click. Am using window.open That child window opened is request scope. Problem is, on that child window there is a button.. say I write "greg" in the textbox and click the …

Member Avatar for peter_budo
0
86
Member Avatar for poobeer

Hi there, I'm new to webapp creation and want to try making one using eclipse, maven and spring. The tutorials I find on the net use the maven-archetype-webapp to start their creation, but for some reason that doesn't work on my eclipse... When I fire it up its settings start …

Member Avatar for ejosiah
0
84
Member Avatar for singju

Hello everyone, I am new to JSP. Can any one help me how to implement "search" button in jsp, what i need is that i need one text box where i will write the name of the person whose details i need to search, then on clicking the search button …

Member Avatar for peter_budo
0
53
Member Avatar for ankiwalia

hey guys, i'm new to java servlets..i have been making a website using java servlets on stock market and stuff...now what my query is that i want to retrieve data from database(ms-access) and display it on my html page.... i don't have much knowledge about html so i took a …

Member Avatar for javaAddict
0
119
Member Avatar for rattcod

hi i have a problem in running javascript code between jsp page.. lets below is my jsp body . [code=jsp]<body> <script language="javascript" > alert("hi"); </script> <h1>hello</hello> <% System.out.println("hello"); %> </body>[/code] in the above code there is no problem in running javascipt .. it gives hi alert easily but.. for below …

Member Avatar for rattcod
0
161
Member Avatar for Cort3z

I am trying to make a cookie that should contain a number value. It all work fine, unless the form that sends the info to my receiver page sends and empty string. Then something strange happens. It does not seem to be empty, so my error checker does not detect …

Member Avatar for ~s.o.s~
0
139
Member Avatar for ashishdmc4

Hello everyone.. I have a problem in my project. what i have done is when i login, if the username and password is correct it will redirect to a homepage which is in a new folder called private. I have a logout link in that home page which refers to …

Member Avatar for javaAddict
0
29
Member Avatar for vishalanuj

[CODE]<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@taglib uri="/WEB-INF/struts-html-el.tld" prefix="html_el" %> <%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/c.tld" prefix="c" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Listing all cities</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <center><h3>city List</h3></center> </body> <html:form action="/UpdateSuccessAction.do" > <c:forEach …

Member Avatar for vishalanuj
0
136
Member Avatar for musi80

hi all i need to make a upload option for user to upload .csv file using jsp then i have to read the .csv file and validate it. if i validation of row is correct then i have update in database else i have to show the error to the …

Member Avatar for patelakhil
0
732
Member Avatar for syum

Hi all, I'm having tough time on how to use linux commands from the servlets. I am able to run the commands from java program but I can't run the same program from servlets? Is there a way to do this? Here is a sample of my code that runs …

Member Avatar for ~s.o.s~
0
82
Member Avatar for timon_zed

Am trying to read a date that i have stored in a database table and then parse it to a date object of the Date class using a servlet, but it returns null for the converted date.Where am i going wrong?Some advice on how to sort that out would be …

Member Avatar for peter_budo
0
100
Member Avatar for poojasweetgirl

Hello. I wish to create a servlet which checks if the entered username and password are correct.If yes..message hello else go back to page showing error message. I know the settings for tomcat. i know the basic code for servlet.I also know i need http servlet .I will be using …

Member Avatar for poojasweetgirl
0
780
Member Avatar for nicklau

Html-structure [code] <html><head></head><body> <!-- START XOXO --> "lots of html and jsp stuff" <!-- STOP XOXO --> "file reading" </body> </html> [/code] The file reading code [code] <%@ page import="java.io.*" %> <% String line = ""; String file = request.getRequestURL().toString(); int print = 0; BufferedReader input = new BufferedReader(new FileReader(file)); …

Member Avatar for ejosiah
0
186
Member Avatar for priyapratheep

Hi friends, I am new bie to programming.This is my first project.so the tecnical terms i am not familier. I am doing one small project with Eclipse Europa,jsp , EJB. with XDoclet, weblogic server I first created all my jsp files as one project.Then i created one enterprise application project …

Member Avatar for peter_budo
0
164
Member Avatar for muthumari

Hi, Hoe to insert multiple selection from checkbox(from jsp) in to one column of the table(sql server database ). Anyone can you help me? Thanx

Member Avatar for peter_budo
0
2K
Member Avatar for izzet

I want to create a login jsp form that connect with servlet and mysql for database. And I'm using netbeans and glassfishV2. Please help me to solve this problem.

Member Avatar for javaAddict
0
107
Member Avatar for pardon_garden

Hi all, I am currently developing a JSP web application with most of the content added using include tags, styled using CSS2,content created from servlets etc... My main issue is that at some points the main section is bigger than the header and footer making the site (inactive just now) …

Member Avatar for Thirusha
0
64
Member Avatar for peter_budo

I would like to know if people would be interested in participating building similar starting thread like we have in Java section [URL="http://www.daniweb.com/forums/thread99132.html"]Starting "Java" [Java tutorials / resources / faq][/URL], but targeting Java web development. This thread would hold resources (where to get the things, configurations, basic usage and any …

Member Avatar for peter_budo
3
85
Member Avatar for neeraj20gupta

when i try to run the following code....----> [code=JSP]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <jsp:useBean id="accountBean" class="banking.pac.AccountForm" scope="session" /> <!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=ISO-8859-1"> <title>Insert title here</title> <script language="javascript"> </script> </head> <body> <form …

Member Avatar for Kamalapriya
0
238
Member Avatar for akulkarni

i am trying to learn servlets so i downloaded tomcat server.I learned that i have to do this...set path=c:\tomcat\lib\servlet.jar or click the exe file tomcat6 in the bin folder. I tried to connect with localhost8080 it is not working.I am not getting Tomcat home page. Any help will be great.

Member Avatar for akulkarni
0
132
Member Avatar for vishalanuj

[CODE]<%-- Document : AddCity Created on : Oct 6, 2009, 9:14:52 PM Author : Vishal --%> <%@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"> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body onload="ShowMessages();"> <html:form action="AddPage.do"> <p><a href="HomePage.do">HomePage</a></p> Cityname: <input type="text" …

Member Avatar for ~s.o.s~
0
1K

The End.