RE: out tag inside html:text 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... html-el:text style=${styleVar} .../ -Original Message- From: Rahul Mohan [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 2:48 AM To: struts

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

iteration and EL help needed

2004-02-04 Thread Andy Kriger
property=items indexId=idx html-el:hidden property=itemId value=${item.id} indexed=true/ html-el:text property=quantity value=${context_tray.itemQuantityMap[item]} size=2 indexed=true/ br /logic-el:iterate %--/c:forEach--% thx Andy Kriger | Software Mechanic | Greater Than One

RE: form validation question

2004-01-28 Thread Andy Kriger
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.jsp That shouldn't make a difference. I

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

form validation question

2004-01-27 Thread Andy Kriger
] Validation failed, returning to '/OrderForm.do' 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]

RE: form validation question

2004-01-27 Thread Andy Kriger
][RequestProcessor] Validation failed, returning to '/OrderForm.do' 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

RE: form validation question

2004-01-27 Thread Andy Kriger
forward name=success path=/OrderThanks.do/ /action Regards, Geeta Andy Kriger wrote: 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 not return to the input page (I get a blank page

RE: form validation question

2004-01-27 Thread Andy Kriger
get a message window indicating the field is required. Brian Barnett -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 27, 2004 1:16 PM To: 'Struts Users Mailing List' Subject: RE: form validation question I see an empty page - no HTML, no nothing

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

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

RE: [OT] TLD question

2003-08-14 Thread Andy Kriger
://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 Kriger [EMAIL PROTECTED]: 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

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]

