david, chen

Greenhorn
+ Follow
since Jan 18, 2001
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 david, chen

Hi, there:
I'm going to work on SNMP project both manager and agent stuff by using java. I heard sun has JDMK I can use, and other third-party company like AdventNet has some good stuff for SNMP developer. My question is that: 1. does JDMK can be used for both SNMP manager and agent? 2. JDMK and AdventNet API, which one is better from your experience?
Any information is highly appreciated
David
19 years ago
Hi, there:
The problem probably happens on your URL used in your 1st servlet when you tried to forward request. The URL used in getRequestDispatcher(url) is supposed to be one relative to the server root.
David
19 years ago
You may not set "scope" attribute of jsp:userBean correctly. Because the default value is "page". So, please try set your scope attribute as "session". It may help.
David
19 years ago
Hi, there:
When I embedded a java bean in my JSPs, servlets. How do those custom bean events work with those JSPs, servlets? Does anyone have any idea about those issues like: how can JSP, Servlets listen an event fired by a java bean? Or there is no way to catch a bean event in JSP or servlets?
Thanks a lot
David
19 years ago
Hi, there:
Could any one give me some idears about how can I deploy a web application in ORION server? In tomcat, I just copied my war file in /webapps. How can I do in Orion with the same war file? where should I put my war file, and what .xml file should I modify to deploy. Thanks a lot.
David
19 years ago
Hi, there:
Could any one give me some idears about how can I deploy a web application in ORION server? In tomcat, I just copied my war file in /webapps. How can I do in Orion with the same war file? where should I put my war file, and what .xml file should I modify to deploy. Thanks a lot.
David
19 years ago
Hi, Cindy, Jimmy:
I tried Cindy's idea, it seems not work (ClassNotFoundException is thrown). Please let me know if it works on your side.
I tried both Class.forName("abc.Abc") and
Class.forName("abc.jar.Abc");
Thanks a lot
David
19 years ago
Hi, Jimmy:
I met the same problem as yours, could you please let me know if Cindy's idea works or not. So, if "Abc.class" in jar file named "abc.jar" should I use class.forName("abc.Abc")?
Thanks a lot
David
19 years ago
Hi, There:
I have a class called Demo.class, I put it in demo.jar file. By using JarInputStream, how can I get Class object for this Demo.class from JarInputStream?

Thanks in advance
David
19 years ago
yes, It's Java API for XML Parsing. Please check sun's website for detail.
Hi, there:
You may try to use "getServletContext().getRealPath("file name")"
like:
String realPath=getServletContext().getRealPath("/WEB-INF/");
Hope it works.
David
19 years ago
Hi, Michael:
Thank you very much for your reply. I tried to use <%@page buffer="8kb"%> in my jsp page. It looks better, but still have such problem sometimes. So, here are my 2 questions:
1. When testing, I run weblogic 5.1 on my local machine windows 2000, and run apache on HP Unix, will it cause that problem? (when deploying, both weblogic and apache are supposed to run on HP Unix).
2. Will bigger kilobytes (like 64kb, 128kb) defined in buffersize help? Is the bigger value the better?
Thanks again for your help


Originally posted by Michael Hildner:
We've had a similar problem, although using WL6.0. Haven't found a good solution yet, but a work-around is to set the buffer size.
In a servlet, you can use:
response.setBufferSize(bufferSizeInBytes);
In a .jsp, you can use:
<%@page buffer="8kb"%>
Note that setBufferSize takes the actual number of bytes, while the page directive uses kilobytes.
Let me know if you find a better solution.


19 years ago
Hi, there:
We have both apache and weblogic5.1 running on HP Unix, with apache as webserver, and weblogic as application server. And, I have a JSP project deployed on weblogic. Everything looks fine when only weblogic server running on my local machine, however, by integrating weblogic with apache, sometimes I can't get the whole HTML file, when I used IE5.5 as browser, and checked the source code, I found only (40%,50%, 60%...)HTML code is there. Further more, when I refreshed, or went back and forth, the page looks fine (got 100% HTML code). It's really appreciated if anyone can help me on that.
19 years ago
Hi, there:
We have both apache and weblogic5.1 running on HP Unix, with apache as webserver, and weblogic as application server. And, I have a JSP/Servlet project deployed on weblogic. Everything looks fine when only weblogic server running on my local machine, however, by integrating weblogic with apache, sometimes I can't get the whole HTML file, when I use IE5.5 as browser, and check the source code, I found only (50%, 60%...)HTML code is there. Further more, when I refresh, or go back and forth, the page looks fine (got 100% HTML code). It's really appreciated if anyone can help me on that.
19 years ago
I met the exact same problem as Kedar listed below. And if you use "select xx, xx, xxx, xx from sample" instead of "select * from sample", everything will be find (you can get both scrollable, and updatable resultset). So, if any one knows why "select * ...." sql will cause such problem. Thanks in advance
David

Originally posted by kedar kanade:
i have created a resultset using following code
Class.forName("oracle.jdbc.driver.OracleDriver");
Connection con=DriverManager.getConnection
("jdbc racle:thin:@w88:1521 racle","user","password");
Statement stmt=con.createStatement
(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
ResultSet rs=stmt.executeQuery("select * from SAMPLE");
this code is working well for read only queries but for updates it is giving following exception
java.sql.SQLException: Invalid operation for read only resultset: updateInt
i m not being able to debug
can anybody help???



[This message has been edited by Thomas Paul (edited January 18, 2001).]