Re: Web app and Forum

2007-08-18 Thread Mohammed Zabin
them to live under the same roof, I would think it would be > much easier to deploy two webapps and be done. > > --David > > Mohammed Zabin wrote: > > No, It's just I am using an open source forum, a huge project, with > > hundredes of class and jsp files. I though

Re: Web app and Forum

2007-08-18 Thread Mohammed Zabin
]> wrote: > > I doubt it. Webapps are intended to be independent of each other like > software applications on your desktop or notebook. My question is why > would you want to? Is the database some file based db like derby or > berkley db? > > --David > > Mohammed Zabin

Web app and Forum

2007-08-18 Thread Mohammed Zabin
Hi all I have a web application, and I wanted to add a forum for this application, i used mvnforum ( an open source forum). My question is : Can I jar two web applications in one file?? both applications use the same database. ?? any help please

Re: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread Mohammed Zabin
java:comp/env/jdbc > Entry :db2universal: org.apache.naming.ResourceLinkRef > It is not null > > connPoolDataSource.getServerName() :null > Port:446 > DB Name:null > Driver type :2 > Timeout :0 > User :null > > Is there any way to print out the parameters that are passed along with >

Re: registering a DB2ConnectionPoolDataSource in tomcat 5.5

2007-07-27 Thread Mohammed Zabin
I didn't work on DB2 before, but i have configured Oracle and MySql database in the same way. First, you have to get the ideal connector for DB2, jar file, and place it inside CATALINA_HOME/lib, or JAVA_HOME/lib/ext. Second, Define your resource name, you already did. Thrid: Add extra informatio

Re: MySql Connector

2007-07-26 Thread Mohammed Zabin
list are the best developers in the world. ;) On 7/26/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Mohammed, > > Mohammed Zabin wrote: > > If you looked at the exception you will find ClassNotFoundException

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
On 7/27/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: > > Ok, in the first page, which use a tag, I generate 10 random numbers. and > generate a SQL statement containing this numbers like the following: > SELECT * FROM table WHERE id in ( 2, 3, 5, 10, etc). I use a string

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
or multiple requests to have the same set of questions. On 7/27/07, Pid <[EMAIL PROTECTED]> wrote: > > Caldarale, Charles R wrote: > >> From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > >> Subject: Re: Bean and Servlet > >> > >> My Problem is that, I

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
l not work, but i think that storing these ids in a session is a good choice, isn't it? If you have any comments please post it. On 7/26/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > > Subject: Re: Bean and Se

Re: MySql Connector

