Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Harshu
Jsp-Servlet
1 Answer(s)      4 years and 6 months ago
Posted in : JSP-Servlet


PlaceAd.jsp

<%@page import="java.sql.*"%>
<%@page import="java.io.*"%>
<%@page import="java.lang.*"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.*"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Calendar"%>
<%
Connection con=null;
Statement stmt=null;
int Num=0;

Calendar cal = Calendar.getInstance();
int iday = cal.get(Calendar.DATE);
int imonth = cal.get(Calendar.MONTH) + 1;
int iyear = cal.get(Calendar.YEAR);


try{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:Advdsn");
stmt=con.createStatement();
/*Date now = new Date();
String DATE_FORMAT = "dd-MM-yyyy";
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT);
strDateNew = sdf.format(now) ;*/



}
catch(SQLException se){
out.println("Database Error:"+se.getMessage());
}
catch(Exception e){
e.toString();
}
%>

<html>
<head>

<script src="City.js"></script>

<script language="Javascript">

function Calculate()
{
<!--Front Page-->
var fpval;
var cityamt;
var newspaper;
var sizeval;
var city = document.form.city.value;
var noofwd = document.form.Count.value;
var nofw = document.form.Count.value;
var payat = document.form.Total;




<!--Andhra Pradesh-->
if (city.toUpperCase() == "HYDERBAD")
{cityamt = 450;}
else if (city.toUpperCase() == "VISAKHAPATNAM")
{cityamt = 300;}
else if (city.toUpperCase() == "VIJAYAWADA")
{cityamt = 200;}

<!--Bihar-->
if (city.toUpperCase() == "BIHAR")
{cityamt = 500;}

<!--Delhi-->
if (city.toUpperCase() == "DELHI")
{cityamt = 1000;}

<!--Gujarat-->
if (city.toUpperCase() == "AHMEDABAD")
{cityamt = 600;}
else if (city.toUpperCase() == "VADODARA")
{cityamt = 400;}
else if (city.toUpperCase() == "SURAT")
{cityamt = 300;}
else if (city.toUpperCase() == "GANDHINAGAR")
{cityamt = 200;}

<!--Haryana-->
if (city.toUpperCase() == "CHANDIGARH")
{cityamt = 400;}
else if (city.toUpperCase() == "GURGAON")
{cityamt = 300;}

<!--Himachal Pradesh-->
if (city.toUpperCase() == "SHIMLA")
{cityamt = 500;}
else if (city.toUpperCase() == "KULLU")
{cityamt = 400;}
else if (city.toUpperCase() == "MANALI")
{cityamt = 400;}

<!--Jammu and Kashmir-->
if (city.toUpperCase() == "JAMMU")
{cityamt = 600;}
else if (city.toUpperCase() == "SRINAGAR")
{cityamt = 600;}

<!--Karnataka-->
if (city.toUpperCase() == "BANGALORE")
{cityamt = 800;}
else if (city.toUpperCase() == "MYSORE")
{cityamt = 600;}
if (city.toUpperCase() == "MANGALORE")
{cityamt = 400;}
else if (city.toUpperCase() == "UDUPI")
{cityamt = 300;}

<!--Maharastra-->
if (city.toUpperCase() == "MUMBAI")
{cityamt = 1000;}
else if (city.toUpperCase() == "PUNE")
{cityamt = 120;}
else if (city.toUpperCase() == "NASIK")
{cityamt = 240;}
else if (city.toUpperCase() == "NAGPUR")
{cityamt = 360;}

<!--Rajasthan-->
if (city.toUpperCase() == "AJMER")
{cityamt = 400;}
else if (city.toUpperCase() == "JAIPUR")
{cityamt = 500;}
else if (city.toUpperCase() == "JODHPUR")
{cityamt = 300;}
else if (city.toUpperCase() == "BIKANER")
{cityamt = 300;}
else if (city.toUpperCase() == "UDAIPUR")
{cityamt = 300;}

<!--TamilNadu-->
if (city.toUpperCase() == "CHENNAI")
{cityamt = 1000;}
else if (city.toUpperCase() == "THANJAVUR")
{cityamt = 400;}
else if (city.toUpperCase() == "COIMBATORE")
{cityamt = 500;}
else if (city.toUpperCase() == "RAMESHWARAM")
{cityamt = 400;}
else if (city.toUpperCase() == "TRICHY")
{cityamt = 500;}

<!--Uttar Pradesh-->
if (city.toUpperCase() == "AGRA")
{cityamt = 400;}
else if (city.toUpperCase() == "LUCKNOW")
{cityamt = 300;}
else if (city.toUpperCase() == "VARANASI")
{cityamt = 300;}
else if (city.toUpperCase() == "ALLAHABAD")
{cityamt = 300;}

<!--West Benegal-->
if (city.toUpperCase() == "KOLKATA")
{cityamt = 1000;}
else if (city.toUpperCase() == "DARJEELING")
{cityamt = 400;}

<!--Mumbai Mirror-->
var mmval;
if(!document.form.MM.checked) {
mmval = 0
}
else
{
mmval = wordrate(730, 130, nofw);
}


<!--TOI-->
var tival;
if(!document.form.TOI.checked) {
tival = 0
}
else
{
tival = wordrate(2360, 400, nofw);
}


<!--ET-->
var etval;
if(!document.form.ET.checked) {
etval = 0
}
else
{
etval = wordrate(950, 200, nofw);
}


<!--Midday-->
var meval;
if(!document.form.ME.checked) {
meval = 0
}
else
{
meval = wordrate(500, 20, nofw);
}

<!--Hindustan Times-->
var htval;
if(!document.form.HT.checked) {
htval = 0; }
else
{
htval = wordrate(300, 50, nofw);
}

<!--DNA-->
var dval;
if (!document.form.DNA.checked) {dval =0;}
else
{
dval = wordrate(600, 75, nofw);
}

<!--Indian Express-->
var ieval;
if (!document.form.IE.checked) {ieval = 0;}
else
{
ieval = wordrate(160, 15, nofw);
}

<!--Color-->
var colval;
if (!document.form.col.checked) { colval = 0;}
else { colval = 1000;}

<!--B&W-->
var bwval;
if (!document.form.bw.checked) { bwval = 0;}
else { bwval = 500;}


<!--img-->
var imgrate;
if(!document.form.img.value) {imgrate = 0;}
else {imgrate = 200;}


<!--size-->


if (form.size.options[form.size.selectedIndex].text == "3*3")
{ sizeval = 100;}
if (form.size.options[form.size.selectedIndex].text == "3*5")
{ sizeval = 200;}
if (form.size.options[form.size.selectedIndex].text == "4*1")
{ sizeval = 300;}
if (form.size.options[form.size.selectedIndex].text == "4*4")
{ sizeval = 400;}

<!--Front Page-->
var fpval;
if (!document.form.fp.checked) { fpval = 0;}
else { fpval = 1000;}

<!--Back Page-->
var bpval;
if (!document.form.bp.checked) { bpval = 0;}
else { bpval = 800;}

<!--Page2-->
var p2val;
if (!document.form.p2.checked) { p2val = 0;}
else { p2val = 600;}

<!--Page3-->
var p3val;
if (!document.form.p3.checked) { p3val = 0;}
else { p3val = 400;}

<!--Page5-->
var p5val;
if (!document.form.p5.checked) { p5val = 0;}
else { p5val = 200;}

<!--Page7-->
var p7val;
if (!document.form.p7.checked) { p7val = 0;}
else { p7val = 100;}

var pageval;
pageval = fpval+bpval+p2val+p3val+p5val+p7val;
payat.value = cityamt+mmval+tival+etval+meval+htval+dval+ieval+sizeval+colval+bwval+pageval+imgrate;

}

