Win a copy of High Performance Python for Data Analytics this week in the Python forum!

Arun Prasad Namasivayam

Greenhorn
+ Follow
since Jan 02, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Arun Prasad Namasivayam

I'll explain the overall logic and syntax,
Let us assume that month value u need to set in the select list is stored in the jsp variable "dbMonth".
JSP Variable - dbMonth - Month value
HTML Form Name - frmForm - Form Name
HTML Form - selMonth - Month select list
so if above is the example case so for that im goin to explain you how to use javascript and to set the select list to the corresponding month.
the following code is assumed that the select list is populated with the date values.
<script>
for(i=0;i<document.frmForm.selMonth.length;i++)
{
if(document.frmForm.selMonth.options[i].value == '<%=dbMonth%>')
{
document.frmForm.selMonth.options[i].selected = true;
break;
}
}
</script>
like above you need to do for the select list to load with the value.
keep smiling
arun
18 years ago
JSP
You need to change the <form> attribute "encoding" to "enctype" thatz the only error i can see in the HTML.
keep smiling
arun
18 years ago
Uploading in the sense you are uploading the files through the IBM Management Consolse or thru ur application.
Which package you are using for upload like (MultipartRequest)...
keep smiling
arun
18 years ago
tracy,
This error is coming because ur query didnt retrieve any values,its empty, then only the error Exhausted ResultSet error will come.
arun
18 years ago
hi,
if u r using tomcat then follow the steps
1. open server.xml in the conf dir
2. create new context path tag for mapping
<Context path="/path/tobe/given/inurl"
docBase="/path/where/servlets/are/placed"
crossContext="false"
debug="0"
reloadable="true" >
</Context>
3.And then in ur case create "Web-inf" dir inside "C:\servlets"
4.then create "classes" dir inside "web-inf"
5.compile all the java servlets and put the class files inside the classes dir
6.then start the tomcat server from the classes dir
7.check in the url
Ex: http://<hostname>:<port>/<path>/<filename>
thanx
arun
18 years ago