3,760 Topics
| |
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 … | |
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. … | |
[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 … | |
[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); … | |
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??/ | |
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 ----->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> … | |
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. … | |
[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 … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
| 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 … |
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 … | |
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! | |
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. … | |
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 … | |
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 = … | |
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! | |
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 … | |
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 … | |
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 … | |
Hi, I am new to java...I want to know how to run a .jsp file using TOMCAT server please help me. | |
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" … | |
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 … | |
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 … |
The End.