function wordrate(baserate, extrarate, numberofwords)
{
var extwrds;
var totrate;
totrate = baserate;

if (numberofwords > 15)
{
extwrds = numberofwords - 15;
}
for (i=0; i<extwrds; i++)
{
totrate = totrate + extrarate;
}
return totrate;
}

function Draft(text1,text2){
var v1=text1.value;
var v = 0;
v2=v1.replace(/\s/g,' ');
v2=v2.split(' ');
for (i=0; i<v2.length; i++) {if (v2[i].length > 0) v++;}
text2.value=v;
}
function checkPhoneNo(num){
if(isNaN(num)){alert("Invalid Phone Number. The only characters permitted are 0 to 9"); return 0;}
else{return 1;}
}

function checkNofdays(num){
if(isNaN(num)){alert("Invalid Number of days."); return 0;}
else{return 1;}

}
/*function checkEmail(myForm)
{
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.Email.value))
return true;
else
{
alert("Invalid E-mail Address! Please re-enter.")
return false;
}
}*/

function Day()
{
var days=document.form.day.value;
var mons=document.form.Month.value;
var year=document.form.Year.value;

var DaysDiff;

var myDate=new Date();
myDate.setFullYear(year,mons-1,days);
<!--alert(myDate);-->
var today = new Date();
<!--alert(today);-->
DaysDiff = Math.floor((today.getTime() - myDate.getTime())/(1000*60*60*24));

if(DaysDiff>0)
{
alert(" Date Should be greater than Today's Date");
}
<!--alert("Here");-->
}

