Ann Toh

Ranch Hand
+ Follow
since Jul 18, 2003
Merit badge: grant badges
For More
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 Ann Toh

Hi,
does anyone know how to write codes on multiple query in the servlets.
that is when the user key more than 1 sql queries, the servlet will need to execute all the queries and display a result.
eg. a user enter the following:
select * from company;
select companyid,companyname from company;

does anyone know how to write codes on prepared statement in the servlet.
eg. when user enter select * from company where companyname=::name and address=::address;
it will need to prompt out something for the user to enter for the 2 input fields.
Thanx in advance
20 years ago
Hi, Can anyone tell me how to write a prepared statement in a servlet??
i need to have 4 things, that are the select, insert, update and delete.
how do i write the prepared statement for the 4 things?? is it using 4 prepared statements or only need just 1 prepared statement??
Thanx in advance...
Hi David O'Meara,
Thank for your help. I didn't notice the "=" sign....
20 years ago
Hi himanshu patel,
i have use method to get the value, but it return a null when there is some values in the textarea... so is there other methods to get the values??
Thank in advance
20 years ago
Hi,
can anybody tell me how to get the values in a textarea. I have copy my codes as below:
<form method="get" action="/SQLassignment/RetrieveServlet">
<textarea rows="10" cols="80" name"sqlField"></textarea>
<br>
<input type="submit" value="Submit Query" name="submitQuery">
</form>
Thanx in advance
20 years ago
Hi Lasse Koskela,
i know that the taglib can only be in jsp file. In this program, i write the tree structure into a jsp file called myfile.jsp. The servlet will run the program and write it into myfile.jsp, after writing it to the myfile.jsp, the servlet will call myfile.jsp to display the tree. the program does work but there is one problem, that is how do i noe whether the user has click which nodes??
20 years ago
Hi
The program is what im currently doing. I write the program into a jsp file then i redirect it to the jsp file to display. Can anybody tell me how do i noe whether the user has click which node, and i need to display things that are related to the nodes that the user has juz click??
fos = new FileOutputStream("C:\\Tomcat 4.1\\webapps\\SDC1\\myfile.jsp");
// Connect print stream to the output stream
p = new PrintStream(fos);

p.println("<html>");
p.println("<head>");
p.println("<title>Files</title>");
p.println("</head>");

p.println("<body bgcolor=\"#ECDFCE\" link=\"blue\" vlink=\"purple\" alink=\"red\" style=\"scrollbar-face-color:#F5DEB3; scrollbar-arrow-color:indianred; scrollbar-track-color : papayawhip; scrollbar-shadow-color:black; scrollbar-highlight-color:''; scrollbar-3dlight-color:#BC7E41; scrollbar-darkshadow-Color:maroon;\" >");
p.println("<table width=\"100%\">");
p.println("<tr>");
p.println("<td width=\"50%\">");

File parentNode = new File(dirName + "\\" + user);

if (parentNode.isDirectory())
{
File[] childNode = parentNode.listFiles();

String parentName = parentNode.getName();

p.println("<%@ taglib uri=\"taglib.tld\" prefix=\"tree\" %>");

p.println("<tree:createTree treePicture=\"images/folder_idle.gif\" nodePicture=\"images/item_doc.gif\" openPicture=\"images/folder_open.gif\" dhtml=\"true\">");
p.println("<tree:addNode code=\"<b>" + parentName + "</b>\">");

for (int i = 0; i < childNode.length; i++)
{
String fileInDir = childNode[i].getName();
addnode.setCode(fileInDir);
String node = addnode.getCode();

if (childNode[i].isDirectory())
{
expandFiles(childNode[i].getAbsoluteFile());
}
}

p.println("</tree:addNode>");
p.println("</tree:createTree>");
}

thanx in advance...

[ October 15, 2003: Message edited by: Ann Toh ]
20 years ago
Hi,
can anybody tell me how to know whether the user has click one of the nodes in the tree?? i'm writing in a servlet prog to write into a jsp file.
thanx in advance...

[ October 10, 2003: Message edited by: Ann Toh ]
20 years ago
Hi Praful Thakare,
thanx for ur help. i can get to link to my jsp page.
20 years ago
Hi Balaji Loganathan,
thank for ur help. actually, i have written the program to display the jsp page but it does not display, so i have to write and save it as a jsp file then i need to point to the jsp file and display it.
can u tell me how to write a redirect() function in the servlet to point to that jsp file??
thanx in advance...
20 years ago
Hi,
now i am writing a servlet to write into a jsp file. which mean i execute the servlet program, the program will write the data(html and others) and save in a jsp file. how do i display the jsp file after i execute the servlet without giving a link to link to that jsp page??
thanx in advance...
20 years ago
Hi Paul Wheaton,
thanx for ur help...i want those trees to have "+" and "-". Actually, i want the tree to show a directory structure juz like the window explorer.
i would like to use the product to do my program, but if there is other better product, i would use that.
im quite new in servlets, im not so familiar with servlets yet..
Do u hav any idea on how to write trees in servlet??
thanx...
20 years ago
Hi,
can anyone tell me how to write a tree view in a servlet??
i hav gone to this website http://www.servletsuite.com/servlets/treetag.htm and i hav download its jar file but i do not know how to write it into a servlet. so can anybody tell me how??
Thanx in advance...

[ October 08, 2003: Message edited by: Michael Ernest ]
20 years ago
Hi Sainudheen Mydeen,
i wan to import a jar file, some of them said need to set the classpath. so now i wan to know whether where to set the classpath?? if i don't want to set classpath, then how do i import the jar file??
thanx in advance...
20 years ago
Hi,
can anybody tell me where to set the classpath??
Thanx in advance...
20 years ago