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
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 wrote:
Hi all
I have a web application
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 thought that If I wanted to merge
the
forum with my web applications
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 want to pass these numbers, Questions
IDs, from the first page, which i have made
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
to hold
-
Hash: SHA1
Mohammed,
Mohammed Zabin wrote:
If you looked at the exception you will find ClassNotFoundException at
line
66 in the generated servlet, and this occurs withing the try block, so,
i
think it's a problem of Connector.
You are seriously confused, here.
Your code
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
?
Mohammed Zabin wrote:
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
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
the first page in the site, a random numbers
exception detailing the syntax problems with
the jsp.
--David
Mohammed Zabin wrote:
This is my jsp code:
try {
Class.forName(org.gjt.mm.mysql.Driver);
String url = jdbc:mysql://localhost:3306/exam;
Connection con = DriverManager.getConnection(url,root,
exam
)
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 SIGNED MESSAGE-
Hash: SHA1
Mohammed,
Mohammed Zabin wrote:
I have
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 Zabin [EMAIL PROTECTED] wrote
, 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 Servlet
What do you suggest to overcome
(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(HttpServlet.java:803)
On 7/25/07, Mohammed Zabin [EMAIL PROTECTED] wrote
.
--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:mysql://localhost:3306/exam;
Connection con
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:
Your stack trace appears to be incomplete. Could
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 list to that
servlet.
As i have stated above, i used
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 stated way above, and it's worked fine
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 server.xml:
Resource name=jdbc/TestMySql auth
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: Mohammed Zabin [mailto
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
behind the unsuccessfull MySql Connection
Hi All
What is the best way to pass a list collection from a Bean to a Servlet?
Thank you
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
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 List users@tomcat.apache.org
Sent: Monday, July 23, 2007 11:18 AM
Subject: Bean
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
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 worked
fine.
When i came
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
worked
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
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
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=someValueparamY=someOtherValue);
En l'instant précis du 04/07/07 09:20, Mohammed
=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, and i want pass to
this
jsp page, and i want to pass some
to create an hyperlink, just open an html book and look for tag
a href=../a
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
On 7/4/07, David Delbecq
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/Exam/servlets
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();
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]
To: Tomcat Users List users
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
- for edutainment only
out.println(td + rs.getString(col_foo) + /td);
}
-Tim
Mohammed Zabin wrote:
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
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??
and persistence
things handled in ONE engine.
- Original Message -
From: Mohammed Zabin [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, June 19, 2007 9:26 AM
Subject: Design
Hi All
I am developing an online exam site as a graduation project. I have some
.
- Original Message -
From: Mohammed Zabin [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, June 19, 2007 9:42 AM
Subject: Re: Design
I am using a Tag that render the whole questions, can i create another
tag
that deals with user request?
On 6/19/07, Kevin
web.xml : web app deployment desc, Resource Ref
your.jsp: imports, active code
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
/
in Context.xml, and i removed all occurences of jdbc class drivers but in
CATALINA_HOME/lib.
By the 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
-
Hash: SHA1
Mohammed,
Mohammed Zabin wrote:
You know what? I am confusing with this. Shall i put the following code
in
web.xml in my web application or web.xml on config folder, shall i use
server.xml or context.xml
Use META-INF/context.xml in your WAR file or deployment directory. Don't
use
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 PROTECTED]
Subject: Re: DBCP
i
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:
Thank you
Lib folder
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 :
Resource name=jdbc/myoracle auth=Container
type=javax.sql.DataSource driverClassName=
oracle.jdbc.OracleDriver
Thank you Pid
Yeah, where exactly in the server.xml did you put this?
I put it in GlobalNamingResources 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 my
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 [EMAIL PROTECTED] 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
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 GlobalNamingResources tag in server.xml
*Hi All*
**
*I want to use DBCP to connect my localhost Oracle Database, I have write
the following in servlet.xml file:*
Resource name=jdbc/myoracledb auth=Container
type=javax.sql.DataSource /
ResourceParams name=jdbc/myoracledb
parameter
namefactory/name
username=scott password=tiger maxActive=20 maxIdle=10
maxWait=-1/
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]
Enviado el: jueves, 24 de mayo de 2007 12:03
=javax.sql.DataSource
driverClassName=oracle.jdbc.driver.OracleDriver
url=jdbc:oracle:thin:@192.168.1.1:1521:SIDBD username=scott
password=tiger
maxActiVe=3 maxIdle=1 maxWait=-1 /
/Context
-Mensaje original-
De: Mohammed Zabin [mailto:[EMAIL PROTECTED]
Enviado el: jueves
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
to use Oracle Database?? anyhelp
Regards,
Zdenek
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
to use Oracle Database?? anyhelp will be appreciated.
Jotnarta
-
To start
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=1489914
Hope that helps.
FooShyn
Mohammed Zabin wrote:
Thank you buddy, I have another confusing question for me,
I have two
the Datasource would do.
HTH
FooShyn
Mohammed Zabin wrote:
Thank you Foo,
I but the following in the context.xml:
*Resource name=Name
auth=Container
type=oracle.jdbc.pool.OracleDataSource
factory=oracle.jdbc.pool.OracleDataSourceFactory
user=hr
password=hr
)
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 lookup
name.
HTH
FooShyn
Mohammed Zabin wrote:
Thank you Foo for your
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*
*Resource name=jbdc/myoracledb auth=Container
Hi All
I am wondering what is the steps to configure poolman to run with MYSQL
Database over tomcat Apache?
Regards
59 matches
Mail list logo