function Validate()
{
var phone=document.form.PhoneNo;
var email=document.form.Email;
var num=document.form.numDays;
//var nofdays=document.form.numDays;

if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.text(form.Email.value))
return true;
else
{alert("Invalid E-mail Address! Please re-enter.");
email.value=="";
email.focus();
return false;}

if((phone.value=="")||(phone.value==null))
{ alert("Please enter valid PhoneNo");phone.focus();
return false;
}
if (checkPhoneNo(phone.value)==false){
phone.value="";
phone.focus();
return false;
}
if ((phone.value.length==8)||(phone.value.length==10)){
return true;
}
else{
alert("Phone Number must be of 8 numbers or 10 numbers");
return false;
}
if (num.value <= 0 || num.value==null||num.value=="")
{
alert("Enter Number of Days Greater than 0"); <!---Check for number days added here-->
}
if(checkNofdays(num.value)==false)
{
nofdays.value="";
nofdays.focus();
return false;
}

return true;
}

</script>
</head>
<% String Or=request.getParameter("order"); %>
<body bgcolor="#D0D0D0">
<marquee behavior="alternate" scrollamount=5 scrolldelay=10><h1><font size=4 face="Stroustroup" color="#993355">Advertisement Management System</h1></font></marquee><br>
<p align=center><b> <font color="669933" size=4>Place Ad</font></b></p><br>

<form name="form" method="post" onSubmit="return Validate();" action="http://localhost:8080/ProjectAd/Preview.jsp" >

<table>
<tr><td>OrderNo:</td><td><input style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" type=text name="OrderNo" value="<%=Or%>" readonly></td></tr>


<tr>
<td style="text-align: left;">State:</td>
<td style="text-align: left;">
<select style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" name="State" id="state" onchange="setCities();">
<option value="Andhra Pradesh">Andhra Pradesh</option>
<option value="Bihar">Bihar</option>
<option value="Delhi">Delhi</option>
<option value="Gujarat">Gujarat</option>
<option value="Haryana">Haryana</option>
<option value="Himachal Pradesh">Himachal Pradesh</option>
<option value="Jammu and Kashmir">Jammu and Kashmir</option>
<option value="Karnataka">Karnataka</option>
<option value="Maharashtra">Maharashtra</option>
<option value="Rajasthan">Rajasthan</option>
<option value="TamilNadu">TamilNadu</option>
<option value="Uttar Pradesh">Uttar Pradesh</option>
<option value="West Benegal">West Benegal</option>
</select>
</td>
</tr><tr>
<td style="text-align: left;">City:</td>
<td style="text-align: left;">
<select style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" name="City" id="city">
<!-- <option value=""> Please select State </option>-->
</select>
</td>
</tr>
<tr>
<td style="text-align: left;">Main Category:</td>
<td style="text-align: left;">
<select style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" name="mainCat" id="mainCat" onchange="setCategory();">
<option value="Electronics & Technology">Electronics & Technology</option>
<option value="Home & Lifestyle">Home & Lifestyle</option>
<option value="Real Estate">Real Estate</option>
<option value="Cars & Bikes">Cars & Bikes</option>
<option value="Jobs">Jobs</option>
<option value="Services">Services</option>
<option value="Entertainment">Entertainment</option>
<option value="Pets and Pet Care">Pets and Pet Care</option>
<option value="Community">Community</option>
<option value="Events">Events</option>
<option value="Matrimonial">Matrimonial</option>