[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

[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

RE: [OT] TLD question

2003-08-06 Thread Andy Kriger
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 Users Mailing List Subject: RE: [OT

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

form validation question

2003-03-20 Thread Andy Kriger
I have a validation rule that looks like this... field property=phoneExt depends=mask arg0 key=phone/ arg1 key=phone.ext/ var var-namemask/var-name var-value^\s*\d*\s*$/var-value /var /field However, it considers the

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

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

RE: is Component a reserved word?

2003-02-27 Thread Andy Kriger
. 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, 2003 3:33 PM To: Struts Users Mailing List Subject: RE: is Component a reserved word? java.awt.Component

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,

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

using images and modules

2003-01-31 Thread Andy Kriger
applies to CSS and 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

[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

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

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

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

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

problem with messagesPresent?

2003-01-16 Thread Andy Kriger
I'm using logic:messagesPresent to test for messages when displaying errors (standard stuff described in the docs). logic:messagesPresent p class=errorThere are form errors/p ul html:messages id=msg li class=errorbean:write name=msg//li

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 using

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

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 [EMAIL PROTECTED] Subject: responding to session timeouts Date: Wed

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)

RE: ActionErrors question

2003-01-10 Thread Andy Kriger
application; the one with the key defined. If you don't want to use the bundle attribute in your call to html:errors... I suggest you move those keys to the default message resource file in your app. -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10

RE: ActionErrors question

2003-01-10 Thread Andy Kriger
in your app. -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Sent: Friday, January 10, 2003 3:34 PM To: Struts Users Mailing List Subject: ActionErrors question I have 2 message-resources defined in my webapp (one has a key defined the other does not). In one action, I am

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

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

RE: JDBC development

2002-12-16 Thread Andy Kriger
? 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 very active development. Andy Kriger wrote

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);

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

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. image). 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: mailto:[EMAIL

RE: a question about transaction tokens

2002-12-13 Thread Andy Kriger
-- 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- --- On Fri 12/13, Andy Kriger

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

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://serverhref;sessionID as opposed to http://server/webapp/href;sessionID (not the missing webapp and slash). Not sure what's going on. The links work fine on HTTP-HTTP pages. The actions in

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: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

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: mailto:[EMAIL PROTECTED] For additional commands,

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

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
: 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 then I want to iterate over that object, but I keep getting an error

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:

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
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 Mailing List [EMAIL PROTECTED] Subject: RE: [ANNOUNCE

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
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]] Sent: Thursday, November 21, 2002 1:42

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

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

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
/logic:iterate /tr /logic:iterate 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 increment

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
/logic:iterate 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 increment on the iterate tag? For example, iterate through

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
: RE: iterate tag - can you set an increment? Certainly. It's available as a scripting variable within the loop (and as a page-scoped attribute). -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] Is it possible to access the idx variable in a scriplet during iteration

RE: iterate tag - can you set an increment?

2002-11-19 Thread Andy Kriger
an expr attribute to those tags, to make it convenient to specify an arbitrary EL expression. Using this, you could do something like: logic-el:match expr=${idx mod 2} value=0 -Original Message- From: Andy Kriger [mailto:[EMAIL PROTECTED]] And last but not least, is it possible to do

bean:write, mapped properties and Struts1.0.2?

2002-11-18 Thread Andy Kriger
In Struts 1.0.2, is it possible to do bean:write name=myBean property=property(key)/ 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:

RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
( 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 access to MessageResources? I have

RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
to answer my own question - yes, using PropertyResourceBundle.getBundle(appResFile) 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:57

RE: giving biz classes access to MessageResources?

2002-11-15 Thread Andy Kriger
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: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: giving biz classes

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 form-bean form-property name='creditCard' type='my.package.CreditCard' / In my JSP I try html:text property='creditCard.type' / The CreditCard class has a no-arg ctor and get/set methods for

RE: help needed with DynaActionForm

2002-11-14 Thread Andy Kriger
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: Struts Users Mailing List Subject: help needed

RE: help needed with DynaActionForm

2002-11-14 Thread Andy Kriger
). 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'; 'Struts Users Mailing

RE: help needed with DynaActionForm

2002-11-14 Thread Andy Kriger
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:akriger

RE: indexed properties and form help needed

2002-11-13 Thread Andy Kriger
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 credit cards on the form. I want to collect this info

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

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-user

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

RE: Question - DynaActionForm and indexed property

2002-10-25 Thread Andy Kriger
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 use indexed and named properties

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 - 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... html:text property='creditCard[0].type' / html:text

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: mailto:struts-user-unsubscribe;jakarta.apache.org 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

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

2002-10-22 Thread Andy Kriger
; // or false if the validation fails } HTH, Jerry -Original Message- From: Andy Kriger [mailto:akriger;greaterthanone.com] Sent: Tuesday, October 22, 2002 11:33 AM To: Struts Users Mailing List Subject: how do i get a Field object in Validator? I am writing a custom rule and I need

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

2002-10-22 Thread Andy Kriger
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, if you wanted to get message arguments from the other

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

2002-10-22 Thread Andy Kriger
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;greaterthanone.com] Sent: Tuesday, October 22, 2002 1:45 PM

RE: ChoiceFormat for message formatting?

2002-10-21 Thread Andy Kriger
: 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 ChoiceFormat be used to format messages in the app

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

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 'field can not be greater than 1 characters' I am trying to use the ChoiceFormat to work so this can be

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: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

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: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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.

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: mailto:[EMAIL PROTECTED] For additional commands, e-mail:

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

[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

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

2002-10-10 Thread Andy Kriger
?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] which object-relational mapping

RE: [OT] Container Wars - Resin and sessions

2002-10-08 Thread Andy Kriger
have you tried... session-config enable-url-rewriting='true'/ 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 -

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: mailto:[EMAIL PROTECTED] For

RE: 1.1 release date?

2002-10-02 Thread Andy Kriger
* of added functionality there. If you're on a container adhering to jsp specification 1.2, the addition of the Struts-EL taglib could save you a lot of hassle! David Graham wrote: no From: Andy Kriger [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing

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, logic:iterate id='item' name='vOne' indexId='idx'

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

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

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 logic:present tags and

RE: dynamic img src attribute

2002-09-19 Thread Andy Kriger
=someBean property=linkMapProperty / and it will generate : /image.do?image=image222311.jpgapplication=photos I find that neat :) danny Andy Kriger wrote: I tried asking this few days ago when my understanding of struts was significantly less than it is now (and I didn't phrase my question very

  1   2   >