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
]> 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
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
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
>
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
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
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
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
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
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
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
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
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
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:
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
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
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
&
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
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
. 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
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
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
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
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
Hi All
What is the best way to pass a list collection from a Bean to a Servlet?
Thank you
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
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
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
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
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
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
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,
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/
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
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
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]>
// 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
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
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
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
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??
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
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
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
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
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
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
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
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
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
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
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
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
*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
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
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
#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="
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
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
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
>
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
Hi All
I am wondering what is the steps to configure poolman to run with MYSQL
Database over tomcat Apache?
Regards
62 matches
Mail list logo