2007-07-26 Thread Mohammed Zabin
er the jsp compile fails to generate a .class file. > There has to be an earlier exception detailing the syntax problems with > the jsp. > > --David > > Mohammed Zabin wrote: > > This is my jsp code: > > try { > > Class.forName("org

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
I have changed like this: pageContext.getRequest().setAttribute("InQry", qry); and retrieve it in the servlet like this: inQry = (String)request.getAttribute("InQry"); But when using request attributes, inQry will be null when retrieved? On 7/26/07, Mohammed Zab

Re: MySql Connector

2007-07-26 Thread Mohammed Zabin
jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) Any suggestions, please? On 7/25/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > > -----BEGIN PGP

Re: Bean and Servlet

2007-07-26 Thread Mohammed Zabin
What do you suggest to overcome this problem? On 7/25/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Mohammed Zabin [mailto:[EMAIL PROTECTED] > > Subject: Re: Bean and Servlet > > > > I will tell you the procedure; At each time the user clickes

Re: MySql Connector

2007-07-25 Thread Mohammed Zabin
mcat (preferably downloaded from the tomcat website) and check the code there? --David Mohammed Zabin wrote: > This is all the exception message, I looked inside logs folder, i > found an > empty file, it continas nothing :~ > > On 7/25/07, David Smith <[EMAIL PROTECTED]> wrote:

Re: MySql Connector

2007-07-25 Thread Mohammed Zabin
ode in question. --David Mohammed Zabin wrote: > For test purposes, i have wrote the following code as a java program > and it > worked fine, but when I tried it in a jsp page i got the following error: > > Class.forName("com.mysql.jdbc.Driver"); > String url = "jdbc:mys

Re: MySql Connector

2007-07-25 Thread Mohammed Zabin
JspCompilationContext.compile(JspCompilationContext.java:566) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service

Re: MySql Connector

2007-07-24 Thread Mohammed Zabin
ur web.xml as described in the how-to's. It doesn't hurt and is part of the servlet spec. --David Mohammed Zabin wrote: > No, the same error, You know what David?? I put nothing in web.xml, I am > confused about this issue, when to use web.xml, and it might be the > reason &

Re: Bean and Servlet

2007-07-24 Thread Mohammed Zabin
I will tell you the procedure; At each time the user clickes the first page in the site, a random numbers will be generated and stored in the session. So, i think that each user has its own numbers, right? On 7/24/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Moham

Re: MySql Connector

2007-07-24 Thread Mohammed Zabin
ished"); Essentially when you lookup java:comp/env/jdbc/TestMySql, that's the full JNDI path to the DataSource and returns a DataSource type object, not a Context type object. --David Mohammed Zabin wrote: > Ok thank you, I did the following as you have stated: > > 1. in s

Re: MySql Connector

2007-07-24 Thread Mohammed Zabin
. I think I saw you using java:/comp/env/jdbc/TestMySQL in one of your posts. 5. Please post relevant messages from your logs if this isn't working. --David Mohammed Zabin wrote: > Would you please be more specific? which file you mean? I have created > Oracel connection Pool as the sta

Re: Bean and Servlet

2007-07-24 Thread Mohammed Zabin
fter it was added and before the end of the request. --David Mohammed Zabin wrote: > Actually, I wanted to pass this list from within a Tag to be used inside > another Servlet class, (i.e. the tag class after finishing rendering its > elements, goes to a servlet, so, i need to pass this lis

Re: Bean and Servlet

2007-07-23 Thread Mohammed Zabin
his list to live between requests, you need to place it in the session. --David Mohammed Zabin wrote: > Thank you Johnny, > To be specific this is my question > Hi all > > I am trying to pass an object from a tag to a servlet. i did the > following, > > 1. In the tag

Re: Bean and Servlet

2007-07-23 Thread Mohammed Zabin
ervlet session and setAttribute" you will be on your way... I think ;) This area of servlet programming is one of the things that make it such a powerful technology. Have fun... - Original Message - From: "Mohammed Zabin" <[EMAIL PROTECTED]> To: "Tomcat Users Lis

Tags and Servlets

2007-07-23 Thread Mohammed Zabin
Hi all I am trying to pass an object from a tag to a servlet. i did the following, 1. In the tag class, i put: pageContext.getRequest().setAttribute("QList", list); The above Tag will go to a servlet, i need to read the above request attribute in the servlet, how can i do this?, i tried Lis

Bean and Servlet

2007-07-23 Thread Mohammed Zabin
Hi All What is the best way to pass a list collection from a Bean to a Servlet? Thank you

Re: MySql Connector

2007-07-22 Thread Mohammed Zabin
On 7/22/07, Pid <[EMAIL PROTECTED]> wrote: >> >> You only need one resource definition. >> You only need a resource link definition if your resource is a global >> one. >> >> Simplify your configuration and then post the error message from the >> l

Re: MySql Connector

2007-07-22 Thread Mohammed Zabin
only need a resource link definition if your resource is a global one. Simplify your configuration and then post the error message from the logs so we can see Tomcat says is wrong. p Mohammed Zabin wrote: > Hi All > > I have confiured oracle connection pool on my tomacat 6, and it wor

MySql Connector

2007-07-22 Thread Mohammed Zabin
Hi All I have confiured oracle connection pool on my tomacat 6, and it worked fine. When i came to configure MySql, I repeated the same steps for Oracle databse, with considering the specfication of MySql database. But it's didn't work. Any Help please about configuring MySql, I downloaded MySql

Paging

2007-07-09 Thread Mohammed Zabin
Hi All I want to ask about ResultSet paging. I mean, displaying your records on multiple of pages instead of dumping them all in one page. In ASP using ADO 2, there is a property called page size, when you set the property, your recordset will determine how many page your recordset will be displa

Re: Redirection

2007-07-04 Thread Mohammed Zabin
Yes Thank you, I found it from your first response, *response.encodeURL*, Thank you Buddy, my greetings for Sarkoozi ;) On 7/4/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: No, it's not what i wanted :) I have a servlet page with the following address http://localhost:8080/Ex

Re: Redirection

2007-07-04 Thread Mohammed Zabin
anguages as for how to create an hyperlink, just open an html book and look for tag ... En l'instant précis du 04/07/07 11:58, Mohammed Zabin s'exprimait en ces termes: > Thanks, seems spanish ;), I live Spain, am learning spanish language now, > Gratias, > > EL java es Aburrido

Re: Redirection

2007-07-04 Thread Mohammed Zabin
p?paramX=someValue¶mY=someOtherValue"); En l'instant précis du 04/07/07 09:20, Mohammed Zabin s'exprimait en ces termes: > Hi Everybody > > I have a servlet that renders some database related values, at the > botton of > the page, i want to add a hyberlink to a jsp page,

Re: Redirection

2007-07-04 Thread Mohammed Zabin
Thanks, seems spanish ;), I live Spain, am learning spanish language now, Gratias, EL java es Aburrido On 7/4/07, David Delbecq <[EMAIL PROTECTED]> wrote: String url = response.encodeURL ("/path/to/jsp.jsp?paramX=someValue¶mY=someOtherValue"); En l'instant précis du 04/

