Re: Does anyone have something to dump a sessions contents in a JSP?

2002-07-10 Thread Kevin Henrikson
Or just use the logging tags. 4 quick lines of code: %@ taglib uri=http://jakarta.apache.org/taglibs/log-1.0; prefix=log % PAGE:log:dump scope=page / REQUEST:log:dump scope=request / SESSION:log:dump scope=session / APPLICATION:log:dump scope=application / -kevin Tero P Paananen [EMAIL

RE: Antwort: StrutsTestCase - setConfigFile()

2002-07-04 Thread Kevin Henrikson
StrutsTestCase requires your WEB-INF/struts-config.xml to be in the classpath. So make sure the directory above WEB-INF is in your classpath. Then by default it will find your file. If you specify a file or path in the setConfigFile() method that too must be in the classpath. -kevin

RE: Just how cooked is Struts Validation at this point?

2002-07-03 Thread Kevin Henrikson
Well maybe you should go with Struts 1.1b We've been using this for a while now and haven't run into any major issues. I think you're complicating your problem by trying to roll your own from the nightly which is in transition on several fronts. IMHO if you go with 1.1b and you'll be a much

RE: Processing an action for an index page?

2002-07-02 Thread Kevin Henrikson
I think most people just do as you guessed. Put a simple index.jsp that forwards to your initial action. That's how we do it. -kevin -Original Message- From: James Turner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 3:40 PM To: [EMAIL PROTECTED] Subject: Processing an

RE: Validator and loading a form the first time

2002-07-01 Thread Kevin Henrikson
Actually you create two action mappings in your struts-config.xml One with validate=true and one with validate=false. Both pointing to the same Action sub-class -kevin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 9:31 AM To:

RE: How to avoid a scriplet and make this cleaner?

2002-07-01 Thread Kevin Henrikson
Try to cast the value to a string. html:checkbox property=carID value=%=(String)((CarBean)element).getId() % / Also you might want to check out multibox... Like this: logic:iterate id=element name=cars html:multibox property=carID bean:write name=element property=id /

RE: MockStrutsTestCase

2002-06-21 Thread Kevin Henrikson
You need to have the directory that contains WEB-INF/struts-config.xml in your class path. Not normally the way Struts runs but the TestCase uses the classpath to find the config file. I struggled with this for awhile as well. -kevin -Original Message- From: Brian Buckley

Can DispatchAction have a default action?

2002-06-11 Thread Kevin Henrikson
plus. Make creating new pages very very fast and simple. thanks -kevin -- Kevin Henrikson Openwave Systems, Inc. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: Can DispatchAction have a default action?

2002-06-11 Thread Kevin Henrikson
Why do you have two action mappings for the same DispatchAction? To get around the validation. You can just have one action mapping like, form-bean name=InputForm dynamic=true type=org.apache.struts.validator.DynaValidatorForm form-property name=testfield

RE: dynamic templates?

2002-05-30 Thread Kevin Henrikson
Tiles will do just that. http://www.lifl.fr/~dumoulin/tiles/ -kevin -Original Message- From: Vincent Stoessel [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 30, 2002 8:48 AM To: Struts Users Subject: dynamic templates? OK, lets say I wanted to create a web application and I

RE: validator generated HTML code

2002-05-28 Thread Kevin Henrikson
-Original Message- From: Adolfo Miguelez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 28, 2002 7:25 AM To: [EMAIL PROTECTED] Subject: validator generated HTML code I suppose, I should only get the necessary functions for my validation, in my case function