I have a ArrayList containing some data. I want to export this data to excel, csv and xml format.
I am using a web application using jsp and java.
How can I do the export?
User Profile
Collapse
-
Export a list to xml, excel
-
I tried doing this, but it did not work..
<td><input type='text' name=<%="text["+i+"]"%> disabled ></td>
which is why i changed it to
<td><input type='text' name=<%="text"+ i%> disabled ></td>... -
Ya. I need some textboxes.. the number of textboxes is dynamic. So right now, i have put them in a loop and called them text1,text2,etc
SO jsp puts the values in sepearate strings, text1,text2,etc .. Would it be possible to change this to an array or list.....Leave a comment:
-
input from a text box
I am trying to input a set of text values to a form.i am using jsp. I would like to store them in say a list or array. is it possible to do that? -
escaping strings
My query mails because some of my data [varchar fields] contains characters like / , '
Can i do something about it? -
-
Variable as column or table name
Can I use a variable as the column name or table name in a stored procedure. I want to use it for update and insert statements -
-
overhead in creating a new table
I wanted to know the overhead in creating a new table. What i mean is, is it better to have more tables or redundant columns in a single table. -
<code=php>
$query="select * from search";
$result=mysql_q uery($query);
$num=mysql_numr ows($result);
echo $num;
$i=0;
while ($i < $num)
{
$name=mysql_res ult($result,$i, "name");
$rollno=mysql_r esult($result,$ i,"rollno");
echo"<p><b>$rol lno $name</b></p>";
$i++;
}
$year=3;...Leave a comment:
-
query select as input to next query
I wanted to use the select of a mysql query as the input to the next mysql query.
The output of the first query is stored in $result.
Can I do select * from $result.
If not is there any other way. -
configuring phpMyAdmin
i get this error when i try to access domain/phpMyAdmin
Forbidden
You don't have permission to access /phpMyAdmin on this server.
Apache/2.2.0 (Fedora) Server at 172.16.32.14 Port 80
does anyone know why? pls help -
mysql setup
i am trying to set up a mysql server on my system.
i yum installed mysql and mysql-server
i also ran mysql_install_d b
but when i try mysqladmin -u root password 'xxxx', i get error
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'
can someone pls help me -
deleted f: drive
the f drive of my computer was accidently deleted.
is there any way to recover it.
i tried active recovery and it allowed me to create a .DIM image. but i dont know how to read those images. pls help -
view code
how can i view the php code of a web page. i'm able to see only the html from the browser -
-
Are you sure you have write permissions to the database? check in users...Leave a comment:
-
There is no such function as fin.opn
I suppose you mean that fin is a ifstream[or ofstream] object.
Files in c++ are treated as streams. ifstream is input stream and ofstream is for output. These objects are used while reading or writing to a file. the are under the fstream header and i suggest you look that up too.
open is a function used to open a file.
The syntax is like this
void open ( const...Leave a comment:
-
Well. c++ does use char* v
Looks like you haven't learnt about pointers. i suggest you read about them.
When you declare a character as char v, you declare a variable v which hold a single character in it.
For eg- char v='c';
char *v is how you declare a pointer to a character. here *v will contain the memory location[and not the value of the character]. This memory location will contain a single character....Leave a comment:
-
Hi
to check if the input is an integer, you could either check if the character entered is between '0' and '9' or check using isdigit function.Leave a comment:
No activity results to display
Show More
Leave a comment: