Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!

lee anthony

Ranch Hand
+ Follow
since Jan 23, 2004
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 lee anthony

Can i any body tell me can i use ant to start my tomcat server
Lee
16 years ago
hi
i am using tomcat as my web server ....

please do
Lee
16 years ago
hi
i was trying pull connectio pooling features
by replacing
<data-source type="org.apache.struts.legacy.GenericDataSource">
with
<data-source type="org.apache.commons.dbcp.BasicDataSource">
in my struts config xml
=========Struts-config.xml=================
my datasource looks somthing like...
<!-- <data-source type="org.apache.struts.legacy.GenericDataSource">==================================== Data Source Configuration -->
<!-- ==================================== Data Source Configuration -->
<!-- <data-source type="org.apache.commons.dbcp.BasicDataSource">==================================== Data Source Configuration -->
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="autoCommit"
value="false"/>
<set-property property="description"
value="eProject Data Source Configuration"/>
<set-property property="driverClass"
value="org.postgresql.Driver"/>
<set-property property="maxCount"
value="1000"/>
<set-property property="minCount"
value="1"/>
<set-property property="password"
value="test"/>
<set-property property="url"
value="jdbc ostgresql://192.168.1.202/ep"/>;
<set-property property="user"
value="pguser"/>
</data-source>

</data-sources>
But while in running my tomcat server it throw a exception....
<!-- <data-source type="org.apache.struts.legacy.GenericDataSource">==================================== Data Source Configuration -->
<!-- ==================================== Data Source Configuration -->
<!-- <data-source type="org.apache.commons.dbcp.BasicDataSource">==================================== Data Source Configuration -->
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="autoCommit"
value="false"/>
<set-property property="description"
value="eProject Data Source Configuration"/>
<set-property property="driverClass"
value="org.postgresql.Driver"/>
<set-property property="maxCount"
value="1000"/>
<set-property property="minCount"
value="1"/>
<set-property property="password"
value="test"/>
<set-property property="url"
value="jdbc ostgresql://192.168.1.202/ep"/>;
<set-property property="user"
value="pguser"/>
</data-source>
</data-sources>
============Error from Tomcat=========
SEVERE: Initializing application data source org.apache.struts.action.DATA_SOURCE
org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'jdbc ostgresql://192.168.1.202/ep', cause:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743)
at org.apache.commons.dbcp.BasicDataSource.setLogWriter(BasicDataSource.java:576)
at org.apache.struts.action.ActionServlet.initModuleDataSources(ActionServlet.java:1087)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:472)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:887)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3948)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4271)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:816)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1125)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:518)
at org.apache.catalina.core.StandardService.start(StandardService.java:519)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2343)
at org.apache.catalina.startup.Catalina.start(Catalina.java:581)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
======================================
Can anybody help me ...or advice me a better way for including connection pooling features Thanks ..do help
Lee
16 years ago
my problem is how do i bring it in jtree type view in jsp
16 years ago
In jsp page i need somthing like this, i am using collection
i donot understand how do i use logic iterate to get such a format in my jsp
suggestion please........
TopicSenderDate
Requirement analysis [Sender name]dd-mm-yyyy
RE: Requirement analysis [Sender name]dd-mm-yyyy
RE: Requirement analysis [Sender name]dd-mm-yyyy
RE: Requirement analysis [Sender name]dd-mm-yyyy
System Study[Sender name]dd-mm-yyyy
RE: System study[Sender name]dd-mm-yyyy
RE: System study[Sender name]dd-mm-yyyy
RE: System study[Sender name]dd-mm-yyyy
RE: System study [Sender name]dd-mm-yyyy
System study documents [Sender name]dd-mm-yyyy
RE: Documents [Sender name]dd-mm-yyyy
RE: Uploaded docs[Sender name]dd-mm-yyyy
Table i am using is
e_forum_threads
ThreadId (Auto generated and primary key)
ForumId
userid
intime [date and time]
msgtitle
msgtext
sortby [name of the thread attribute]
level [int]
parent [int] usually thread id.
locked [Boolean]
...........................
plaese tell me how do i proceed
ideas please
some code...if possible
16 years ago
�� �� � � ��
hi
I am using Logic iterate and want to achieve view structure
in jsp (tree type jsp listing)
|Main Topic
---- |---sub topic
-------- |--sub sub topic
---- |--sub 2 topic
-------- |---sub of 2 nd topic
Can any body help with some piece of code ..please
16 years ago
hi
I am using Logic iterate and want to achieve view structure
in jsp (tree type jsp listing)
|Main Topic
---- |---sub topic
-------- |--sub sub topic
---- |--sub 2 topic
-------- |---sub of 2 nd topic
Can any body help with some piece of code ..please
16 years ago
I was trying to pass multiple parameter using html link
.. can anybody help with some piece of code

Thanks in advance
16 years ago
hi everbody
I am using Logic iterate and want to achieve the below format structure
in jsp
|Main Topic
|---sub topic
|--sub sub topic
|--sub 2 topic
|---sub of 2 nd topic
Can any body help with some piece of code ..please
16 years ago
on
Thanks yaar !!!
16 years ago
on
Hi my intension is to refresh the same page..so that that (iterated values)listed value are picked up from diff tables... according to the value selected ...from html:select
jsp page looks like..
first html:select(combo box)
then logic iterate

any help
<html:select property="id" onchange=""> //onchange what should i do
<html ptions collection="colroles" labelProperty="name"
property="id"/>
</html:select>
//onchange what should i do
i tried to put some javascript but did not work
any help......
code piece will be helpful
16 years ago
Hi my intension was to refesh the same page..so that that list value are picked up from diff tables... according to the value selected ...from html:select
any heklp
16 years ago
i need to referesh the same page onchange of html select
<html:select property="id" onchange=""> //onchange what should i do
<html ptions collection="colroles" labelProperty="name"
property="id"/>
</html:select>
//onchange what should i do
i tried to put some javascript but did not work
any help......
code piece will be helpful
16 years ago
Sub prepopluate values of mulitiboxon selection of diff values from combobox

JSP:
i have Role( mentor,student) combo box and PERMISSION as number of multibox
(for example ,,addproject,deleteproject)
Assumption:
mentor is being selected with deleteproject
student is being selceted with addproject
Question is
Next time when is logon
if i selected mentor checkbox with deleteproject should be checked
if i select student the checkbox from (multibox) addproject should be checked
Help will be apprieciated
Note that everything is in DB
16 years ago
Sub prepopluate values of mulitiboxon selection of diff values from combobox

JSP:
i have Role( mentor,student) combo box and PERMISSION as number of multibox
(for example ,,addproject,deleteproject)
Assumption:
mentor is being selected with deleteproject
student is being selceted with addproject
Question is
Next time when is logon
if i selected mentor checkbox with deleteproject should be checked
if i select student the checkbox from (multibox) addproject should be checked
Help will be apprieciated
Note that everything is in DB
16 years ago