3,760 Topics

Member Avatar for
Member Avatar for hajjo

hello i am trying the following code [CODE]<%@ page import="java.util.*" %> <HTML> <BODY> <%! Date theDate = new Date(); Date getDate() { System.out.println( "In getDate() method" ); return theDate; } %> Hello! The time is now <%= getDate() %> </BODY> </HTML>[/CODE] its so simple, taken from a tutorial. the question …

Member Avatar for peter_budo
0
110
Member Avatar for Alex_

Hello, i want to print on my website how many people are viewing it. I thought doing it with cookies: 1. Give the guest a [I]guest [/I]cookie. Increase a static variable "guest". 2. If he registers, give him a [I]user[/I] cookie. Decrease "guest" by 1 , Increase "user" by 1. …

Member Avatar for Alex_
0
120
Member Avatar for hajjo

[CODE]<html> <head> <script type="text/javascript"> function formValidator(theForm) { if (theForm.location.value == "") { alert("Please choose a location"); theForm.location.focus(); return (false); } if ( ( theForm.browser[0].checked == false ) && ( theForm.browser[1].checked == false ) && ( theForm.browser[2].checked == false ) && ( theForm.browser[3].checked == false )) { alert("please choose a subscription …

0
55
Member Avatar for hajjo

[CODE]<%@ page import="java.util.*" %> <%@ page import="java.sql.*" %> <%@ page import="java.text.*" %> <% Statement stmt =null; Connection conn =null; ResultSet rs = null; try { String url = "jdbc:oracle:thin:@ahmad:1521:PLSExtProc"; String user = "training"; String password = "training"; Class.forName("oracle.jdbc.driver.OracleDriver"); System.out.println("--------------"); //Get a connection to the database conn = DriverManager.getConnection(url, user, password); …

Member Avatar for hajjo
0
91
Member Avatar for pandeyprashant

hello every one, i m trying to insert data from jsp page to database using sql insert query. every thing is working fine but when i m using autonumber in database(Ms Access) it is showing error. so please help me how to do it??/

Member Avatar for pandeyprashant
0
847
Member Avatar for ehsankhan2000

I am running this code It is giving an error which is out of my understanding CODE: [code=jsp]<html> <head> <title>Login Page</title> </head> <body bgcolor="#C0C0C0"> <form method="GET" action="http:\\localhost:8000\login_page.jsp"> <marquee style="font-family:Arial;font-size:14pt;color:#800000;fontstyle: italic;font-weight:bold">eResource System -----&gt;The World of Learning</marquee> <table border="1"width="100%"> <tr> <td width="18%"> <p><font face="Arial"size="2"color="#800000"><b><a HREF="home_page.htm">Home</a></b></font></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="chart_toppers.jsp">Chart Toppers</a></font></b></p> <p><b><font face="Arial"size="2"color="#800000"><a HREF="search_home_page.htm">Search</a></font></b></p> …

Member Avatar for kvprajapati
0
78
Member Avatar for jaiprakash15

Dear friends, i am Jai.. i have developed a web based product where i have implemented Localisation concept..when the user selects the languages in a webpage.d webpage will convert itself into that particular language.i use to place the language related this in *.properties file and access that using Locale concept. …

Member Avatar for kvprajapati
0
98
Member Avatar for hajjo

[url]http://www.jsptut.com/Forms.jsp[/url] I am not able to get that example working. how do i create userdata.class??? how do i get it compiled?? I am workign tomcat. I am using the browser to check up my results. And where do i store userdata.class Also aniother question, whats a bean? plus, why if …

0
49
Member Avatar for sven1981

i extraction the files download from [URL="http://www.daniweb.com/forums/thread141776.html"]here[/URL] ,but i encounter problem after i key in username and password from index.jsp. "HTTP Status 404 - /daniwebtutorial/controller/login type Status report message /daniwebtutorial/controller/login description The requested resource (/daniwebtutorial/controller/login) is not available. Apache Tomcat/6.0.18" Ver. Tomcat : Tomcat 6.0 paths to java :C:\Program Files\Java\jdk1.6.0_12\bin; …

Member Avatar for masijade
0
186
Member Avatar for ogi.za.forum

I need to create web application which will show advertisement on the internet. Main functions of application should be publishing, deleting and searching of advertisement . So website needs to have front page index.jsp, which leads on two pages AddAdvertisement.jsp and searchAdvertisement.jsp 1. It's needed to create Html forms for …

Member Avatar for peter_budo
0
75
Member Avatar for gaya123

I have a jsp where i have two buttons. Each button runs a script on click and then in the script i invoke submit(the action is to a servlet)... my problem is when the script invokes submit, it goes to the servlet...but the value of the button that was clicked …

Member Avatar for Thirusha
0
76
Member Avatar for alsoumhi

Hi experts , I got problem and need help please. I have created a servlet sends a message to the client, I have tried to attach a text file with message being sent but I couldn't do that. please help me how to attach a file with a message. is …

Member Avatar for peter_budo
0
76
Member Avatar for JGooding

I have fully configured a domain with SSL using Tomcat as the entire webserver. Going back and forth with having both httpd and Tomcat 6 installed, I had them both talking, passing what they needed back and forth, just fine. I decided since Tomcat is just as good as serving …

0
39
Member Avatar for sanjayrawat177

hi i have one problem in my project what i m doing is populating the select box from data base. When user presses F3 button in select box, a pop up window will open which will allow the user to enter new value ,which will first go to database and …

0
43
Member Avatar for kurtybain

hi, lets get to the point. Im developing an application in which a route is drawn in a map (MapGuide), in order to do this you have to select two points, one for the origin and the other one for the destiny. I have a window divided into 3 frames. …

Member Avatar for Airshow
0
115
Member Avatar for gaya123

I am using websphere application server 6.. when i run ma application, there is a navigation from a jsp page t a servlet. the jsp page is a form and on clicking submit, control transfers to servlet and few statements should be printed. when the control transfers to servlet, i …

Member Avatar for peter_budo
0
81
Member Avatar for feoperro

Hi, I have a frameset with 2 vertical rows. 1. The Header (Header.jsp) and 2. The Body (Body.jsp) The header has all the links and the body is the base target. The problem that I'm facing is that I need to pass parameters through the URL and since the frameset …

Member Avatar for Airshow
0
196
Member Avatar for gaya123

I have 2 submit buttons in a jsp page. in the form action, i forward the request to a servlet. N in the servlet, i need to write logic for the respective button clicked in the previous jsp and redirect to a new jsp... Kindly help me with this... I …

Member Avatar for gaya123
0
217
Member Avatar for moonis.ahmed

Hi, Let's say i have Main.jsp and return.jsp. i call the return.jsp from main.jsp and want the return page to return a string which I need to store in a variable in Main.jsp. How can I achieve this? Cheers!

Member Avatar for javaAddict
0
113
Member Avatar for itslucky

Dear Friends...!!! I have written a jsp file, its working very fine in my PC, BUT now i would like to upload my jsp files to somewhere on the internet so i can access my jsp files over internet... Please Tell me 1. where should i upload the files? 2. …

Member Avatar for peter_budo
0
68
Member Avatar for alsoumhi

Hi experts, I got problem in servlet. I have a web page that has two buttons (submit button and update button) , both buttons call the servlet. my question is how I let my servlet program distinguish the two buttons when one of the two buttons is pressed. the servlet …

Member Avatar for alsoumhi
0
231
Member Avatar for alsoumhi

Hi experts, I am having a problem with sending mail from servlet I have written this code : [code=Java] import javax.mail.Session; import javax.mail.Message; import javax.mail.Transport; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import javax.mail.internet.InternetAddress; import java.util.Properties; public class EmailSenderDemo { public static void main(String[] args) { String from = "ali@mlabs.com"; String to = …

Member Avatar for kvprajapati
0
126
Member Avatar for moonis.ahmed

Hi, I want to get only the filename from the entire path in a file dialog in JSP. Right now I am using type "file" in input tag. any help will be appreciated. cheers!

Member Avatar for kvprajapati
0
116
Member Avatar for memegha123

hi! i m trying to write some user entered entries to a text file on server... here is my code [CODE] String news=new String(); String path=application.getRealPath("news.txt"); news=request.getParameter("news"); PrintWriter pw = new PrintWriter(new FileOutputStream(path)); pw.println(news); pw.close(); [/CODE] this just doesnt seem to work....can anyone help?News is a text are field on …

Member Avatar for memegha123
0
140
Member Avatar for tdamon

Hi Friends, I am very new to JSP.Just started learning few days back.I am struck with form validations in JSP.Can you pl help me as to how to validate the inputs entered by user in the form.No alerts shud be there.For example..if user doesnot enter any mandatory column(say first name),it …

Member Avatar for peter_budo
0
138
Member Avatar for tdamon

Hi, I have a query regarding ratinaing the values entered into form by user.When user enters the search criteria and click on "search"/My bean search the DB and gives the results..But the problem I am facing is...after returning the results it doesnot display what criteria the user has entered...can you …

Member Avatar for peter_budo
0
108
Member Avatar for sandeepgrandhi

Hi, I am new to java...I want to know how to run a .jsp file using TOMCAT server please help me.

Member Avatar for manju.fresher
0
95
Member Avatar for gurupatil8

HI sir.. plz help me to solve this problem. i write this code in jsp.. m getting image from database but the other HTML and JSP code i.e buttens and some output messages Thanks in adv... [code=jsp]<?xml version="1.0" encoding="UTF-8" ?> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %> <%@ page language="java" …

0
55
Member Avatar for moonis.ahmed

hi, i have a simple two file webapp where i pass two strings to a jsp page for processing. however when i run the app, i get 'resource not found error'. cant figure out what's the problem... some help will be much appreciated.. i got two files. index.jsp which launches …

Member Avatar for peter_budo
0
242
Member Avatar for peggie1990

Hey guys, currently I am doing on insert products into the database. For the insert form in jsp, I am making use of hashtable in multi part form so that I can upload images as well as insert data into the database. I can insert thr details as well as …

Member Avatar for Thirusha
0
96

The End.