</select>
</td>
</tr>
<tr>
<td style="text-align: left;">Sub Category:</td>
<td style="text-align: left;">
<select style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" name="subCat" id="subCat">
<!-- <option value=""> Please select Main Category </option> -->
</select>
</td>
</tr>
<tr><td>Title:</td><td> <font face="Arial Black" size=14><input style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" type=text name="Title" ></font></td></tr>
<tr><td>Draft Your Ad :</td><td><font face="Arial Black" size=14><textarea style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" name="DraftAd" id="text" cols="25" rows="5" onkeyup="Draft(this,document.form.Count)" maxLength=10></textarea></font></td></tr>

<tr><td>No of words:</td><td><input style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" name="Count" type="text" value="0" onkeyup="Draft(document.form.DraftAd,this)" readonly></td></tr>

<tr><td>Image:</td><td><input style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" type="file" name="img"></td></tr>
<tr><td>Email:</td><td><input style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" type=text name="Email" size=25 ></td></tr>
<tr><td>Phone No:</td><td><input style="width:190px;font-family: Verdana; font-weight: bold; font-size: 14px;" type=text name="PhoneNo" size=25 maxlength=10></td></tr>
</table>

<hr color=green>
<p align=center><b> <font color="669933" size=4>Schedule </font></b></p><br>

<table>
<tr><td>Select Newspaper:</td>&nbsp;&nbsp;&nbsp;&nbsp;<td><input type=checkbox name=NP value="TimesOfIndia" id="TOI">Times of India</td><td><input type=checkbox name=NP value="HindustanTimes" id="HT">Hindustan times</td><td><input type=checkbox name=NP value="DNA" id="DNA">DNA</td></tr>
<tr><td></td><td><input type=checkbox name=NP value="MumbaiMirror" id="MM">Mumbai Mirror</td>
<td><input type=checkbox name=NP value="EconomicTimes" id="ET">Economic Times</td>
</tr>
<tr><td></td><td><input type=checkbox name=NP value="IndianExpress" id="IE">Indian Express</td>
<td><input type=checkbox name=NP value="MiddayEnglish" id="ME">Midday English</td></tr>

<tr><td>Ad Size:</td><td><select style="width:60px;font-family: Verdana; font-weight: bold; font-size: 14px;" name="size" size=1>
<option value="3*3">3*3</option>
<option value="3*5">3*5</option>
<option value="4*1">4*1</option>
<option value="4*4">4*4</option>
</select></td></tr>
<tr><td>Select Color or B&W: </td><td><input id="col" type="radio" name="COLBW" value="Color">Color</td>
<td><input id="bw" type="radio" name="COLBW" value="B/W">B & W</td></tr>

<tr><td>Select Your Date:</td><td><select style=" width:64px; font-family: Verdana; font-weight: bold; font-size: 14px;" name="day" size=1 >

<%for (int date=1;date<=31;date++)
{
%>
<option value="<%=date%>"><%=date%></option>
<%}%>
</select></td></tr>
<tr><td>Month:</td><td><select style="width:64px; font-family: Verdana; font-weight: bold; font-size: 14px;" name="Month" size=1>
<%
for (int month=1;month<=12;month++){
%>
<option value="<%=month%>"><%=month%></option>
<%}%>
</select></td></tr>
<tr><td>Year:</td><td><select style="width:64px; font-family: Verdana; font-weight: bold; font-size: 14px;" name="Year" size=1>
<%
for (int year=2010;year<=2050;year++){
%>
<option value="<%=year%>"><%=year%></option>
<%}%>
</select></td></tr>
</table>

