What is inheritancde for then:-))
Make an abstract action and have this code there...
All your actions will extend this action..And bingo here you go.
-Original Message-
From: Rob [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 14, 2003 6:34 AM
To: Struts Users Mailing List
Subject:
The MonkeyStruts example initiates everything in the constructor of the beans,
and because they're in session memory, there's no issue with having to manage
anything with regards to request scope and bean population. Result: nasty code
in the constructors that shouldn't be duplicated in a real
You've left off the type attribute in the data-source tag. Try
data-source type=org.apache.commons.dbcp.BasicDataSource
don't you get any errors?
Richard Raquepo wrote:
Im use to use DBCP in Struts 1.1RC1
but then mo back to GenericDataSource in Struts 1.1RC2
but it seem's im having a problem
I'm using following lines in jsp..
td
html:checkbox
property=appraiserType/ National Company
/td
td
html:checkbox
Hi -
My logic:iterate tag doesnt loop thru the no of elements in the list :(
Can someone help?
My jsp goes something like this
logic:iterate id=MINESNQueryForm name=MINESNResults
property=arrlstMINESNIS41Records length=%=iNoOfRecDisplayed%
tr onClick=fnSelectedRow(this,'%=iCounter%')
Offset property is there in iterate check it up please
-Original Message-
From: raghu_c [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 12:54 PM
To: [EMAIL PROTECTED]
Subject: logic:iterate issue
Hi -
My logic:iterate tag doesnt loop thru the no of elements in the list :(
Can
Default offset is zero , is it not?
-Original Message-
From: J, Sadhasivam (Cognizant) [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 1:00 PM
To: Struts Users Mailing List
Subject: RE: logic:iterate issue
Offset property is there in iterate check it up please
i believe data-source type=org.apache.commons.dbcp.BasicDataSource is no
longer supported in struts1.1RC2.
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 2:55 PM
Subject: Re: GenericDataSource looping
Hi,
ich have the following Problem:
i use a jsp with several submit buttons each one with its own value. Now I
want to change a form value depending on a select box.
i.e. when the selectboy changes i want the page to reload and haveing one
form valuie changed. Reloading the page is no problem. My
Hi,
i use a Vector property in my FormBean, which itself contains Elements which
also contain vectors.
private Vector datedRanges;
.
.
.
v
class Ranges:
private Vector systems;
private Vector hosts;
iterating over those nested vectors works fine unsing logic:iterate. But
whenever i change
I was just thinking about doing the same because of the many messages
discussing the evils of checkboxes. I would also like to use what you
suggested Andrew -- an empty option that doesn't pass validation.
However, I wonder is it possible to do this type of validation with the
validator?
thanks,
That Im not sure, as Ive not played with the validator myself. It should be
possible, but you may need to use a String property in your ActionForm as
you now have 3 possible values to populate with...
I actually validate in my actions and use string values on my actionforms
for everything
Andrew Hill rta:
That Im not sure, as Ive not played with the validator myself. It should be
possible, but you may need to use a String property in your ActionForm as
you now have 3 possible values to populate with...
What about yes/no/ (empty)?
In this case a (yes|no) mask validator is
Ah,
thanks Andrew,
so perhaps if I set the field to required using the validator I can get the
same effect.
Thanks for your help,
Brian
- Original Message -
From: Andrew Hill [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 10:40 AM
Subject: RE: [OT] FRIDAY: HTML
How to use bean:write with in logic:iterate when we have a collection.
I have got a collections where i want to iterate through each element in the collection
Regards
Bhanu
-
Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger
Hi,
In the below code, nested:greaterThan does perfectly what it is expected to
do.
But nested:equal doesn't do what it is expected to do.
If nested:equal is replaced with the traditional logic:equal, that does the
job perfectly.
I couldn't figure out why.
// a struts form bean name
Any pool that supports the DataSource interface should work, including
the BasicDataSource. The DBCP just isn't being bundled with Struts
anymore. In a future release, the type property will be required, and
you will have to provide your own DataSource implementation.
-Ted.
Richard Raquepo
If you are saying that these four lines appear over and over again,
without ever establishing a connection, then please file a report in
Bugzilla.
In a future release, the GenericDataSource will be unbundled and you
will have to supply your own DataSource implementation. So, if you were
Alen Ribic wrote:
Do you see future in JSF over frameworks such as Struts?
How different are the two in reality?
For a high-level summary, see
http://jakarta.apache.org/struts/faqs/kickstart.html#jsf
and be sure to follow the StrutsMoreAboutJSF link at the end.
The FAQ link is also available
Hey Tib,
thanks for the tip.
I've never used the mask validator before.
If I'm right, it's used for custom regular expression
validation.
So how would you do that for yes|no ?
Something like:
field property=myField
depends=mask
arg0 key=myField/
var
I am trying to introduce validator's javascript in my form but i get:
java.lang.NullPointerException
at
org.apache.struts.taglib.html.JavascriptValidatorTag.doStartTag(JavascriptValidatorTag.java:316)
There is also another problem: when i introduce invalid data, it presents a
blank page
check out the arrays you are using... if there is any...
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 1:55 PM
Subject: Javascript w validator
I am trying to introduce validator's javascript in my form but i get:
Brian McSweeney rta:
So how would you do that for yes|no ?
Something like:
field property=myField
depends=mask
arg0 key=myField/
var
var-namemask/var-name
var-valueyes|no/var-value
/var
/field
Forgive my woeful lack of regular expression
Title: Message
Is anybody got a tip to pre-check a html:radio
y.
Ce message, ainsi que tous les fichiers joints est destin aux seules personnes dont le nom est mentionn comme destinataire. Il peut contenir des
Le Goff, Yoann rta:
Message
Is anybody got a tip to pre-check a html:radio
set the appropriate value in the form _before_ opening the page.
Tib
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
Nop... i am not using arrays.
Pedro
Internet Mail Message
Received from host: daedalus.apache.org
[208.185.179.12]
then you are using an object or var that doesn't exist...
F.
- Original Message -
From: [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 2:13 PM
Subject: Re: Javascript w validator
Nop... i am not using arrays.
Pedro
Internet Mail
thanks for all the help Tib,
I'll give it a try.
Brian
- Original Message -
From: Gemes Tibor [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 12:03 PM
Subject: Re: [OT] FRIDAY: HTML Checkboxes SUCK!!!
Brian McSweeney rta:
So how would
Setting a ping command should help.
Kruse, Matt wrote:
I'm using BasicDataSource, connecting to a Sybase11 server. It seems that
every night, all idle connections are closed by the server (no app
activity), but for some reason that's not detected by the connection pool.
Our app hangs while trying
Kruse, Matt wrote:
GenericDataSource now handles all the pooling and stuff itself, instead of
relying on BasicDataSource, which is fine.
But, it also relies on GenericConnection, of which there are two versions -
one for JDK1.3, one for JDK1.4. And the one for JDK1.3 will _not_ compile
JDK1.4.
The manifest file of the struts.jar of Struts 1.1 RC 2 contains the
following class-path entry:
Class-Path: commons-beanutils.jar commons-collections.jar commons-dig
ester.jar commons-logging.jar commons-pool.jar commons-validator.jar
jakarta-oro.jar struts-legacy.jar
This does not correspond
Thanks for pointing this out. I wonder nobody else has responded to your
message.
What's the point of that kind of change? I read the release notes and
couldn't find anything about this. That's the place where such kinds of
changes ought to be listed!
Reinhard
Kevin Robair wrote:
FYI:
Thanks, i already know the Caldendar classes, it helps but with this
solution i must create three new form variables for each date on a page
of my form, which is not what i want since my date is attached to
another object and i want that each date had her normal property name
(for example
Richard:
Thanks for the help, that would appear to work wonderfully. However, I'm having
difficulty getting this working properly. The documentation
(http://jakarta.apache.org/struts/api/org/apache/struts/taglib/html/package-summa
ry.html#package_description) is a bit on the weak side.
Use this:
logic:iterate id=thisElement name=someList type=java.lang.String
bean:write name=thisElement/
/logic:iterate
This will go through a list of Strings and print out each one. This also
works for lists of non-string objects. Let me know if you need help with
that modification.
Hi there,
This is the first time I've mailed this list so hi to everyone. I think
my problem lies in struts so hopefully this is the correct place to mail
to. I have a JSP page with two submit buttons which are linked to the
same ActionForm and Action with each button corresponding to a different
Nope. But since it *is* an open source project, feel free to add this
feature ;-)
Matt
-Original Message-
From: William Salvucci [mailto:[EMAIL PROTECTED]
Sent: Friday, June 13, 2003 1:19 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: StrutsMenu 1.2?
Can
What's the point of that kind of change?
The '-' character is not a valid javascript variable character so we removed
it.
David
I read the release notes and couldn't find anything about this. That's the
place where such kinds of changes ought to be listed!
Reinhard
Kevin Robair wrote:
FYI:
My apologies, a little more research revealed that I'm a dumbass. I had a link
tag before the base and wasn't being handled properly.
Thanks Richard.
Troy
-Original Message-
From: Poppe, Troy [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 8:58 AM
To: 'Struts Users Mailing
I haven't done anything like that, but it seems to me
that this is XDoclet's arena.
sandeep
--- Aaron Robinson [EMAIL PROTECTED]
wrote:
The most common approach I've seen to using error
messages in code is set up
a bunch of constants somewhere and then use these in
the code...
public
I actually have to remove these entries myself b/c WebLogic 6.1 SP 2 can't handle
them. It throws an ArrayIndexOutOfBoundsException if I leave them in. With these
entries removed, my application still runs fine.
If the entries remain in the manifest file, the correct ones that is, I'd like to
Hi over there,
I'm new into the Struts area and I hope that somebody can give me a piece of help with
implementing Multibox tag into my scenario.
Here is my problem:
I have into the session a simple ArrayList containing ValueObjects. Each ValueObject
is a JavaBean, one of the properties being
Hello,
I' moving my code from Perl to Java/J2EE.
The goal is to integrate 2 systems, to be short
the business is mainly to transfert any
update, insert, delete from sytemA to systemB.
Those 2 sytems use Oracle database.
The requirement doesn't allow me to create any trigger on Oracle databases.
Hi there,
I am working with tomcat 4.1.24, struts 1.1-b3 and java 1.3 on a win2k
system.
I think i have a configutation error - somewhere, or there is something
wrong with forwarding.
Some requests causes 2 threads working on that request. Sometimes they are
overlapping, sometimes one after the
Is it possible to replace:
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean %
with:
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean-el; prefix=bean
%
And get all of the same functionality that tags-bean has?
Thanks,
Matt
I think you get include, message, page, resource, size, and struts. So, not all
of them are EL-enabled, but the others can probably be handled with JSTL.
Quoting Raible, Matt [EMAIL PROTECTED]:
Is it possible to replace:
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean
Matt wrote:
Is it possible to replace:
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean
%
with:
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean-el;
prefix=bean %
And get all of the same functionality that tags-bean has?
Perhaps I misunderstand, but the point of
Makes sense. Good thing I have a common/taglibs.jsp file - this sucker is
getting huge!
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean %
%@ taglib uri=http://jakarta.apache.org/struts/tags-bean-el;
prefix=bean-el %
%@ taglib uri=http://jakarta.apache.org/struts/tags-html;
U can use html:optionsCollection tag instead of html:options.
This will retain the selected value .
From: lcl [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: html:options can not automatically match value
Date: Thu, 5 Jun 2003 10:57:15
My team did something similar to this last year, but we had to write our own
mechanism involving cached flags that would indicate to the session façade
when an entity when had last been used to update the database. But as far
querying the db and recovering the number of records that were added,
Hi all,
I am unable to use arraylists , their indexed props inside logic:iterate tags
either I can have the iteration or i can have the data displayed it seems :D
The problem is
nested:iterate id=MINESNQueryForm name=MINESNQueryForm
property=arrlstMINESNIS41Records length=15
tr
Hi,
has anyone used struts menu to build drop down menu to
any level,
I was trying to use coolmenu3 and it fails when i go
to levels down,
any suggestions, about it
Ashish
=
A$HI$H
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
How about using JMS and message driven beans (MDB)? If your trigger process doesn't
need to be part of the original transaction you could put a message on a
JMS queue from your main business process (presumably the session bean or entity bean).
The MDB will then be sent the message by the
On 6/14/03 8:16 AM, Aaron Longwell [EMAIL PROTECTED] wrote:
Isaac,
I too am in the market for an IDE. Can you give me some details about
what features you like about NetBeans? Are you using any plugins? Any
specific features that make J2EE development quicker?
Thanks,
Aaron
I have
Seems to me it would make more sense to move your business logic to Struts
(e.g., ActionForm.validate() and/or Action.permform()/execute()) before
writing to the database then to hit your database every few seconds looking
for changes
Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange
We have up to three levels down, but use our own displayers/javascript.
How many levels down are you going?
-jaafar
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: struts menu 1.2 question
Hi,
has
There is a demo at http://raibledesigns.com/struts-menu and you can also
download the latest CVS snapshot from here at
http://raibledesigns.com/struts-menu/struts-menu.war
HTH,
Matt
-Original Message-
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 9:47 AM
Thanks for your input but i would like to mention
That the only control that i have on the sytemA is a read only from its database.
Asking this system to do something else before writing to its database will require
Functional changes to that system and the requirement of the project do not allow
-Original Message-
From: Tillin, Dan [mailto:[EMAIL PROTECTED]
Sent: Monday, June 16, 2003 5:58 PM
To: Struts Users Mailing List
Cc: NYIMI Jose (BMB)
Subject: RE: [OT] EJB LIKE A TRIGGER
How about using JMS and message driven beans (MDB)? If your
trigger process doesn't need
Found it: when switching to another module it wasnt get the right message
resource (null object).
Thanks,
Pedro
Internet Mail Message
Received from host: daedalus.apache.org
Has anyone else noted any problems with Struts and Resin 2.19?
__
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
i want to go multiple leyels down, and may be any
level down, also i want the menu to be displayed on
left side if it reaches end of screen
do u have some code sample for writing these
displayers and java script
--- El Harouchi, Jaafar [IT]
[EMAIL PROTECTED] wrote:
We have up to three levels
Isaac,
I have been playing with Eclipse and NetBeans for a few days... I am
leaning toward NetBeans as well. The interface is a little clunkier..
and I'm not much of a fan of the filesystems concept.
I have a question about your external Tomcat comment. I have never
done servlet-debugging
Ashish,
Most of the displayers bundled in with struts-menu go as many levels
down as defined.
The source code is available through:
http://sourceforge.net/projects/struts-menu/
They are demoed at :
http://www.raibledesigns.com/struts-menu/index.jsp
The idea of having the menu go
On 6/16/03 11:09 AM, Aaron Longwell [EMAIL PROTECTED] wrote:
Isaac,
I have been playing with Eclipse and NetBeans for a few days... I am
leaning toward NetBeans as well. The interface is a little clunkier..
and I'm not much of a fan of the filesystems concept.
I have a question about
This discussion would likely be more productive on the nbusers email list.
That being said, Netbeans can definitely attach to any properly
configured external java process and remotely debug it. How you
actually configure that for Tomcat is a bit complicated, although it's
much simpler for
Hi Andrew,
Welcome to the list. Without more details, I can only speculate. Since my
code regularly parses (successfully) input from one form with multiple
buttons, I doubt this is a struts bug, but more than likely a config
issue.
A couple questions:
1. Are you looking at both the HTML page
When I leave my server idle for some time, 10 - 20 min , and then try to
access some , I get this exception
with regards to tiles, I'm using struts 1.1, tiles and ActionServlet instead
of tiles.ActionComponentServlet.
Server is weblogic 81
I'm sure most of the people must be knowing the reason,
I have an html:reset tag in my jsp. When I click on it, I don't seem to
get notified in my action. Is this normal? I have a multipage form and
I'd like reset to go back to the first page.
Also, it looks like after all my work to remove my form class, I will
need to put it back in since
2003-06-16, h keltezssel Gregory F. March ezt rta:
I have an html:reset tag in my jsp. When I click on it, I don't seem to
get notified in my action. Is this normal? I have a multipage form and
I'd like reset to go back to the first page.
Yes. It just resets the form into the state as
if
I have 2 layout definitions, Site.Layout and Context.Layout. The
Site.Layout is pretty much the ClassicLayout. The idea is that the body
attribute of the Site.Layout would be overridden to be other tiles as
needed. I am able to set the body layout to the Context.Layout but I am
unable to change
On Jun 16, 2003, Gemes Tibor [EMAIL PROTECTED] wrote:
|2003-06-16, h keltezéssel Gregory F. March ezt írta:
| I have an html:reset tag in my jsp. When I click on it, I don't seem to
| get notified in my action. Is this normal? I have a multipage form and
| I'd like reset to go back to
2003-06-16, h keltezssel Gregory F. March ezt rta:
Ok, and since the DynaValidatorForm's reset doesn't do anything, this
tag is meaningless in this case. Ug.
The reset method of a form, and the input type=reset
has nothing to do w/ each other at all. They have the same name, and
nothing
On Jun 16, 2003, Gemes Tibor [EMAIL PROTECTED] wrote:
|2003-06-16, h keltezéssel Gregory F. March ezt írta:
|
| Ok, and since the DynaValidatorForm's reset doesn't do anything, this
| tag is meaningless in this case. Ug.
|
|The reset method of a form, and the input type=reset
|has
Thanx for all the info
i will look into it
Ashish
--- El Harouchi, Jaafar [IT]
[EMAIL PROTECTED] wrote:
Ashish,
Most of the displayers bundled in with struts-menu
go as many levels
down as defined.
The source code is available through:
http://sourceforge.net/projects/struts-menu/
I currently use Struts with Resin 2.1.9 and I haven't noticed any problems.
Describe yours more precisely.
- Original Message -
From: Mike Duffy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 7:22 PM
Subject: Struts Tags Breaking with Resin 2.19
Has anyone else
In case no one mentioned it yet, IntelliJ IDEA is an outstanding IDE with
support for running and debugging code running on app servers, including
Tomcat. IDEA has an excellent feature list, but what really sets it apart is
how easy it is to use. Perhaps easy to use is not really the most complete
I can see two options since what you want to do is not
possible:
The reason it is not possible is because there are
different contexts for each tile.
1. You could try and create another tile which
subclasses the context.layout and put in this tile
instead.
2. Move the attributes to the parent
Uh, no, they really do have nothing to do with each other. The reset tag is used
entirely on the client side. The reset method is used on the server side, just
before populating the ActionForm from request parameters. Clicking the reset button
does not call the reset method.
-Original
When my web app (wls7) reloads a struts app it has a couple of
java.io.NotSerializableException exceptions in the log file for the
following objects:
org.apache.struts.config.impl.DefaultModuleConfigFactory
org.apache.struts.action.RequestProcessor
org.apache.struts.validator.ValidatorPlugIn
IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE enough to
work with Struts Project?
- Original Message -
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 1:04 PM
Subject: Re: [OT] IDE with easy tomcat upgrade?
works for me...
On Monday, June 16, 2003, at 03:40 PM, Sergey Smirnov wrote:
IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE enough
to
work with Struts Project?
- Original Message -
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Struts Console plugs into IDEA to help with Struts development.
http://www.jamesholmes.com/struts/
-James
IntelliJ IDEA is an outstanding JAVA IDE. However, is JAVA IDE enough
to work with Struts Project?
- Original Message -
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users
However, clicking an html:cancel/ button does call the reset() method.
Ian D. Stewart
Open Systems Engineer II
Enterprise Midrange - Bank One Infrastructure Operations
[EMAIL PROTECTED]
(614) 213-6100
Karr, David [EMAIL PROTECTED] on 06/16/2003 04:31:39 PM
Please respond to Struts Users
Hello All!
I'm running into some problems getting the
logic:iterate tag to work.
I have a class who's full name is
org.ellism.tir.util.DatabaseConstantsAdapter. It has
a public method, getInstance() that returns an
instance of itself (The class itself is a singleton).
This class has a method
Hi, All,
Many Struts users are concerned about the reset on
a checkbox, and some even *hate* the behavior of the checkbox.
We have a description of the problem and a complete solution to it in
our project Wheels. The source codes for the reset algorithm
are released for your references. See the
I have a problem where I need to keep track of what checkboxes are selected across
multiple pages.
I'm using the same form name/object and just passing a different set of available
items on each page.
For example, let's say I check 2 different items on page one, then I navigate to page
two
Hello!
I'm developing an application with communication between applet and
front-controller (that calls the corresponding Actions). No problem
here, I do that with response.getOutputStream... , works!
The problem comes here: I want to do a forward, with the corresponding
action. For do that I
- Original Message -
From: Jean, Victor [IT] [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 4:49 PM
Subject: Problem Using Multibox tag Across Multiple Pages
I have a problem where I need to keep track of what checkboxes are selected
across multiple pages.
I'm
Hi there,
this is my first post! I have inherited a web-based struts
project that is frankly a mess... I have managed to straighten
out most things except something that is driving me nuts - this
is the problem:
Validation - I have 3 fields that need to be validated - if I do not
enter
On Jun 16, 2003, Karr, David [EMAIL PROTECTED] wrote:
|Uh, no, they really do have nothing to do with each other. The reset tag i
| s used entirely on the client side. The reset method is used on the serve
| r side, just before populating the ActionForm from request parameters. Clic
|
How does your favorite Java IDE help you find problem with Validation
Framework, for example?
- Original Message -
From: Jeff Kyser [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, June 16, 2003 1:41 PM
Subject: Re: [OT] IDE with easy tomcat upgrade?
Post the relevant section of your validation xml file and more info about
your form.
David
Hi there,
this is my first post! I have inherited a web-based struts
project that is frankly a mess... I have managed to straighten
out most things except something that is driving me nuts - this
is
I'm not sure how much this helps, but IDEA can validate any XML file that
has a DTD. If you write Java code to do validations, you can set breakpoints
in it and debug it.
-Max
- Original Message -
From: Sergey Smirnov [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Well, this is what I inherited:
formname=/public/EventRegistration
fieldpage=1 property=registrant.firstname
depends=required,mask,minlength,maxlength
arg0 key=eForm.firstname/
arg1 name=minlength
I have been reading all over the place and can't seem to find
a simple answer to my question. In struts using MVC development what
is the best method to connect to a database. In struts 1.1rc1 you can
specify DataSources but to my understanding you can only access this
datasource from within
The ValidatorBaseForm simply extends ValidatorActionForm - sorry I fergot
to add that...
On Mon, 16 Jun 2003, Aleksandar Matijaca wrote:
Well, this is what I inherited:
formname=/public/EventRegistration
fieldpage=1 property=registrant.firstname
I believe the form name must be the same as what you defined in
struts-config.xml. Try
form name=eventRegistrationForm in your validation rules.
David
Well, this is what I inherited:
formname=/public/EventRegistration
fieldpage=1 property=registrant.firstname
The ValidatorBaseForm simply extends ValidatorActionForm - sorry I fergot
to add that...
Oh, that might be why they used /public/EventRegistration as the form name.
Try extending ValidatorForm and using the bean name defined in
struts-config.xml instead.
David
On Mon, 16 Jun 2003,
Struts stores DataSources defined in struts-config.xml in the ServletContext
so any class can access them. A more common approach is to define your
DataSource in JNDI and have your business objects look it up from there.
Both ways allow for MVC and the Struts configuration is provided as a
1 - 100 of 108 matches
Mail list logo