?
-Original Message-
From: Melonie Brown [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 18:30
To: [EMAIL PROTECTED]
Subject: Database backed forms
I have written a very rough website page content
management system using Struts and OJB. (The goal
being to allow end users to modify content without
properties are populated
from the backend model.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 10:41
To: Struts Users Mailing List
Subject: Re: Database backed forms
If there's talk of having action forms populated by themselves then I
wouldn't
with addFormPropertyConfig.
That sounds like a realistic starting point...
Anyone else have any ideas suggestions or corrections?
-Original Message-
From: Melonie Brown [mailto:[EMAIL PROTECTED]
Sent: 18 March 2004 18:30
To: [EMAIL PROTECTED]
Subject: Database backed forms
I have written a very rough website
DynaValidatorActionForm to provide a reset()
implementation. If required, the actionForm's properties are populated
from the backend model.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 10:41
To: Struts Users Mailing List
Subject: Re: Database backed forms
If there's
the Action
form and displays. Then to save, have a 'submitEdit' action.
Sounds like a much better way of going about it...
Thanks.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 11:41
To: Struts Users Mailing List
Subject: Re: Database backed forms
How
.
Sounds like a much better way of going about it...
Thanks.
-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 11:41
To: Struts Users Mailing List
Subject: Re: Database backed forms
How would you suggest implementing view/edit functionality without
pre
, you read from the database and prepopulate the form.
I've never gotten the idea that prepopulating forms is frowned upon,
unless you mean doing it *in* the ActionForm. Dynamic forms (or
generating the ActionForm code) keep you out of all sorts of trouble--
there's nowhere to write the code
:[EMAIL PROTECTED]
Sent: 19 March 2004 11:41
To: Struts Users Mailing List
Subject: Re: Database backed forms
How would you suggest implementing view/edit functionality without
pre-populating action forms?
prepopulating is exactly what i would do, just in an action not in the
action form
that.
Don't worry - I've realised the error of my ways and am moving my code
into actions where it belongs =)
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: 19 March 2004 14:58
To: Struts Users Mailing List
Subject: RE: Database backed forms
From: Brendan Richards
i have tired in triralwith configuring my database
resource in tomcat 5.0.it also return the same err ,even if
iworkedaccording as manual in www.apache.org ,step by step.
the patch accompany with this letter is my
server.xml ,which located in
%CATALINA_HOME%\conf),
strutsTest.xml
on the fly.
I would like to store all of the form components and
validation in the database as well, but I'm not sure
how to represent that in Struts (since there's no
ValidatorActionDatabaseForm).
I would appreciate any advice, tips/techniques, or
gotchas that you guys could provide
, but now they want to
be able to create forms on the fly.
I would like to store all of the form components and
validation in the database as well, but I'm not sure
how to represent that in Struts (since there's no
ValidatorActionDatabaseForm).
I would appreciate any advice, tips/techniques
,
Benz Lim
-Original Message-
From: Paul McCulloch [mailto:[EMAIL PROTECTED]
Sent: Friday, March 12, 2004 8:16 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Database password
Why not put the file in area that is accessible only to the right users and
have the app server run under
'
Subject: RE: [OT] Database password
Users cant access this file, but the file can be accessed by
people that
is not from Information Security area (Seguridad Informática). The
password shouldnt be known neither by the application
deployer, nor the
system administrator, but only
Hi:
Our Struts application is currently in production. This applciation uses
an Oracle Database (we are using DBCP from jakarta).
We access this database through url, user a password and we need to
hide the production database password. The password is stored in a
configuration file
, March 11, 2004 3:49 PM
Subject: [OT] Database password
Hi:
Our Struts application is currently in production. This applciation uses
an Oracle Database (we are using DBCP from jakarta).
We access this database through url, user a password and we need to
hide the production database password
From: Guillermo Meyer [mailto:[EMAIL PROTECTED]
How are your Java Applications get connected to production
databases and how is the database password protected?
I make no claims of best practices. My Factory class that produces
(non-JDBC) connections to my database reads a .properties file
-
From: Lucas Gonzalez [mailto:[EMAIL PROTECTED]
Sent: Jueves, 11 de Marzo de 2004 03:56 p.m.
To: Struts Users Mailing List
Subject: Re: [OT] Database password
If the problem is the user accesing the plain text file by typing the
URL in the browser...
a better solution would be to tell apache
: Guillermo Meyer [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, March 11, 2004 3:59 PM
Subject: RE: [OT] Database password
Users cant access this file, but the file can be accessed by people that
is not from Information Security area (Seguridad Informática
I have to say I think putting it in the source code is the worst possible
option.
If for security reasons (say one of your developers leaves unhappily!) you
need to change your database password, I don't think you want to have to
change your java source, compile and re-deploy your app in order
it in the source code is the worst possible
option.
If for security reasons (say one of your developers leaves unhappily!) you
need to change your database password, I don't think you want to have to
change your java source, compile and re-deploy your app in order to achieve
this. Its got to be better to have
Guillermo Meyer wrote:
Hi:
Our Struts application is currently in production. This applciation uses
an Oracle Database (we are using DBCP from jakarta).
We access this database through url, user a password and we need to
hide the production database password. The password is stored in a
configuration
] Database locking and deadlock
Vic,
Yes, I do get a deadly embrace or deadlock, as the
row locks on the table multiply when they occur,
holding up connections in the connection pool,
eventually consuming all connections, and then all
hell breaks loose.
Were you referring to synchronizing
order.So, there
is no question of cyclic issue. The issue here is
concurrent users may update the same rows of the
concerned table, and at some point, the database
cannot handle the updates, depending on the number of
users.
Do you think using a stored procedure for the
transaction will help
On 08/03/2004 21:31 Shyam A wrote:
[snip]
Is there a possibilty of a deadlock occuring in the
above code when there are mutliple users concurrently
accessing the system.i.e, multiple users update
multiple rows of the table at the same time
I can't see anything in your update that might cause
:
Hi,
I know the subject of my mail is off-topic but I hope
somebody will be able to help me out with my problem.
I experienced a wierd problem today when a deadlock
occured in my database - Oracle 9i, and it locked up
all connections in the connection pool on my server -
OC4J (Oracle 9iAS). I have
problem.
I experienced a wierd problem today when a deadlock
occured in my database - Oracle 9i, and it locked
up
all connections in the connection pool on my server
-
OC4J (Oracle 9iAS). I have a connection pool, which
is
configured on my server- OC4J. It is intialized on
server startup
Hi,
I know the subject of my mail is off-topic but I hope
somebody will be able to help me out with my problem.
I experienced a wierd problem today when a deadlock
occured in my database - Oracle 9i, and it locked up
all connections in the connection pool on my server -
OC4J (Oracle 9iAS). I
PROTECTED]
Subject: [OT] Database locking and deadlock
Hi,
I know the subject of my mail is off-topic but I hope
somebody will be able to help me out with my problem.
I experienced a wierd problem today when a deadlock
occured in my database - Oracle 9i, and it locked up
all connections
connection
each time which could possibly use up (exceed max
allowed) the connections in the pool.
Just a guess.
robert
-Original Message-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 4:32 PM
To: [EMAIL PROTECTED]
Subject: [OT] Database locking
-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 4:32 PM
To: [EMAIL PROTECTED]
Subject: [OT] Database locking and deadlock
Hi,
I know the subject of my mail is off-topic but I
hope
somebody will be able to help me out with my
problem.
I experienced a wierd problem today when
Message-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Monday, March 08, 2004 4:32 PM
To: [EMAIL PROTECTED]
Subject: [OT] Database locking and deadlock
Hi,
I know the subject of my mail is off-topic but I
hope
somebody will be able to help me out with my
problem.
I
Is there a way you can reproduce this w/ iSQL command line?
I assume Sybase, since you said row-level.
My guess is that it's not the sql, but your DAO logic somehow. It would
take you only a day or so to switch that one update to
http://www.reumann.net/do/struts/ibatisLesson1
.V
Shyam A wrote:
Vic,
Thanks again. I'm not in a position to switch to
IBatis as my application is currently in use. Right
now, I'm manually killing the user sessions which lock
up the table in the database. My database is Oracle
9i, and this problem seems to occur only with large
numbers of concurrent users
Do you have a deadly embrace?
Maybe just syncronise w/ semaphorse or the like.
.V
Shyam A wrote:
Vic,
Thanks again. I'm not in a position to switch to
IBatis as my application is currently in use. Right
now, I'm manually killing the user sessions which lock
up the table in the database. My
that the Oracle database is supposed
to handle deadlocks by rolling back one of the
affected transactions. But the row locks seem to occur
intermittently, possibly when there are large numbers
of concurrent users.
I cannot avoid the transaction as the database updates
have to be done as one unit
After following advice from members of this list as to how is best to
learn Struts etc I was pointed to the Java Web Services Tutorial. In
the tutorial it says to use the Pointbase database. I visited their
website and filled in my contact details expecting to be able to
download the file
By get around, I mean use something like MySQL etc
Cheers
A
-Original Message-
From: White A
Sent: 03 March 2004 09:21
To: [EMAIL PROTECTED]
Subject: Pointbase Database No Longer Available for download
After following advice from members of this list as to how is best to
learn Struts
something like MySQL etc
Cheers
A
-Original Message-
From: White A
Sent: 03 March 2004 09:21
To: [EMAIL PROTECTED]
Subject: Pointbase Database No Longer Available for download
After following advice from members of this list as to how is best to
learn Struts etc I was pointed
Hi,
I m using Tomcat5.0 and Struts1.1 and Informix 9.x as database
When i m trying to use DataSource of
org.apache.commons.dbcp.BasicDataSource in my struts application it
gives error
.I have mentioned in struts-config file also abt sdatasource like
username,password,drivername
Hi all,
In my application i want to generate dynamic forms, that means the number of
controls placed on the forms depends on the entries in a config-tabel of a
database.
That means I can add a textbox to a database by adding a record to the
config-table. Additionally i can show different forms
.
Hope that helps you a bit ...
Oliver
Hi all,
In my application i want to generate dynamic forms, that means the number
of
controls placed on the forms depends on the entries in a config-tabel of a
database.
That means I can add a textbox to a database by adding a record to the
config
it
going? (plz mail me off-list at adam.hardy at cyberspaceroad.com)
On 02/11/2004 12:48 PM Stockhammer Thomas wrote:
Hi all,
In my application i want to generate dynamic forms, that means the number of
controls placed on the forms depends on the entries in a config-tabel of a
database.
That means I
: Wednesday, February 04, 2004 12:03 AM
To: 'Slattery, Tim - BLS'; 'Struts Users Mailing List'
Subject: RE: Using Validator To Avoid Database Trip
Things like Hibernate (ORM layer) might do some of these tricks for you.
I think it only updates what has been changed and if you use caching, you
Hi All,
I have an Edit Existing Record screen. When the user clicks the Save
button on this screen, I'm supposed to store the changed data in the
database. However there may be a situation where the user leaves the data
unchanged still presses the Save button. In this case, I want to avoid
I have an Edit Existing Record screen. When the user clicks
the Save button on this screen, I'm supposed to store the
changed data in the database. However there may be a
situation where the user leaves the data unchanged still
presses the Save button. In this case, I want to avoid
, February 03, 2004 7:12 AM
To: 'Struts Users Mailing List'
Subject: RE: Using Validator To Avoid Database Trip
I have an Edit Existing Record screen. When the user clicks
the Save button on this screen, I'm supposed to store the
changed data in the database. However there may be a
situation
Validator.
Sanjay
-Original Message-
From: Dhaliwal, Pritpal (HQP) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 12:03 AM
To: 'Slattery, Tim - BLS'; 'Struts Users Mailing List'
Subject: RE: Using Validator To Avoid Database Trip
Things like Hibernate (ORM layer) might do
Regarding using a database to provide resource bundles;
James Mitchell developed a nifty extention called 'OJBMessageResources'
that uses OJB and there where talk of a new version using Hibernate...
quote
I'm also about to release another implementation that uses Hibernate for
those who don't
: [EMAIL PROTECTED]
- Original Message -
From: Johan Wasserman - CPX Mngd Services [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, February 02, 2004 10:21 AM
Subject: RE: Using database tables for resource bundles
Regarding using a database to provide
Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 4:04 PM
Subject: Re: Database pool full.
We were using the Oracle connection pool implementation, and it is a
configurable item on there. There is no config file, so we used a method
call
Hello,
I am a newbie with Struts and JSP-Programming.
I want to program the following:
I want to access a database (oracle) and want to get the results
(i.e. firstname and lastname).
I connect to the database with JDBC-Calls within the execute-method
in the Action-Class ( or should I use
: Christian Froemel [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 3:34 AM
To: [EMAIL PROTECTED]
Subject: Problem accessing database and html:options
Hello,
I am a newbie with Struts and JSP-Programming.
I want to program the following:
I want to access a database (oracle) and want to get
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 9:02 PM
Subject: Re: Database pool full.
Dear Max,
Yah, this problem occures after visiting some pages,
to use #1 strategy, whether I need to do any changes in configuration or
is
there any other way?
Thanks
I'm backing up what Max said about having a leak somewhere. We used to have
a lot of problems with pooling. We have about 50 database utility beans that
get a connection, perform action on the database then release the
connection.
We discovered that the leak came from one single method that didn't
Dear All,
I am developing an application on resin-2.1.9 web server.
Connection to MYSQL Database is using JNDI. JNDI connection code is written in a class
called DBService.
I am instantiating DBService class where ever i need database connection and getting
connection using getConnection
run out of connections in the database itself, so it can start to act
like strategy #2. This is one aspect of connection pooling that important to
consider when developing web apps.
But, it seems likely that you have leaks somewhere. Some of your requests
are probably not returning their connections
]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 12:30 PM
Subject: Re: Database pool full.
My guess is that you have a connection leak somewhere. Does this problem
start occurring immediately, or does it only show up after visiting a
number
of pages in the site
hi,
is there a way to find out the database driver that is being used in my struts action
classes?
the reason for wanting to be able to do this is that i would like to structure my
class so that, depending upon the driver being used (or alternatively, type of
DataSource) i could either write
connection.getMetadata().getDriverName()...
-Original Message-
From: Claire Wall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 10:14 AM
To: Struts Users Mailing List
Subject: determining the database driver in actions
hi,
is there a way to find out the database driver
cheers Steven!
- Original Message -
From: Ebersole, Steven [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 4:17 PM
Subject: RE: determining the database driver in actions
connection.getMetadata().getDriverName()...
-Original
PROTECTED]
Sent: Tuesday, December 23, 2003 10:28 AM
To: Struts Users Mailing List
Subject: Re: determining the database driver in actions
cheers Steven!
- Original Message -
From: Ebersole, Steven [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003
List [EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 11:29 AM
Subject: RE: determining the database driver in actions
NP. A word of caution... If you are using a container datasource, most of
them wrap the underlying jdbc connections in their own connection
implementations.
Just an FYI
time.
You should really use a different mechanism to achieve this.
Take a look at DBCP (database connection pooling), one of the
jakarta-commons components (http://jakarta.apache.org/commons/dbcp/).
There is one other thing that can go wrong in your code:
You call response.setContentLength(len
Hi all!
I am using Struts from about half a year, and it works good. I have small
webapp using Interbase database by Interclient driver.
When I wanted to use only text data from queries all was fine and simply,
even when single jpegs from blob fields. But now I must display some
images on one
Hi all,
I am trying to do a database connectivity using struts.
Actually, the database resides on another machine and I have tomcat
running on my local machine.
The other machine is a linux box(a linux machine) which has the database
installed(PostgreSQL).
So, apart from the data-sources tags
hi
You have to Configure DataSource and then u can get the refernce of the same
it in the ACtion and can use it
Regards
gary
- Original Message -
From: Divya B Sridhar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 7:03 PM
Subject: Database with struts
Hi
Hi,
follow this link:
http://sourceforge.net/projects/struts/
Regards,
Markus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Divya-,
This link gives you what you exactly need
http://jakarta.apache.org/struts/faqs/database.html
Thanks
R.Karuna
-Original Message-
From: Divya B Sridhar [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 8:33 AM
To: [EMAIL PROTECTED]
Subject: Database
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 7:03 PM
Subject: Database with struts
Hi all,
I am trying to do a database connectivity using struts.
Actually, the database resides on another machine and I have tomcat
running on my local machine.
The other machine is a linux
]
To: [EMAIL PROTECTED]
Sent: Friday, December 05, 2003 4:24 AM
Subject: Re: Database with struts
I disagree.
DataSource should not be used, you should use a DAO, for example
iBatis.com.
.V
Gurpreet Dhanoa wrote:
hi
You have to Configure DataSource and then u can get the refernce of the
same
Another problem. I've setup a database connection in the struts-config.xml.
Is the data-sources position correct? I'm getting the following error:
Cannot find ActionMappings or ActionFormBeans collection
Take a look at the file:
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config
Dynamic Systems [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Another problem. I've setup a database connection in the
struts-config.xml.
Is the data-sources position correct?
No.
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd
--
Martin Cooper
I'm getting
Hi All,
Can any buddy suggest me Database which is free and has JDBC driver. If
possible get me the URL.
Regards,
Vishal Agashivala
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
hi
Try to Use postgreSQL. it is a free based database and can be downloaded
easily from
http://www.postgresql.org
Regards
Gary
- Original Message -
From: Agashivala, Vishal [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 5:34 PM
snip
it is a free based database
/snip
Its on crack???
[EMAIL PROTECTED] 11/25/03 02:35PM
hi
Try to Use postgreSQL. it is a free based database and can be downloaded
easily from
http://www.postgresql.org
Regards
Gary
- Original Message -
From: Agashivala, Vishal [EMAIL
Hey u can use HSQL which is totall free
-Original Message-
From: Agashivala, Vishal [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 7:04 AM
To: Struts Users Mailing List
Subject: [OT] Need Free database
Hi All,
Can any buddy suggest me Database which is free and has JDBC
On Tuesday 25 November 2003 14:38, Ramachandiran, Karuna wrote:
Hi,
Can any buddy suggest me Database which is free and has JDBC driver. If
possible get me the URL.
www.firebirdsql.org
Phil
-
To unsubscribe, e-mail: [EMAIL
do a little homework, buddy. that's a bogus question
that is hardly excused by an [OT] prefix.
-jeff
On Tuesday, November 25, 2003, at 06:04 AM, Agashivala, Vishal wrote:
Hi All,
Can any buddy suggest me Database which is free and has JDBC driver. If
possible get me the URL.
Regards,
Vishal
www.postgres.org -- PostgreSQL. Free. Has a JDBC
driver. Have used this before with Struts. Works
well.
www.mysql.com -- MySQL. Nice free database. I have
used it with only PHP, but I did read that it does
have a JDBC driver.
Regards,
Jenn
--- Ramachandiran, Karuna
[EMAIL PROTECTED
Agreed
Jeff Kyser wrote:
do a little homework, buddy. that's a bogus question
that is hardly excused by an [OT] prefix.
-jeff
On Tuesday, November 25, 2003, at 06:04 AM, Agashivala, Vishal wrote:
Hi All,
Can any buddy suggest me Database which is free and has JDBC driver. If
possible get me
me Database which is free and has JDBC driver. If
possible get me the URL.
Regards,
Vishal Agashivala
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
!
-Original Message-
From: J Janesko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2003 12:54 PM
To: Struts Users Mailing List
Subject: RE: [OT] Need Free database
www.postgres.org -- PostgreSQL. Free. Has a JDBC
driver. Have used this before with Struts. Works
well.
www.mysql.com -- MySQL
more or less looked for for a rather long time.
Something our Oracle wizards marvel about
because thats the first time they can really
stretch out their capabilities without breaking
the OO layer contracts. Think I would miss it
now. Ah, the database. Well, it's the backbone
of all things
I have a Database servlet configured in web.xml, which
intialises a connection pool on Server startup.
However, if the data source is unavailable, I get a
Null Pointer exception on my JSPs, which is
propagated from my Data Access class.
IMO, the problem is that you're accessing the database
Wendy,
Thanks for your mail. I don't know if you fully
understood where I'm coming from! As I said, the
database connection is accessed from a Data Access
class (read model), which is called from my
DispatchAction class. Since the exception is not
caught in my DispatchAction class (the methods
Shyam,
Where in your JSP does the NullPointerException occur? Is it in a method
call in a scriptlet? If so, your JSP is still indirectly accessing the
database. What Wendy suggested was that the the database access class be
invoked from your DisplactAction class and the results be put
understood where I'm coming from! As I said, the
database connection is accessed from a Data Access
class (read model), which is called from my
DispatchAction class. Since the exception is not
caught in my DispatchAction class (the methods throw
Since the connection is being accessed from
3:22 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] Handling database connection exceptions
Shyam,
Where in your JSP does the NullPointerException occur? Is it in a method
call in a scriptlet? If so, your JSP is still indirectly accessing the
database. What Wendy suggested
Richard,
Thanks for your mail. I am pretty sure I don't access
the database in my JSP's. I also use the errorPage
attribute for all my JSP's, however, it does not
handle Null Pointer exceptions that occur due to
problems with database connection.
Given below is the Exception trace...it occurs
Message-
From: Shyam A [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 3:53 PM
To: Struts Users Mailing List
Cc: [EMAIL PROTECTED]
Subject: RE: [OT] Handling database connection exceptions
Richard,
Thanks for your mail. I am pretty sure I don't access
the database in my JSP's. I
Jim, action's execute throws exception; this exposes the container to
deceleertively do this, if you declare an error page in web.xml.
.V
Jimmy Emmanual wrote:
Why don't you throw the exception from the Data Access class and catch it in
DispatchAction and if there is an exception then forward
pages to
handle this the condition where your data access layer can't connect to a
database.
http://jakarta.apache.org/struts/userGuide/building_controller.html#exceptio
n_handler
-Richard
-Original Message-
From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17
suggested and define
an exception handler for your
DatabaseUnavailableException instead of
catching it in the perform() method. This would
enable all of your pages to
handle this the condition where your data access
layer can't connect to a
database.
http://jakarta.apache.org/struts/userGuide
months or so, and just upgraded my
application from Struts 1.1 Beta to the Struts 1.1 Release. I'm deploying
my Struts application to WebSphere 4.0.1 on an OS390 mainframe. I'm using
the GenericDataSource classes in the Struts-Legacy-1.0.jar file to connect
to a DB2 database, which also resides
For those who are in the same newbies problems like me, i found an answer here :
http://www.jguru.com/forums/view.jsp?EID=1120573
I was having Cannot load JDBC Drivers 'null' when i was getting a connection on my
database (getConnection()).
Thx all.
each one to either view or delete the file.
When the user goes to view a file, I retrieve the file from the Oracle
database and send it to a servlet that sets it's content type appropriately
and then streams the file to the response writer.
This works great when it is a file type that the browser
Set following header to set name of attached file.
response.setHeader(Content-Disposition,attachment; filename=\ +
fileName + \);
My two cents:
Do you really want to connect to database and strean file from database.
You may store temp file and check the date of temp file with database
, with links
beside
each one to either view or delete the file.
When the user goes to view a file, I retrieve the file from the Oracle
database and send it to a servlet that sets it's content type
appropriately
and then streams the file to the response writer.
This works great when it is a file type
Message-
From: Manish Singla [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 5:38 PM
To: Struts Users Mailing List
Subject: Re: Downloading a file from a database
Set following header to set name of attached file.
response.setHeader(Content-Disposition,attachment; filename
1 - 100 of 596 matches
Mail list logo