<hr color=green>
<p align=center><b> <font color="669933" size=4>Payment </font></b></p>
<p><b><font color="#336633">Premium Position</font></b></p><br>
<table>
<tr><td><input type=radio name=Page id=fp value="FrontPage" onClick="Day()">FrontPage</td></tr>
<tr><td><input type=radio name=Page id=bp value="BackPage" onClick="Day()">BackPage</td></tr>
</table>
<p><b><font color="#336633">Other Premium Pages</font></b></p>
<table>
<tr><td><input type=radio name=Page id=p2 value="Page2" onClick="Day()">Page 2 </td></tr>
<tr><td><input type=radio name=Page id=p3 value="Page3" onClick="Day()">Page 3 </td></tr>
<tr><td><input type=radio name=Page id=p5 value="Page5" onClick="Day()">Page 5 </td></tr>
<tr><td><input type=radio name=Page id=p7 value="Page7" onClick="Day()">Page 7</td></tr><br>
<tr><td>Select Number of Days:</td><td><input style="width:64px; font-family: Verdana; font-weight: bold; font-size: 14px;" type=text name="numDays" size=5 ></td></tr>
<tr><td>Total Cost:</td><td><input style="width:64px; font-family: Verdana; font-weight: bold; font-size: 14px;" type=text name=Total size=5 onClick="Calculate()"></td></tr>
<tr><td><input type="Submit" name="Submit" value="DisplayAd" onSubmit="return Validate();"></td></tr>
</table>

</form>
</body>
</html>


Hello Sir,

In this code i have some problem when i run the code and if i leave email and phone no fields empty then the page is forwarded to next page and gives error even though i haven the function validate it is not checking it.

and in this code user should check that whether date ,month and year fields value is greater than current day's date i.e today's date if yes than it should proceed further else it should give an alert message.

Please Sir help me out ??
Actually i tried a lot but the validate function that i have given is not working properly ???

Please reply me as soon as possible ??

Thank You Sir.

Advertisement
View Answers

May 13, 2010 at 1:43 PM


Hi Friend,

Create following function:

function emailcheck(str) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(form.Email.value)){
return true;
}
alert("Invalid Email ID");
return false; 
}

We have modified your Validate() function also:

function Validate(){

var email=document.form.Email;
var phone=document.form.PhoneNo;
var num=document.form.numDays;
var days=document.form.day.value;
var mons=document.form.Month.value;
var year=document.form.Year.value;
var DaysDiff;
var myDate=new Date();

if ((email.value==null)||(email.value=="")){
alert("Please Enter your Email Address");
email.focus();
return false;
}
if (emailcheck(email.value)==false){
email.value="";
email.focus();
return false;
}
myDate.setFullYear(year,mons-1,days);
var today = new Date();
DaysDiff = Math.floor((today.getTime() - myDate.getTime())/(1000*60*60*24));
if(DaysDiff>0){
alert(" Date Should be greater than Today's Date");
return false;
}
if(num.value =="" || num.value==null)
{
alert("Enter Number of Days Greater than 0");
num.focus;
return false;
}
if(checkNofdays(num.value)==false)
{
num.value="";
num.focus();
return false;
}

if((phone.value=="")||(phone.value==null))
{ alert("Please enter valid PhoneNo");phone.focus();
return false;
}
if (checkPhoneNo(phone.value)==false){
phone.value="";
phone.focus();
return false;
}
if ((phone.value.length==8)||(phone.value.length==10)){
return true;
}
else{
alert("Phone Number must be of 8 numbers or 10 numbers");
return false;
}

return true;
}

Thanks


