Hi,
I have a table:
uid task_id yr
------------------------
1 101 08
2 101 09
3 102 08
4 102 09
5 102 10
I need to determine 2 things:
1) distinct list of yr's
2) count of task_id's for a particular yr
So, in my...
Hi all,
I have a link on my page that allows users to add a title (heading) to the page. It does so by showing a textbox and button when they click on the "Click to add title" link. I'm basically trying to tack a "title" param to the current url like this:
<a href="javascript:;"...
Hi,
I'm executing a query with JSTL and trying to assign resultset values to variables using the <c:set> tag like this:
<c:catch var="err1">
<sql:query dataSource="jdbc/asdf" scope="page" var="detail">
MonthlyProgressReport ${contractorID}, '${taskID}'
</sql:query>
</c:catch>
<c:forEach...
No, it's actually (in this case) a select element with the multiple attribute added. So when I use "request.getParameterValues" it treats it as an array.
I've got the same problem when I use a for loop on an different array:
String CommaDeleneatedString =...
Hi,
I'm very new to JSP. When I use a for loop to iterate through an array, it always prints "null" at the end of the loop.
Here's how I'm using it:
String[] myArray = request.getParameterValues("selectElement");
int i;
for (i=0; i < myArray.length; i++) {
out.println("myArray[" + i +...
Kool!
Nice solution JK, "unorthodox" maybe, but so is making me build an app with a poorly designed 2000+ record table. I'd love to restructure the table, but I try keep the interns on my good side. LOL
Thanks for the help!
...3 12
I'm trying to write a query that will return rows where a specific integer value is present.
When I use the LIKE clause...
SELECT *
FROM myTable
WHERE States LIKE '%1%'
it returns:
RecordID States
------------------------------
1 1
2 1,2
3 12...
Hi,
I'm linking to a SQL Server view to generate a report in Access. In my view, I'm selecting a bit field that has some null values. When I select the bit field, I convert it to CHAR() so that any null values show as empty strings in Access:
select ISNULL(CONVERT(char(20),bit_field1),'') AS...
Hi,
I have a query that adds together a number of bit fields together to basically give me the "number of true values" for a record:
select field1, field2, cast(bol_field1 as int) + cast(bol_field2 as int) as trueCount
from myTable
My problem is that either bol_field1 or bol_field2 can be...
Thanks much for the help...
Yes, I am still getting the same error...
Here's the source of the page that generates the form:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="includes/style.css" type="text/css" rel="stylesheet">
<script>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.