Redirection

2007-07-04 Thread Mohammed Zabin
Hi Everybody I have a servlet that renders some database related values, at the botton of the page, i want to add a hyberlink to a jsp page, and i want pass to this jsp page, and i want to pass some values from servlet to jsp??? How could i do this, any help please? Jotnarta

Performance

2007-06-25 Thread Mohammed Zabin
Hi All I have developed a web site that opens a recordset at start, and while looping through records of the main ResultSet i Open a new ResultSet for each record, to get a specific information, then close it. like this: while( rs.next() ) { Statement stmt = dbConn.createStatement(); ResultSe

Re: Null

2007-06-24 Thread Mohammed Zabin
Thank you very much for your detailed illustration. But the compiler complies that there is no such methods isNull() and wasNull() ??? On 6/21/07, Reinhardt Christiansen <[EMAIL PROTECTED]> wrote: - Original Message - From: "Mohammed Zabin" <[EMAIL PROTECTED]>

Re: Null

2007-06-21 Thread Mohammed Zabin
// Evil since this doesn't escape the xml - for edutainment only out.println("" + rs.getString("col_foo") + ""); } -Tim Mohammed Zabin wrote: > Hi All > > Anyone knows how to deal with null values in JDBC ResultSet?? > > I am trying to render a tabl

Null

2007-06-21 Thread Mohammed Zabin
Hi All Anyone knows how to deal with null values in JDBC ResultSet?? I am trying to render a table in jsp page that read its value from the database, sometimes, the database returns null values, and so, the whole table couldn't be rendered. Is there any way to deal with null values. Thanks

Re: Design

2007-06-19 Thread Mohammed Zabin
to proceed with > questionaires. > > > ----- Original Message - > From: "Mohammed Zabin" <[EMAIL PROTECTED]> > To: "Tomcat Users List" > Sent: Tuesday, June 19, 2007 9:42 AM > Subject: Re: Design > > > >I am using a Tag that render the w

Re: Design

2007-06-19 Thread Mohammed Zabin
siness and persistence things handled in ONE engine. - Original Message - From: "Mohammed Zabin" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, June 19, 2007 9:26 AM Subject: Design > Hi All > > I am developing an online exam site as a gr

Design

2007-06-19 Thread Mohammed Zabin
Hi All I am developing an online exam site as a graduation project. I have some questions regardsing the design: 1. In such a program which is a web site that introduce some multiple choice questions, and shows the result of user answers, DO I HAVE TO USE EJB??

Re: DBCP

2007-05-26 Thread Mohammed Zabin
e way, it is the advice of David Smith and Pid. Thank you guys, Thank you ver much :). Jotnarta On 5/26/07, Pid <[EMAIL PROTECTED]> wrote: Mohammed Zabin wrote: > Thank you (Please just reply to the list, not 'all') > You know what, all that advises made me somew

Re: DBCP

2007-05-26 Thread Mohammed Zabin
wrote: Mohammed Zabin wrote: > Thank you Christ >> For instance, I usually see "oracle.jdbc.driver.OracleDriver" instead of >> what you have above. > > It's as you stated above. But with Oracle 9i and onwards, the driver > must be > oracle.jdbc.OracleDriver, anywa

Re: DBCP

2007-05-25 Thread Mohammed Zabin
7;ll find one, thank you On 5/25/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mohammed, Mohammed Zabin wrote: > I put the jar file in my WEB-INF/lib and CATALINA_HOME/lib and CLASSPATH, > but nothing changed, I got the same error

Re: DBCP

2007-05-25 Thread Mohammed Zabin
I put the jar file in my WEB-INF/lib and CATALINA_HOME/lib and CLASSPATH, but nothing changed, I got the same error On 5/25/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: Thank you Pid > Yeah, where exactly in the server.xml did you put this? I put it in tag in server.xml On 5/2

Re: DBCP

2007-05-25 Thread Mohammed Zabin
Thank you Pid Yeah, where exactly in the server.xml did you put this? I put it in tag in server.xml On 5/25/07, Pid <[EMAIL PROTECTED]> wrote: Mohammed Zabin wrote: > Hello Geeks I'm not sure what the appropriate response is but I'll try to sneak something passed

Re: DBCP

2007-05-25 Thread Mohammed Zabin
I did, in Tomcat 6 documentation, it's mentioned that classes12.jar must be placed in CATALINA_HOME/lib, and i put the jar file there, but still, it's don't work On 5/25/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > From: Mohammed Zabin [mailto:[EMAIL PROTEC