Related Tutorials/Questions & Answers:
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
Advertisements
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value
jsp/servlet - JSP-Servlet
jsp/servlet  How to create and save the excel file on given location using jsp/servlet?  hi Geetanjali, Read for more information, http://www.roseindia.net/jsp/poi/excelPOI.shtml Thanks
jsp and servlet
jsp and servlet  what is the difference between jsp and servlet ? what is the advantages and disadvantages of jsp and servlet
JSP-Servlet - JSP-Servlet
JSP-Servlet   how to pass the value or parameter from jsp page to servlet and view the passed value.   Hi Friend, Please visit the following links: http://www.roseindia.net/tutorial/servlet/passParameters.html
JSP - JSP-Servlet
JSP & Servlet Example Code  Need example of JSP & Servlet
jsp and servlet
the data and delete the data,using jsp and servlet...jsp and servlet  I want to create a login form,which have many fields,and have a connectivity with thwe oracle database,and login form will have
JAVA JSP and Servlet - JSP-Servlet
JAVA JSP and Servlet  for sending mail through lan without intenet and also chatting facility for online users using Java JSP & SERVLET code.  Hi Friend, Please visit the following links: http://www.roseindia.net
JSP and Servlet sort - JSP-Servlet
JSP and Servlet sort  Hi I have 3 records in my database. I want to sort them according to their respective headings. Here's the code I have for displaying them in the jsp: Universal Books Home Page
Jsp ,Servlet Problem - JSP-Servlet
Jsp ,Servlet Problem  hi, m new to jsp n Servlet. i really find ur... with oracle. it worked wonders. now i m starting jsp n servlet learning.. pls... to execute a servlet code on tomcat server... Thanking u... Santosh  
Programming - JSP-Servlet
Programming jsp servlet   Couple of examples that can help to start programming jsp servlet
Navigate from jsp to servlet - JSP-Servlet
Navigate from jsp to servlet   Hi Friends, Sample code for Navigating a page from jsp to servlet. Thanks
java - JSP-Servlet
java  why is required to write both jsp and servlet in a application of java
Searching for Code - JSP-Servlet
JSP, Servlet Searching for Code  Hi, i am looking for a jsp servlet code examples for the search function in my application.Thanks
jsp servlet hosting
jsp servlet hosting  Hi, What is jsp servlet hosting? Thanks   In case of jsp servlet hosting, hosting companies are providing hosting environment where client can host Java based web application on the server
connec to database - JSP-Servlet
connec to database  Need code to connect the application to database. I have developed the application JSP and Servlet
Deployment of jsp-servlet in JBoss - JSP-Servlet
Deployment of jsp-servlet in JBoss  hello, I unzipped the JBoss4.0.0. Now, I have saved the web application named "abhi" in the deployment folder . like this E:\JBOSS\jboss-4.0.0\server\default\deploy\abhi After starting
ArrayList from JSP to Servlet - JSP-Servlet
in a scriplet in a jsp page. how can i access the arraylist in a servlet which... should it be declared in jsp and in servlet. do i need to do any casting...://www.roseindia.net/jsp/servlet-jsp-data-list.shtml Hope that it will be helpful for you
JSP - JSP-Servlet
JSP  HI! Every body............. Please send me any simple code for chatting using JSP and servlet... Advance wishes... Happy Pongal
java charts - JSP-Servlet
java charts  Hi,can any one tell me how to create dyanamic charts wrt database contents by using jsp-servlet
ETL - JSP-Servlet
ETL  AM USING THE BACK-END AS ORACLE, MS-ACCESS. THE STRATEGY USED IS JSP/SERVLET.   Hi friend, Plz give details with full source code where you having the problem : Thanks
jsp code - JSP-Servlet
jsp code  Can anyone help me in writing jsp/servlet code to retrieve files and display in the browser from a given directory.  Hi Friend, Try the following code: Thanks
jsp/servlet login program - JSP-Servlet
jsp/servlet login program  hello sir, well i have a problem with some code(loginbean.jsp),which i actually got from ur site: i am trying to create a login program where a new user will be registered and his/her details stored
seeking info - JSP-Servlet
seeking info  Looking for the information on Java, JSP and Servlet... and JSP-Servlet Programs.Then check your program for all necessary files.I guess this would solve your problem.for further query read RoseIndia JSP and Servlet
java servlets - JSP-Servlet
java servlets  how to get the parameter value of input type file using java servlets  Hi, You can use request.getParameter(). In Jsp, --- --- IN servlet, String fileName=request.getParameter('fl'); If you
Project - JSP-Servlet
Project  Can you send me the whole project on jsp or servlet so that i can refer it to create my own : the topic is Advertisement Management System Atleast tell me how many modules does it include
j2ee - JSP-Servlet
j2ee  please provide code for search options(example codes) or please tell me where can i get exaple codes of searh options  Hi friend, Please explain which technologies you want to use: JSP Servlet
Add as a friend - JSP-Servlet
Add as a friend  in chat project how we send a request to add as a friend and how other peaple add me in his friend list. i want jsp-servlet and java code also.\plz.. help me on this topic
software requirements - JSP-Servlet
software requirements   In my system i have jdk1.4 and oracle8,i want work data base driven program with jsp,servlet,java,oracle,Eclipe.i want details about what's primilary s/w requirements (with version) to do
java - JSP-Servlet
java  how to insert and view the image and data from database using jsp,servlet,jdbc  Hi Friend, Please visit the following links.../servlets/retreiveimage.shtml http://www.roseindia.net/jsp/retrieve-image.shtml
Advertisements
 

 

 

DMCA.com