Hi,
I am trying to use microsoft's jdbc driver with my struts application, but to no
avail. Here is my datasource definition:
data-source key=DB type=org.apache.commons.dbcp.BasicDataSource
set-property property=description value=My SqlServer pool/
set-property property=driverClassName
:34, Claire Wall wrote:
Hi,
I am trying to use microsoft's jdbc driver with my struts application,
but to no avail. Here is my datasource definition:
data-source key=DB type=org.apache.commons.dbcp.BasicDataSource
set-property property=description value=My SqlServer pool/
set
? And an example from any actions.
Also see the load on start up order as i imagine that the struts
servlet needs to load before your servlets to be able to access the
datasource.
On 27 Feb 2004, at 12:39, Claire Wall wrote:
It gets thrown when the application starts, but then more errors occur
try this.
jdbc:microsoft:sqlserver://SERVERNAME:1433;SelectMethod=cursor
On 27 Feb 2004, at 12:56, Claire Wall wrote:
Mark,
My problem is that I'm switching JDBC drivers - before I was using
weblogic's JDBC driver for SQL Server and I've been using that for a
long
time now
. Where do you
have your mssqlserver jars? i have mine in WEB-INF/lib. and there are three
of them - mssqlserver.jar, msbase.jar, msutil.jar.
claire
- Original Message -
From: Srikanth Gubba [EMAIL PROTECTED]
To: 'Claire Wall' [EMAIL PROTECTED]; Struts Users Mailing List
[EMAIL PROTECTED]
Sent
passwordXXX/password
/datasource
Also, if you need to connect to the same database across multiple web
apps,
you want to look into using JNDI instead of the struts-config.xml file.
HTH,
Ian
Claire Wall
[EMAIL PROTECTED] To: Struts Users
, or something to do with
the driver itself?
I know I'm getting off the struts issue now but any help would be great! :)
- Original Message -
From: Claire Wall [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 27, 2004 3:19 PM
Subject: Re: microsoft
if you use the nested tags rather than the logic and html tags then this
should solve your problem.
- Original Message -
From: Michael Wiles [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, February 06, 2004 12:32 PM
Subject: nested iterators and writing
we store them in the common/lib folder. Then all applications running on
that web server have access to the jars and negates the need for them to go
into the separate WEB-INF/lib folders for each application.
cw :)
- Original Message -
From: alvin antony [EMAIL PROTECTED]
To: Struts
you can use the html:submit and html:cancel buttons from within a form.
They will both actually submit the form to an action, but it is possible to
capture the 'cancel' event in your action and therefore forward the user to
different places depending upon which one they clicked on.
so, for
Do you mean that you want to store checkbox values in a form bean? if so...
You can set up an empty String array in your form bean like this:
String[] checkboxes = new String[]{};
and then in your jsp page you can set the property of a checkbox to this
array, like:
html:checkbox name=FormName
();
Any othet option u know, how to perform in action.
Mail your opinion.
-Original Message-
From: Claire Wall [mailto:[EMAIL PROTECTED]
Sent: Monday, February 02, 2004 3:21 PM
To: Struts Users Mailing List
Subject: Re: Getting the CheckBox Collection Value in FormBean Class
Do you
you can do the following:
html:select name=FormName property=xxx
logic:iterate id=product name=FormName property=ListName
option value=bean:write name=product
property=id/bean:write name=product property=name/
/logic:iterate
/html:select
'property' of the select box should be
html:optionsCollection.
html:select property=ref
html:optionsCollections name=myForm property=myListOfBean
value=id label=name/
/html:select
Regards,
Frank
-Ursprüngliche Nachricht-
Von: Claire Wall [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 2. Februar 2004 13:22
An: Struts Users
Anant,
You can do the following:
set up a boolean flag at the top of the jsp page that will be used to
disable fields on your page like so:
% boolean flag = false; %
and then set this according to the value of the flag in your form using
logic tags:
logic:equal name=FormName property=xxx
I know this is the Struts mailing list but replies are nice and quick here that i'm
gonna post my query to you guys (and gals)
Tomcat keeps on throwing LifeCycle exception errors and produces this error in the log
file:
2004-02-02 17:54:57 StandardManager[/ApplicationName] IOException while
Just thought i'd add that this error might be something completey different
and not necessarily the reason why Tomcat is throwing LifeCycle exceptions..
just i saw the error and put 2 and 2 together..
- Original Message -
From: Claire Wall [EMAIL PROTECTED]
To: Struts Users Mailing List
Hi Paulo,
Assuming that your Bean class contains simple data types you can do the
following:
logic:iterate id=id name=FormName property=VectorName
bean:write name=id property=PropertyName/
/logic:iterate
So, for example, if you had a Bean with two fields, 'name' and 'phone' in
it, your form
This is fine as long as the tag you're using the bean:write.../ is not
another custom tag e.g. html:.../ or logic:.../ etc. It is done like
this:
input type=submit value=bean:write name=FormName
property=Property/ / - make sure you include '/' at the end of the bean
tag.
If you want to use this
You cannot have custom tags within custom tags. As you say you want a
bean:write tag within an html:button tag, then this will not work as
they are both custom tags. You could get around this by using bean:define
and then using the value of this in your html:button tag like so:
bean:define id=a
Hi,
I have a struts application which i am deploying to another server which is running
Tomcat 4.1.29 via a WAR file. The application works fine except for one problem:
I have a servlet which loads on start-up via the following declaration in web.xml:
servlet
-
From: Claire Wall [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, January 16, 2004 1:22 AM
Subject: weird Tomcat prob
Hi,
I have a struts application which i am deploying to another server which
is
running Tomcat 4.1.29 via a WAR file. The application works
hi,
I am trying to install my application on another server (Tomcat 4.1). I have built a
WAR file from an ANT build file but when I install it on Tomcat and try to access it I
get the following error:
HTTP Status 500 -
: invalid flag: C:\Program
[javac] Usage: javac
--
Try putting your tomcat install to c:\tomcat
-Original Message-
From: Claire Wall [mailto:
Sent: 15 January 2004 12:07
To: Struts Users Mailing List
Subject: Tomcat error with compiling JSPs
hi,
I am trying to install my application
Tomcat using your own script (rather than startup.bat)? Or do you have
some
strange classpath in your environment before you start Tomcat?
-Max
- Original Message -
From: Claire Wall [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 4:06 AM
and
all
of a sudden my JSP
wouldnt compile on Tomcat
What is your JAVA_HOME pointing to?
Regards,
-Martin
- Original Message -
From: Claire Wall [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, January 15, 2004 8:44 AM
Subject: Re: Tomcat error
this helps.
Kev
-Original Message-
From: Claire Wall [mailto:[EMAIL PROTECTED]
Sent: 15 January 2004 12:53
To: Struts Users Mailing List
Subject: Re: Tomcat error with compiling JSPs
i see what you're saying, but I've got about 6 applications
running on Tomcat on this server
Hi,
In have an ActionForm which contains an object called 'Details' like so:
public class DetailsForm extends ActionForm
{
private Details details = new Details();
public void setDetails(Details details)
{
this.details = details;
}
public Details getDetails()
{
property=reference/br/
/nested:nest
html:submit/
/nested:form
your formBean (detailsForm) is associated action-path /nested
greetings
Matthias
-Original Message-
From: Claire Wall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 14, 2004 12:36 PM
To: Struts Users Mailing List
hi,
could someone just clarify the difference between 'maxCount' and 'maxActive' propertys
for the data source for me please.
thanks in advance :)
claire w
hi,
I have a jsp page which uploads a file to a database. I have no problems storing the
file in an SQLServer or MySQL database by using the setBinaryStream() method of a
PreparedStatement. The file gets upload no problem.
However, when I try to upload this file to an oracle database (BLOB
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
);
}
return rc;
}
-Original Message-
From: Claire Wall [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 23, 2003 9:44 AM
To: Struts Users Mailing List
Subject: converting a FormFile to a Blob object
hi,
I have a jsp page which uploads a file to a database. I have
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 that is being used in my
struts action classes?
the reason
in the JSP you need to do:
%
String hulp = (String)request.getAttribute(hulp);
%
then you can use:
%= hulp %
often i do this (instead of the one above) to make sure u get the parameter:
%
String hulp = (String)request.getParameter(hulp);
if(hulp==null) hulp =
hi,
i am using Oracle 9i as my datasource and have declared it in my struts-config as
follows:
data-source key=DB type=oracle.jdbc.pool.OracleConnectionPoolDataSource
set-property property=autoCommit value=false/
set-property property=description value=DB_Connection_Pool/
as i understand it, in order to retrieve the servlet context, you need to
use the ServletConfig to retrieve it like so:
config.getServletContext()
this sounds similar to a problem that i had where i was trying to log
something from a servlet, just used the log() method and it through an
The load-on-startup tag determines the order in which the specified
classes are run when the application first starts. so for example, say i had
two servlets which i wanted to start up immediately when the application
starts, i would do the following:
servlet
servlet-namemyServlet1/servlet-name
Hi Antony,
As a rule i always use just forward unless there is a specific need to
redirect to the page you're forwarding to.
For example, say i had an action which saved some details from a form to a
database. if the page is not redirected then if the user were to refresh the
page, the action
caroline,
when the user gets to page2, what is the url displayed in the address box?
is it the action or the jsp page?
claire
- Original Message -
From: Caroline Lauferon [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, December 01, 2003 4:04 PM
Subject:
Hi Sporak,
The name which you have given your object is myObejct so when you try to retrieve
this object off of the request, you need to do:
MyObject o2 = (MyObject)request.getAttribute(myObejct);
and not:
MyObject o2 = (MyObject)request.getAttribute(o);
Doing it this way (the way you have
Ricky,
it is possible to do what you wish to do by doing the following (example
taken from a similiar thing that i did):
logic:iterate id=user name=myForm property=users
bean:define id=id property=id name=user/
html:option value=%= (String)id %bean:write name=user
42 matches
Mail list logo