Re: DBCP

2007-05-25 Thread Mohammed Zabin
anyways, i put the jar file in my classpath, and this will override the lib folder i think, isn't it? On 5/25/07, Javier Ortiz <[EMAIL PROTECTED]> wrote: Yes but not in the same path as in previous versions. On 5/25/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: > > Th

Re: DBCP

2007-05-25 Thread Mohammed Zabin
Thank you Lib folder in CATALINA_HOME, as mentioned in Tomact 6, isn't it? On 5/25/07, Javier Ortiz <[EMAIL PROTECTED]> wrote: Are you aware of the new placing of files in 6.x? There's a new lib folder. Put the file there and try again. On 5/25/07, Mohammed Zabin <[EMAI

DBCP

2007-05-25 Thread Mohammed Zabin
Hello Geeks Following is my problem, I am trying to configure my Tomcat 6 to connect to my localhost Oracle 10g Database, following is my server.xml file : and i put the following in web.xml: Oracle Datasource example jdbc/myoracle javax.sql.DataSource Container and the following is code is

Re: DBCP

2007-05-25 Thread Mohammed Zabin
a:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) is there any jar file that should be in lib??? On 5/24/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohammed, Moh

Re: DBCP

2007-05-24 Thread Mohammed Zabin
things i'm creating a xml file in the {TOMCATHOME}/conf/Catalina/localhost/AppName.xml With a content like this: # cat /etc/tomcat-5.5/Catalina/localhost/AppName.xml -Mensaje original----- De: Mohammed Zabin [mailto:[EMAIL PROTECTED] Enviado el: jueves, 24 de mayo de 2007 12

Re: DBCP

2007-05-24 Thread Mohammed Zabin
I am using tomcat 6, and another thing, i have changed my configuration parameters to the following: On 5/24/07, David Rodríguez Fernández <[EMAIL PROTECTED]> wrote: What tomcat version do you have? -Mensaje original- De: Mohammed Zabin [mailto:[EMAIL PROTECTED] Envi

DBCP

2007-05-24 Thread Mohammed Zabin
*Hi All* ** *I want to use DBCP to connect my localhost Oracle Database, I have write the following in servlet.xml file:* factory org.apache.commons.dbcp.BasicDataSourceFactory driverClassName oracle.jdbc.OracleDriver

Oracle 10g with Tomcat 6

2007-05-22 Thread Mohammed Zabin
Hi All I want to conigure DBCP to connect to Oracle 10g on my localhost on Tomcat6. I did the following error, I don't know how to solve it, is there is a third-party jar file that must be added to classpath??? *1. I put the following in server.xml* * factory org.apa

Re: JDBC

2007-05-22 Thread Mohammed Zabin
jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)* On 5/22/07, Foo Shyn <[EMAIL PROTECTED]> wrote: Check out ur resource name, it is different from the one u use to get ur connection pooling. The resource name must be the same as your looku

Re: JDBC

2007-05-22 Thread Mohammed Zabin
#x27;t import the class for Context and Initial Context. Put them in as how u inport the Datasource would do. HTH FooShyn Mohammed Zabin wrote: > Thank you Foo, > I but the following in the context.xml: > > * auth="Container" > type="

Re: JDBC

2007-05-22 Thread Mohammed Zabin
IL PROTECTED]> wrote: Not both of them. It's context.xml if u're using Tomcat 5.0 or above, or server.xml if u're using Tomcat 4.1 or below, which is located in the conf folder in Tomcat root path. check this link out : http://forums.oracle.com/forums/thread.jspa?messageID=14

Re: JDBC

2007-05-22 Thread Mohammed Zabin
taSource ds = (DataSource) ctxt.lookup("java:/comp/env/" + poolName); OracleConnection conn = ds.getConnection(); There is used another datasource type in OC4J http://www.oracle.com/technology/sample_code/tech/java/codesnippet/j2ee/jdbc/JDBC_in_J2EE.html Regards, Zdenek On 5/22/07, M

Re: JDBC

2007-05-22 Thread Mohammed Zabin
short <[EMAIL PROTECTED]> wrote: Have a look here.. http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html On 5/22/07, Mohammed Zabin <[EMAIL PROTECTED]> wrote: > Hi All > > Am new on this, i want to know how to configure Database Connection Pooling >

JDBC

2007-05-22 Thread Mohammed Zabin
Hi All Am new on this, i want to know how to configure Database Connection Pooling to use Oracle Database?? anyhelp will be appreciated. Jotnarta

Configuring PoolMan for MySQL

2007-03-28 Thread Mohammed Zabin
Hi All I am wondering what is the steps to configure poolman to run with MYSQL Database over tomcat Apache? Regards