Originally posted by amit malhotra:
Hello Manjunath,
thanx a lot for the reply, But as far is EJB is concerned I am totally blank,Is this the way normal search engines like Google do it,please reply back
Originally posted by Mike B:
Cheers Bala, that works nicely!
out of interest, can I call any of my code classes from a JSP or do they have to be "special" javabeans". Im trying normal instantiation and then calling the method and getting nowhere.
ie
<jsp: useBean id="nO" class="com.NewObject"/>
nO.getMyName();
this throws an error; if I do it with say, a Date class ie
<jsp: useBean id="dT" class="java.util.Date"/>
String thisHour = String.valueOf(dT.getHours());
this works fine
whats the difference between me calling my own class (which implements Serializable) and the Date class??
Thanks for your help and your time
Mike B
Originally posted by Mike B:
Hiya, Im new to JSP but quite familiar with servlet development. Im trying to call a bean from my jsp page.
the jsp is on my server root (ie d:\arc_server)
i have set up my servlet directory as follows and
my servlets execute from d:\arc_server\web-inf\classes
if I want my jsp page to use a bean where in iPlanet do I tell it find my bean class. Is there some directory that the JSP engine automatcially looks for the beans??
Thanks for your help
Mike B
Originally posted by Rajesh Pydimukkala:
hi,
I am working with I-Planet web server. when ever i am making any changes to my jsp file, i have to delete the version file in ClassCache directory. is there any other way to refresh my page with having to go through the same deletion process.
regards
rajesh
Originally posted by Nathanael Ulrick:
Since you'll be running a servlet, the net driver would probably be the most appropriate....
db2java.zip should already be on the server, in sqllib/java
I would copy this file to the client. It should work even if the two machines are different types. Include this file in your classpath.
Also, you have to execute db2jstrt on the server. If you do not specify any arguments, this will open port 6789.
Connect with the net driver using a url which should look something like this:
jdbc:db2:yourserver:6789/yourschema
Originally posted by Fred Guo:
What type jdbc driver is used? if you use net driver, you have to make sure the listener of the DB started, which port it listen to. If you use app driver, you need to install UDB client software on the machine that your program is running.
Fred
Originally posted by Fred Guo:
What type jdbc driver is used? if you use net driver, you have to make sure the listener of the DB started, which port it listen to. If you use app driver, you need to install UDB client software on the machine that your program is running.
Fred
Originally posted by Nathanael Ulrick:
To use the net driver, you need to have db2jstrt running on the host machine. The default port then would be 6789, although you can specify a different port. I've read somewhere that you'd need db2jstrt running on the client with the same port as well -- I doubt this is the case, but try it if you get stuck. Also, the copy of db2java.zip has to be the same as the one on the server.
If you use the app driver, the client config assistant needs to know about the server, and the port that you'd use won't be the same as the above (usually 50000, if you've only got one instance of db2.)
By the way, the JDBC drivers on 6 and 7 are buggy, so get the latest fixpack (and don't forget to keep db2java.zip in sync.)
You might find a 3rd party driver, eg from HiT Software much simpler to use.
Originally posted by Fred Guo:
My project needs to access DB2 using JDBC. It runs on different machine (Unix, Solaris) from DB2 (AIX). After unix administrator installed DB2 client software and modified the global profile (adding db2profile there), I can run a stand-alone program to access DB2. However, if I integrate the program into a web application and run it from browser, it can't load jdbc driver. Since our web server dose not have servlet engine, we need using a cgi batch file to wrap the env. varibles. I set all necessary env. varibles in the batch file. It seems web server can not communicate with DB2, or create a DB2 instance.
Please help me to fix the problem. Thanks.
Fred