risk of upgrading?

2003-08-04 Thread Andy Kriger
Can someone with a bit of in-depth Struts experience comment on the risks of upgrading a project from Struts 1.0 to Struts 1.1? Should my project work without any modifications? Are there any issues I need to be aware of (changes in behavior and the like)? thx andy --

[OT] ServletResponse question

2003-08-06 Thread Andy Kriger
I would like to call a JSP (using jsp:include) passing it some parameters, have that included JSP do its dynamic stuff, and then get the response as a String or byte[] so that I can do some further manipulation with the resulting HTML. Is there any way to get a String or byte[] from a response.get

RE: [OT] TLD question

2003-08-06 Thread Andy Kriger
our server localy. Unplug your machine and look what happens. But the short answer is 'no' it does not. It goes thru your TLD and finds that URL. > -Original Message----- > From: Andy Kriger [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 06, 2003 3:29 PM > To: Struts

[OT] TLD question

2003-08-10 Thread Andy Kriger
I downloaded the JSTL from Sun. In the tld directory there are 2 TLDs for each taglib. Example: c.tld and c-rt.tld Do I need to copy both of these to my WEB-INF dir? Do I need to reference both of these in the JSP <[EMAIL PROTECTED]> directive? thx andy

RE: [OT] TLD question

2003-08-14 Thread Andy Kriger
"; %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"; %> <%@ taglib prefix="sql" uri="http://java.sun.com/jstl/sql"; %> <%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %> Quoting Andy

RE: [OT] Resin does not work with Struts 1.1 Final

2003-08-14 Thread Andy Kriger
Resin definitely does work with RC2 and 1.1 so there's probably a configuration issue either in Resin or in Struts that is causing your error. -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 17:33 To: Struts Users Mailing List Subject: [OT] Resi

RE: Valid Regexp for MM/dd/yyyy matching in a string?

2003-09-10 Thread Andy Kriger
Looks like it should work, you might need to escape the slashes. It's easy enough to test either by using grep on the command line (which is not the best test since there are differences btw Unix regexp and Java regexp) or by writing a test class that uses the ORO library (Validator doesn't use th

getServlet?

2003-09-16 Thread Andy Kriger
The ServletContext.getServlet() method has been deprecated. Is it possible to get a Servlet (or the ServletConfig, which is what I'm really after) in a Struts Action? thx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For addi

using images and modules

2003-01-31 Thread Andy Kriger
JS files which I have in their own dirs. I saw several questions about this in the archives but no answers. Anyone? thx andy kriger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: When i18n isn't Needed

2003-02-03 Thread Andy Kriger
Second that recommendation. If you use a resource file, changes to text strings require a text file mod and a webapp reload. No compilation necessary. That's a big plus. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 10:30 To: [EMAIL PROTEC

RE: [OT] database access philosophy

2003-02-26 Thread Andy Kriger
Check out this article http://www.javaworld.com/javaworld/jw-05-2002/jw-0524-sql.html A nice to way to keep the ResultSet in yr db classes and allow your other classes to remain ignorant of db access. -Original Message- From: Kirby Vandivort [mailto:[EMAIL PROTECTED] Sent: Wednesday, Febr

RE: is Component a reserved word?

2003-02-27 Thread Andy Kriger
java.awt.Component is also in your classpath maybe c:out is trying to cast your object as that instead of x.y.z.Component? -Original Message- From: John Thorhauer [mailto:[EMAIL PROTECTED] Sent: Thursday, February 27, 2003 15:18 To: Struts Users Mailing List Subject: is Component a reserve

RE: is Component a reserved word?

2003-02-27 Thread Andy Kriger
nless he did a > import of it. > So it looks like this is another issue. > Unless there is a component besides java.awt.Component that I > don't know of. > -Tim > > -Original Message- > From: Andy Kriger [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 27,

RE: [Q] Log Viewing tool for Windows environment?

2003-03-12 Thread Andy Kriger
log4j also includes logfactor5 - a GUI log viewer that you activate in the log4j.properties -Original Message- From: Gord Tomlin [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 9:49 To: Struts Users Mailing List Subject: Re: [Q] Log Viewing tool for Windows environment? Log4j n

RE: Can anybody tell how to setup struts in Netbeans IDE

2002-11-21 Thread Andy Kriger
Out of curiosity, how well does Eclipse run on old hardware. I have a Pentium laptop w/96M RAM - NB is my usual IDE but that's right out, even JEdit is a bit painful to work it. thx -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 13:31

RE: Can anybody tell how to setup struts in Netbeans IDE

2002-11-21 Thread Andy Kriger
Engineer/Struts Evangelist http://www.open-tools.org "If you were plowing a field, which would you rather use? Two strong oxen or 1024 chickens?" - Seymour Cray (1925-1996), father of supercomputing > -Original Message- > From: Andy Kriger [mailto:[EMAIL PROTECTED]] > S

how do i set a checkbox as checked w/o referring to a bean?

2002-11-21 Thread Andy Kriger
I want to have a checkbox use the HTML checked attribute. I want to do this without referring to a bean or a property or a value, separate from the Struts architecture (except that I still want to have Struts fill in my form values). Is it possible? I have tried many things. In the form object, I

RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Andy Kriger
According to a response from O'Reilly customer service 'in the next few days' -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 24, 2002 22:20 To: 'Struts Users Mailing List' Subject: RE: [ANNOUNCE] O'Reilly Struts Book Now Available Chuck wrote: > I

RE: RE: [ANNOUNCE] O'Reilly Struts Book Now Available

2002-11-26 Thread Andy Kriger
k Now Available The book is now available on Safari. I worked with them to get it up yesterday. Here's a link to Safari - http://safari.oreilly.com Chuck > > From: "Andy Kriger" <[EMAIL PROTECTED]> > Date: 2002/11/26 Tue AM 10:48:34 EST > To: "Struts Users Mail

validator question

2002-12-02 Thread Andy Kriger
I have an app with multiple forms. Some fields appear on multiple forms (e.g. email). Instead of copy-pasting the field validataion definition, is there a way to define a field element once and refer to it multiple time in the validation.xml file? thx andy -- To unsubscribe, e-mail:

1.1b3?

2002-12-03 Thread Andy Kriger
I noticed that the nightly docs are labelled 1.1-b3-dev (maybe this is nothing new and I'm just unobservant). Is there a b3 milestone build coming soon? Is there a changes file that docs functional changes btw milestones? (as opposed to the diffs btw nightly builds) thx andy -- To unsubscribe,

logic:iterate question

2002-12-03 Thread Andy Kriger
I have a JSP. I have some scriplet code that defines an object and then I want to iterate over that object, but I keep getting an error that the object is not defined in the page scope. Looking at the docs I don't understand what I'm doing wrong. --- <% pageContext.setAttribute("myObj", myObj,

RE: logic:iterate question

2002-12-03 Thread Andy Kriger
this call. Sri > -----Original Message- > From: Andy Kriger [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, December 03, 2002 3:24 PM > To: Struts Users Mailing List > Subject: logic:iterate question > > > I have a JSP. I have some scriplet code that defines an > object and the

any way to turn a checkbox on based on a request value?

2002-12-09 Thread Andy Kriger
I want to have a checkbox checked when a given request attribute is true. The attribute value is not a bean, it is a Boolean object (which makes sense for an on/off control). Is there any way to do this? thx andy -- To unsubscribe, e-mail: For additional commands, e

RE: any way to turn a checkbox on based on a request value?

2002-12-09 Thread Andy Kriger
Since this is a Struts ML, I mean with Struts tags. The form itself is a DynaActionForm and whether the checkbox is turned on or not depends on the Action that preceeds the form display. Looking at the src, it appears that html:checkbox only work with beans (a shortcoming of the tag, imho). To get

sslext problem

2002-12-10 Thread Andy Kriger
I'm using SSLExt to rewrite HTTP/HTTPS links. Sometimes the link from HTTPS to HTTP is being rewritten http://; as opposed to http:; (not the missing webapp and slash). Not sure what's going on. The links work fine on HTTP->HTTP pages. The actions in question have in struts-config.xml. Since

Why no text search on the mailing list archives?

2002-12-10 Thread Andy Kriger
Why doesn't text searching work any more for the mailing list archives at http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED] pache.org You get a message 'Text search not available for this list' -- To unsubscribe, e-mail: For additional commands, e-mail

RE: Best way to handle this in Struts/MVC ?

2002-12-12 Thread Andy Kriger
I put data storage beans that need to be displayed into the request or session and use bean:write and logic:iterate on the JSP. I don't see the sense in creating extra objects targeted to display; just keeping the get/set methods generic (return a Date, not a formatted Date String) should be enough

a question about transaction tokens

2002-12-13 Thread Andy Kriger
I'm wondering how these are used. They're not mentioned in the O'Reilly book or in the docs. After calling generateToken, do I need to wrap my action's execute code in an isTokenValid block to check for an existing token? For example... execute(...) { generateToken(request); if(!i

RE: a question about transaction tokens

2002-12-13 Thread Andy Kriger
i'd love to do that however whenever i text search i get an error 'Text search not available for this list'. i reported this on the mailing list a few days ago but got no response. so, can someone answer my question here? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

how do i set the HTML name attribute of an input element?

2002-12-13 Thread Andy Kriger
I would like to set the HTML name attribute of an input element (e.g. ). The name attribute in Struts html-tag land refers to the form bean backing the HTML form. Is there a different attribute that handles the HTML name attribute? thx andy -- To unsubscribe, e-mail:

RE: a question about transaction tokens

2002-12-13 Thread Andy Kriger
to Action B --> In action B call isTokenValid if you want to continue Token validation call saveToken then route to JSP C. JSP C then routes to Action C --> call isTokenValid then call saveToken route to JSP D If you want to stop validation at anytime call resetToken. HTH b- --- O

RE: JDBC development

2002-12-16 Thread Andy Kriger
The Jakarta project's Torque is another good option. It can generate an XML representation of your db and then from that generated Java objects that represent your dB. If you have FKs setup, it'll even handle object associations (for example, one object containing another object). -Original M

RE: JDBC development

2002-12-16 Thread Andy Kriger
severed from Turbine? The last time I tried it (it's been quite some time) it wasn't exactly easy to use. I also seem to recall hearing there wasn't a great deal of activity on the project - all heresey, so I can't say for certain. Any idea how valid that is? OJB is under ver

responding to session timeouts

2003-01-08 Thread Andy Kriger
This isn't a Struts-specific question, but i'm figuring someone here might know the answer... Is there a way to know when a session times-out and respond to that? (like an event being fired or and having a servlet acting as a listener) There's some cleanup that I need to do in the case that a user

ActionErrors question

2003-01-10 Thread Andy Kriger
I have 2 message-resources defined in my webapp (one has a key defined the other does not). In one action, I am getting messages from the non-default message-resource (the one with a key defined). In that action I also create an errors object and add errors to it... getResource(request, key) Actio

RE: ActionErrors question

2003-01-10 Thread Andy Kriger
So the bundle that holds the errors depends on the bundle that the keys come from? Is there any way to separate this so that all errors always go to one bundle regardless of where the message keys are stored? (that design seems out-of-line with the rest of Struts which usually has good -Origin

RE: ActionErrors question

2003-01-10 Thread Andy Kriger
(oops - sloppy fingers on a friday afternoon - ignore that last message) So the bundle that holds the errors depends on the bundle that the keys come from? Is there any way to separate this so that all errors always go to one bundle regardless of where the message keys are stored? (that design see

RE: [OT] Re: responding to session timeouts

2003-01-14 Thread Andy Kriger
here: http://java.sun.com/j2ee/sdk_1.3/techdocs/api/ Prefix off topic posts with [OT] in the future. Dave >From: "Andy Kriger" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "Struts Users Mailing List"

RE: Active users in a struts web application.

2003-01-15 Thread Andy Kriger
You could also use HttpSessionAttributeListener for a 3rd party to note when objects are put into/removed from session -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 15, 2003 12:19 To: [EMAIL PROTECTED] Subject: Re: Active users in a struts web ap

problem with messagesPresent?

2003-01-16 Thread Andy Kriger
I'm using to test for messages when displaying errors (standard stuff described in the docs). There are form errors However, I am seeing 'There are form errors' on my page even when there are no ActionMessages or ActionErrors (like w

RE: problem with messagesPresent?

2003-01-16 Thread Andy Kriger
Ignore this message. I found the problem and I'm ashamed (missing logic taglib declaration). -a -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 16, 2003 10:44 To: Struts Users Mailing List Subject: problem with messagesPresent? I'm usin

RE: SSL

2003-01-22 Thread Andy Kriger
Are you using the sslext package? -Original Message- From: McRobb, John [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 8:16 To: '[EMAIL PROTECTED]' Subject: SSL We are using struts 1.1 and tiles. How do we specify if a tiled page should be served using ssl or not? i.e like

how do i use a mapped value in bean:write?

2003-01-24 Thread Andy Kriger
I am trying to use mapped values in bean:write but not having any success. * I have a bean named theBean in the session and it defines a method public Item getItem() { ... } * Item defines a method that returns a Map public java.util.Map get Properties() { ... } * The map contains key value pairs e

RE: Struts productivity metrics?

2003-01-27 Thread Andy Kriger
I'll take a stab @ yr questions: 1) What's the typical ramp-up time for an average developer? How long until they become fully productive vs. 'just capable'? What's the most effective way to bring someone up-to-speed? I started with Struts as a skilled Java dev with JSP/servlet experience and n

RE: how do i use a mapped value in bean:write?

2003-01-28 Thread Andy Kriger
those dependent libraries, the problem may be there and not in Struts or your code. -a -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 10:26 To: Struts Users Mailing List Subject: how do i use a mapped value in bean:write? I am trying to use

[validator] ignore whitespace?

2003-01-30 Thread Andy Kriger
Is it possible to have the validator ignore whitespace? Especially in Struts. It'd be nice to not have to pad my regexps with \s* in order to account for this. thx andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

form validation question

2003-03-20 Thread Andy Kriger
I have a validation rule that looks like this... mask ^\s*\d*\s*$ However, it considers the phoneExt field required. Can anyone tell me why? I want the phoneExt field to be optional, and if filled out, to use the given mask. t

form validation question

2004-01-27 Thread Andy Kriger
CONFIG === === LOG MESSAGES === [org.apache.struts.action.RequestProcessor][RequestProcessor] Validating input form properties [org.apache.struts.action.RequestProcessor][RequestProcessor] Validation failed, returning to '/OrderForm.do' Andy Kriger | S

RE: form validation question

2004-01-27 Thread Andy Kriger
> <%=err%> > > > > > > > > === VALIDATION CONFIG === > > > > > > > === LOG MESSAGES === > [org.apache.struts.action.RequestProcessor][RequestProcessor] > Valid

RE: form validation question

2004-01-27 Thread Andy Kriger
te="true" > input="/OrderForm.do" > scope="request"> > > I woud have thought you'd use this instead: type="MyClass" > name="orderForm" > validate="true" > inpu

RE: form validation question

2004-01-27 Thread Andy Kriger
orm in order to do server-side validations. Out of curiosity, you may want to see if client-side validation works first. ... When the submit button is pressed, if the required field is empty, you should get a message window indicating the field is required. Brian Barnett -Original Messa

RE: form validation question

2004-01-28 Thread Andy Kriger
e to check into struts code to really be certain("input" surely has some significance is what i'm thinking..) So just for the heck of it though, what happens if you do say "/web/forms/orderForm.jsp" instead? Andy Kriger wrote: > OrderForm.do = /web/forms/orderForm.j

RE: form validation question

2004-01-28 Thread Andy Kriger
- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 2:46 PM To: Struts Users Mailing List Subject: form validation question I am having a curious problem with form validation. I submit a form, see in the logs that the form fails to validate, however, the webapp does

RE: out> tag inside tag

2004-02-04 Thread Andy Kriger
Try using the struts-el tag library It's an extension of the struts taglib that allows you to use JSTL EL So you example becomes... -Original Message- From: Rahul Mohan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:48 AM To: struts Subject: tag inside tag Hi...I am faci

RE: [OT]CVS client

2004-02-04 Thread Andy Kriger
if you don't need a GUI, you can install cygwin and use the cvs client from that. -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 3:17 PM To: [EMAIL PROTECTED] Subject: [OT]CVS client Importance: High Hi, can anybody s

iteration and EL help needed

2004-02-04 Thread Andy Kriger
tems="${context_tray.items}" varStatus="idx"--%> <%--/c:forEach--%> thx Andy Kriger | Software Mechanic | Greater Than One, Inc. 28 West 27th Street | 7th Floor | New York, NY 10001 P: 212.252.7197 | F: 212.252.7364 | E: [EMAIL PROTECTED]

form validation text coloring question

2002-09-25 Thread Andy Kriger
I would like to have our form change text color of field labels to red if they are required fields that were not filled out when the form was submitted (a common feature of forms). Currently, we are doing custom validation that sets a flag. The JSP checks this flag in tags and creates the a wra

can ActionError be returned by Action?

2002-09-27 Thread Andy Kriger
Is there any way that an ActionErrors object can be returned by Action.perform (in the same way it can be returned by ActionForm.validate)? I would like to use the html:errors tags in my JSP to handle output from exceptions received in the Action.perform method. But I'm not sure how to set the htm

RE: can ActionError be returned by Action?

2002-09-27 Thread Andy Kriger
never mind - found it for those wondering - in an Action class... ActionErrors errors = new ActionErrors(); request.setAttribute(this.ERROR_KEY, errors); -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 12:40 To: Struts Users Mailing List

1.1 release date?

2002-10-02 Thread Andy Kriger
I am interested in using Struts 1.1 for an upcoming project because of the added features (especially validation). However, I don't want to use beta software in a production release. Is there a target date for 1.1rel? thx andy -- To unsubscribe, e-mail: For additio

RE: 1.1 release date?

2002-10-02 Thread Andy Kriger
by all means, use 1.0.2. If you're not so close to release, probably 1.1 >would be best. In the end, it's a judgement call only you can make ;-) >Have you actually tried a nightly build? There's a *lot* of added >functionality there. If you're on a container adhering

logic:iterate question

2002-10-02 Thread Andy Kriger
I have two vectors of the same length. I can iterate over one and retrieve values. How can I use the index of that iteration to reference the other vector? For example vOne = { 1,2,3,4 } vTwo = { a,b,c,d } I iterate over vOne producing 1,2,3,4, , How can I get the output to produce 1:

RE: [OT] Container Wars - Resin and sessions

2002-10-08 Thread Andy Kriger
have you tried... this enables Resin to track the session in the URL -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 08, 2002 9:23 To: Struts Users Mailing List Subject: RE: [OT] Container Wars - Resin and sessions We are using tomcat 4.04

[OT] which object-relational mapping framework?

2002-10-10 Thread Andy Kriger
I'm embarking on a project for which I'd like to use an ORM to abstract the dB access. Since there are so many out there (e.g. I'm considering Castor, Torque, and OJB just from mentions in various Java articles), I'm wondering which frameworks people have had experience with and your opinions on t

RE: [OT] which object-relational mapping framework?

2002-10-10 Thread Andy Kriger
i-bin/wiki?CayenneVsOther So does this Excel file http://members.telocity.com/dcancro/docs/web_dev_products.zip > -Original Message- > From: Andy Kriger [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 10, 2002 11:29 AM > To: Struts Users Mailing List > Subject: [OT

RE: Struts forms best practice

2002-10-11 Thread Andy Kriger
Does this mean that you will have an ActionForm with String fields and a ModelBean that basically has all the same fields but with the correct types? And that ModelBean is passed around the struts framework? If so, how do folks reduce code duplication between the utility ActionForm and the data m

difference between forward and include?

2002-10-14 Thread Andy Kriger
The DTD specifies for attributes named 'forward' and 'include' for action. These have the same documentation. Is there any difference? -a -- To unsubscribe, e-mail: For additional commands, e-mail:

action include or forward attribute not working?

2002-10-14 Thread Andy Kriger
I am setting up the following: a JSP containing a form; the submit action of the JSP calls a Struts Action class. Since I don't really need an action simply to forward to the JSP, I thought I'd use the action include or foward attribute which seems to accomplish this. But I can't make it work. He

standard beans library?

2002-10-14 Thread Andy Kriger
Are there any libraries of common beans like Birthday, Address, etc.? This seems like something that would come up a lot (I know I'm encountering it a bit across projects) and could be reused widely. thx a -- To unsubscribe, e-mail: For additional commands, e-mail:

Question - DynaActionForm and indexed property

2002-10-23 Thread Andy Kriger
I am trying to setup a DynaActionForm to use indexed and named properties. But I'm getting an error and, not knowing BeanUtils very well, I'm wondering if someone can guide me in what I need to do to make this work. In my form... In my struts-config.xml... CreditCard has get/set methods

shopping carts with struts?

2002-10-18 Thread Andy Kriger
Is there a robust open-source shopping cart implementation using Struts? Or failing that, using JSP/Java? -a -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: ChoiceFormat for message formatting?

2002-10-21 Thread Andy Kriger
attws.com] Sent: Monday, October 21, 2002 13:01 To: 'Struts Users Mailing List' Subject: RE: ChoiceFormat for message formatting? > -Original Message- > From: Andy Kriger [mailto:akriger@;greaterthanone.com] > Sent: Monday, October 21, 2002 9:21 AM > > Can ChoiceForm

validator questions

2002-10-21 Thread Andy Kriger
1) Is it possible to override the validator error message when a field fails validation? For example, I have a required field that is missing. I display the default error message at the top of the page. I would also like to change the color of the form field label red. Can I do something like to o

ChoiceFormat for message formatting?

2002-10-21 Thread Andy Kriger
Can ChoiceFormat be used to format messages in the app properties file? For example, the validator error.maxlength is {0} can not be greater than {1} characters. This will produce ' can not be greater than 1 characters' I am trying to use the ChoiceFormat to work so this can be grammatically cor

how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
I am writing a custom rule and I need to know how I can get a handle to a different Field object? (not the one passed into the method in the first place) thx a -- To unsubscribe, e-mail: For additional commands, e-mail:

testing your Struts JSPs

2002-10-22 Thread Andy Kriger
What JUnit extension or JUnit-like tools do folks use to test their JSPs? I am aware of StrutsTestCase but in this instance I need to test form validation on an action that uses an ActionForward directly (no associated Action class). So direct JSP testing makes more sense. -a -- To unsubscribe,

RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
etProperty()); String sp = ValidatorUtil.getValueAsString(object, field.getVarValue("secondProperty-Label")); ... do something ... return true; // or false if the validation fails } HTH, Jerry > -Original Message----- > From: A

RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
ttribute of my ValidatorForm. Does this help? Dave Derry - Original Message - From: "Andy Kriger" <[EMAIL PROTECTED]> > That much I understand - but is it possible to get a reference to the Field > objec that represents that 2nd property? For example,

RE: how do i get a Field object in Validator?

2002-10-22 Thread Andy Kriger
te sure I understand your question then. Are you wanting to manipulate the error message that is being returned? In other words, if one of the 'other' variables fails, then return a message for that failure ? Jerry > -Original Message- > From: Andy Kriger [mailto:akriger@;

question about Action overhead and best practice

2002-10-24 Thread Andy Kriger
I have the current setup JSP (behind an Action) <-> Action -> JSP (behind an Action) The Action in the middle does several things, none particularly large (let's say 10 lines of code each). It would probably be cleaner design to separate the tasks into separate actions. However, I am curious about

question about Action overhead and best practice

2002-10-25 Thread Andy Kriger
I have the current setup JSP (behind an Action) <-> Action -> JSP (behind an Action) The Action in the middle does several things, none particularly large (let's say 10 lines of code each). It would probably be cleaner design to separate the tasks into separate actions. However, I am curious about

Question - DynaActionForm and indexed property

2002-10-25 Thread Andy Kriger
I am trying to setup a DynaActionForm to use indexed and named properties. But I'm getting an error and, not knowing BeanUtils very well, I'm wondering if someone can guide me in what I need to do to make this work. In my form... In my struts-config.xml... CreditCard has get/set methods

RE: Question - DynaActionForm and indexed property

2002-10-25 Thread Andy Kriger
e homegrown conversion method, I believe. -JT -Original Message- From: Andy Kriger [mailto:akriger@;greaterthanone.com] Sent: Friday, October 25, 2002 7:15 AM To: Struts Users Mailing List Subject: Question - DynaActionForm and indexed property I am trying to setup a DynaActionForm to u

reuse select/options?

2002-11-06 Thread Andy Kriger
I have a form that repeats a credit card validation portion multiple times. What is the best way to only have to write html:select/html:options once? Is there a way to give the first use an id and then refer to that by reference? thx andy kriger -- To unsubscribe, e-mail: <mailto:struts-u

form component reuse best practices?

2002-11-07 Thread Andy Kriger
/html:option items)? Do you use a backing static bean and html:options to point to that bean? Any ideas would be appreciated. thanks andy kriger -- To unsubscribe, e-mail: <mailto:struts-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>

indexed properties and form help needed

2002-11-13 Thread Andy Kriger
I know this question gets asked a lot but I've yet to see a comprehensive coverage of how to make this work (the answers are always filling in the blanks of a specific question). I'd be happy to start a tutorial on this once I get my problem worked out. I have a DynaActionForm collecting credit ca

RE: indexed properties and form help needed

2002-11-13 Thread Andy Kriger
02 18:02 To: Struts Users Mailing List Subject: RE: indexed properties and form help needed At end. > -Original Message- > From: Andy Kriger [mailto:akriger@;greaterthanone.com] > > I have a DynaActionForm collecting credit card info. A user > can enter up to > 3 credi

help needed with DynaActionForm

2002-11-14 Thread Andy Kriger
I am trying to set properties of an object using DynaActionForm. In my struts-config.xml I have in the In my JSP I try The CreditCard class has a no-arg ctor and get/set methods for all of its fields. When I load the JSP I get an error Null property value for 'creditCard' I'm guessing that

RE: help needed with DynaActionForm

2002-11-14 Thread Andy Kriger
e pretty useful, but in my opinion they arent versatile enough yet for complex applications/valdation...In the end we choose to retain mostly traditional forms. drew -Original Message- From: Andy Kriger [mailto:akriger@;greaterthanone.com] Sent: Thursday, November 14, 2002 10:25 AM To: S

RE: help needed with DynaActionForm

2002-11-14 Thread Andy Kriger
form). Then I guess it could be expanded to user-objects using a Validatable interface (similar to the Comparable interface used by Arrays.sort). -Original Message- From: Drew Zimber [mailto:drew.zimber@;shaws.com] Sent: Thursday, November 14, 2002 11:00 To: 'Andy Kriger'; '

RE: help needed with DynaActionForm

2002-11-14 Thread Andy Kriger
27;s why i started toying with the direct DynaActionForm.set() in the action class. As far as i explored, that was the only way to get around this. And if you are using the XML validation in conjuction, it gets even messier my friend. dz -----Original Message- From: Andy Kriger [mailto:akr

giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
I have an organizational question. On my current project, we keep SQL queries in our App.properties file to allow us to update the queries without recomiling code. However, this means that (afaik) only the Action can access the query Strings. So, whenever calls are made to our dB class, we have to

RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
ontext.findAttribute( Action.MESSAGES_KEY ); The MESSAGES_KEY is static so you don't need the action. -Original Message- From: Andy Kriger [mailto:akriger@;greaterthanone.com] Sent: Friday, November 15, 2002 2:24 PM To: 'Struts Users Mailing List' Subject: giving biz classes acce

RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
to answer my own question - yes, using PropertyResourceBundle.getBundle() and i'm guessing if i look further MessageResources has a static utility method that does this -Original Message- From: Andy Kriger [mailto:akriger@;greaterthanone.com] Sent: Friday, November 15, 2002 14:

RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
business class because then you're tied to struts. Never import javax.servlet.* or org.apache.struts.* in business logic classes. David >From: "Andy Kriger" <[EMAIL PROTECTED]> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> >To: "S

bean:write, mapped properties and Struts1.0.2?

2002-11-18 Thread Andy Kriger
In Struts 1.0.2, is it possible to do where myBean has methods public String getProperty(String key) public void setProperty(String key, Object value) and there is a map backing the (get|set)Property? thx andy -- To unsubscribe, e-mail: For additional commands, e-

iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
Is there any way to set an iteration increment on the iterate tag? For example, iterate through the array returning every 2nd item. If not, can anyone tell me how I might do this without resorting to scriplets (or only using them minimally)? Here's the code I'm trying to use. The first TD is the l

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
et an increment? Andy How about Quentin -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 16:44 To: Struts Users Mailing List Subject: iterate tag - can you set an incr

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
Quentin -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: 19 November 2002 16:44 To: Struts Users Mailing List Subject: iterate tag - can you set an increment? Is there any way to set an iteration

  1   2   >