Re: [OFF TOPIC] Digester and Log4J

2002-11-13 Thread Matt Raible
Yep - I've packaged my app as you would expect - log4j.properties in WEB-INF/classes and all my jars in WEB-INF/lib. Oh well, it's not a big deal - I just thought someone might know. --- In [EMAIL PROTECTED], Robert [EMAIL PROTECTED] wrote: Then it must go in your WEB-INF/classes, which

Validation Question

2002-11-13 Thread Andreas Langmann
Hello, i had updated to validator-1.0 (from the struts-1.1-b2 version) and my validation just prints out the following code... // End -- /SCRIPT I miss the opening tag and my validation rules... the tag code is: html:javascript formName=%= formName % method=subValidate dynamicJavascript=true

user manually changing local

2002-11-13 Thread Marcus Biel
I want to give the user the ability to manually change the language of the aplication by selecting a local value from a selectbox. Has someone got an appropiate example to achieve this ? thx in advance, marcus -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For

Re: How to to a OR with logic tags

2002-11-13 Thread Charles
Thanks for the prompt reply Richard. I'll check out JSTL - Original Message - From: Richard Yee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, November 12, 2002 10:22 PM Subject: Re: How to to a OR with logic tags Charles, I'd suggest checking out

RE: user manually changing local

2002-11-13 Thread Alireza Fattahi
To change the language for example to Farsi use: java.util.Locale newLocale = new java.util.Locale( fa ); request.getSession().setAttribute( Action.LOCALE_KEY, newLocale ); -Original Message- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Wednesday, November 13, 2002 1:02 PM To:

RE: user manually changing local

2002-11-13 Thread Michael Delamere
Marcus, If you are using struts1.1 you can use your own version of the RequestProcessor by extending it and defining it in your struts-config. You can then manage the locale stuff manually by overriding the method processLocale. In the struts-config you would write something like: controller

Re: Client-side Caching???

2002-11-13 Thread Jon Ferguson
Hi Eelco, I'm using tiles to create tabbed panes: | A | B C | etc... The user can select any pane to view other aspects of the application.. much like you would do in swing. SO the traversing IS inside the application. Also I put an Apply button on each page then store the page state in a

RE: user manually changing local

2002-11-13 Thread Andrew Hill
I have the following in my RequestProcessor to adjust the locale based on what language the user has set in his browser - which saves the need for a special page for it in your app (IExplorer use tools-internet options--languages). Im still working on 118n in my app so this may need more stuff to

RE: Client-side Caching???

2002-11-13 Thread Savantraj, Chennamakal Subramanian
Why can't you try pure DHTML solutions for providing this kind of effects. Of course you may have to sacrifice cross browser compatibility some times. Just making some hide and show mechanism you can simulate Tab effect easily. -Original Message- From: Jon Ferguson

Multilanguage in validation.xml

2002-11-13 Thread Alireza Fattahi
Hi, I try to use Multilanguage in validation.xml. I used the language attribute in formset: formset language=fa But it seems that only the default language validations are checked. Should set any thing else? When I read the session with %=session.getAttribute( Action.LOCALE_KEY )% in my jsp

Re: Simulating Client field prompting

2002-11-13 Thread Jon Ferguson
Hi Susan, I've got a similar situation and originally wanted to minimise JavaScript.. I do it 2 ways: 1) Ed Hill's display tag (kewl) will easily allow pagination of long lists so I built a tile.. and inserted my list into the same page.. I can then use his decorators to create selection

RE: Client-side Caching???

2002-11-13 Thread Andrew Hill
A lot of web developers suffer from dhtmlaphobia and wont dare use any form of client side scripting lest it alienate their users who run lynx or netscrap4.x... ;-) (Although to be fair there are still quite a few of the later around. You will also probably hear the excuse that people switch off

Re: user manually changing local

2002-11-13 Thread Marcus Biel
Unfortunately I am forced to use Struts 1.02 marcus [EMAIL PROTECTED] schrieb: Marcus, If you are using struts1.1 you can use your own version of the RequestProcessor by extending it and defining it in your struts-config. You can then manage the locale stuff manually by overriding the

Re: user manually changing local

2002-11-13 Thread Marcus Biel
Did that, but when compiling, I get thrown this error: SetLocalAction.java:18: cannot resolve symbol symbol : variable LOCAL_KEY location: class org.apache.struts.action.Action request.getSession().setAttribute(Action.LOCAL_KEY, local); ^ Am using

RE: user manually changing local

2002-11-13 Thread Michael Delamere
Pity, you´re missing out on a lot of goodies :-) -Original Message- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Mittwoch, 13. November 2002 11:06 To: [EMAIL PROTECTED] Subject: Re: user manually changing local Unfortunately I am forced to use Struts 1.02 marcus [EMAIL

Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002. november 13. 11:06 dátummal Marcus Biel ezt írtad: Unfortunately I am forced to use Struts 1.02 bad for you. however the session.setAttribute(Action.LOCALE_KEY, newLocale) still works, I use it in a couple of projects. Hth, Tib -- To unsubscribe, e-mail:

Validator Problem

2002-11-13 Thread Yann Verlynde
Hello, Excuse me for this silly question but I don't understand the difference between these 2 attributes in html:javascript tag dynamicJavascript=false staticJavascript=true Thanks in advance

Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002. november 13. 11:05 dátummal Marcus Biel ezt írtad: Did that, but when compiling, I get thrown this error: SetLocalAction.java:18: cannot resolve symbol symbol : variable LOCAL_KEY location: class org.apache.struts.action.Action request.getSession().setAttribute(Action.LOCAL_KEY,

Re: user manually changing local

2002-11-13 Thread Marcus Biel
Nope! You missed an 'E'. This applies to the subject of this thread too. Action.LOCALE_KEY Hth, Tib thx! Would have never found it! :-) marcus -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

Re: [ANNOUNCEMENT] Easy Struts 0.6.1 Eclipse plugin

2002-11-13 Thread Emmanuel Boudrant
Hi, Easy Struts 0.6.1 contain a serious bug for JDK1.3 users. The problem was, when I build the plugin I use (by mistake) the JDK1.4 so there is some java.lang.UnsupportedClassVersionError if plugin running on JDK1.3 platform. I just rebuild Easy Struts 0.6.1 for JDK 1.3 If you install a

RE: user manually changing local

2002-11-13 Thread Alireza Fattahi
Use below action Pass local and country to this action. You can found it in struts zip files /** * Implementation of strongAction/strong that * changes a locale based on request level parameters * that are set (language amp; country). * * @author David Wintefeldt */ public final class

Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002. november 13. 12:01 dátummal Alireza Fattahi ezt írtad: public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { This is struts1.1. He is

how to dynamically generate select options from arrays

2002-11-13 Thread matthew yee-king
Hello list people I'm using struts 1.0. I have a User object with a string array availableGroups. I want to generate a select options list from this array in a jsp. Using a session bean of type User named currentUser, I can iterate the array like this: logic:iterate id=x name=currentUser

RES: html:select and collections

2002-11-13 Thread Francisco Goncalves Rodrigues
Try use: request.setAttribute(productTypes, productTypes); instead session.setAttribute(productTypes, productTypes); Fco. Goncalves -Mensagem original- De: Gus Delgado [mailto:gdelgado;oceanobjects.com] Enviada em: terca-feira, 12 de novembro de 2002 18:07 Para: Struts Users Mailing

RE: 2D Collection and nested:iterate

2002-11-13 Thread Arron Bates
Thanks for the reply, appreciate it. From what I understand, I have to do something like : firstList --eachElementIs-- simpleBean --contains-- secondList In other words, wrap the 2nd list inside a bean. However, if that's the cast, I would imagine it will drag down the performance

email validator

2002-11-13 Thread Ricardo de Souza Moura
I am with a problem to validate email in StrutsValidator. I perceived that emails with a character - are invalidate. ex: ricardo-rj.hotmail.com.br If I try validate a field with this e-mail, it is invalidate... How can I correct this error ? Thanks !!

Re: how to dynamically generate select options from arrays

2002-11-13 Thread matthew yee-king
did a RTFM and solved it: the session scope bean instance name is currentUser, the array is availableGroups... html:select property=group html:options name=currentUser property=availableGroups/ /html:select (property=group refers to a property in an ActionForm that deals with this

Re: Client-side Caching???

2002-11-13 Thread eelco . klaver
Hi Jon, I implemented similar functionality with Struts 1.0.2 (i.e. without tiles). For all tabs together, each containing their own html form fields, I used one form object that was stored in the session. Furthermore, I created an action to which the currently visible html form was posted when

Re: user manually changing local

2002-11-13 Thread Marcus Biel
Thanks everyone! Finally it works! marcus -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Form validation

2002-11-13 Thread Jordan Thomas
Hi, I am wanting to do a step by step, wizard style interface. Does anyone know of a good tutorial for this? thanks Jordan Jordan Thomas Fraunhofer-Institut fuer Produktionstechnik und Automatisierung (FhG-IPA) Nobelstrasse 12 D-70569

Re: Validator Problem

2002-11-13 Thread Andreas Langmann
dynamicJavascript=false generates dynamic javascript specially for a specified formName !this generated code needs the general javascript staticJavascript=true generates general javascript (functions for the generated code) so you can generate in every page the dynamic code and the general

Action takes long time to complete

2002-11-13 Thread David Bolsover
Hi all I have an action that takes a very long time to complete. Advice please - how do I forward to a new page before the tasks the action has started have completed? db -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

Re: Form validation

2002-11-13 Thread matthew yee-king
this page has links to several tutorials: http://jakarta.apache.org/struts/resources/tutorials.html cheers matthew On Wed, 13 Nov 2002 14:07:52 +0100 Jordan Thomas [EMAIL PROTECTED] wrote: Hi, I am wanting to do a step by step, wizard style interface. Does anyone know of a good tutorial

Re: user manually changing local

2002-11-13 Thread David Graham
I posted a tag that does this to bugzilla here: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12648 I think the source is in the jar so feel free to hack it to suit your needs. David From: Marcus Biel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL

Some thing like jsp:setProperty.....

2002-11-13 Thread Reza Aliakbari
Hi, I need a class that get my form object and another object and then set similar property of the form Object to the second object. This what jsp:setProperty. do. Cheers, Reza.

Re: Some thing like jsp:setProperty.....

2002-11-13 Thread Gemes Tibor
2002. november 13. 15:59 dátummal Reza Aliakbari ezt írtad: Hi, I need a class that get my form object and another object and then set similar property of the form Object to the second object. This what jsp:setProperty. do. org.apache.commons.beanutils.PropetyUtils,

RE: Map iterate problem

2002-11-13 Thread Sukhenko, Mikhail (Contr)
your MultiMap class does not have getKey() method which bean:write name=mm property=key/ translates to. -Original Message- From: Mark Ayad [mailto:mark;javamark.com] Sent: Tuesday, November 12, 2002 10:18 AM To: Struts Users Mailing List Subject: Map iterate problem I have a Map which

Help: validation and dyna beans, data disappears

2002-11-13 Thread Drew Zimber
All, Hello. Im currently working on a small application where I am researching the use of the DynaBeans and XML Validation functionality within struts 1.1. Both technologies are quite impressive and I have them working well with one caveat; allow me to explain via senario: Right now, my test

RE: Action takes long time to complete

2002-11-13 Thread Trieu, Danny
Have your action forward to a JSP page that in the end of the JSP it render a JavaScript that will do the submit to the action that take long time to finish. Usually the JSP that render the javaScript will have some sort flash images that the user look at while waiting for the action complete it

How to input

2002-11-13 Thread Vicky Yue
Hi I'm using WebSphere 4.0.x Struts 1.0.2 for my development. I want to input utf-8 characters from JSP and get the result from server. Anyone know how to configure WebSphere to accept correct characters? Thanks, Vicky

StrutsTestCase Struts Initialization

2002-11-13 Thread Jon.Ridgway
Hi All, I now have my StrutsTestCase's running. But I want to decorate them using JUnitPerf. The problem is that each time I invoke the StrutsTestCase perforAction() method Struts appears to re-initialize. This overhead detracts from the value of the load/stress tests performed by JUnitPerf. Is

Problem with logic:iterate using Vector?

2002-11-13 Thread Jana Navaneethan
Hi, I have a Vector in my form bean which contains multiple Objects, I want to loop through the contents of this Vector in my JSP page, I have a getListingsSummary() method in my form bean which is viewListingForm, But for some reason when I call my JSP it throws some exception like No bean

RE: How to input

2002-11-13 Thread jzakarian
Hi Vicky, I don't have an answer for your question but one of my own. I have just started using WebSphere 4.0.x and want to use struts. I copy the struts-example.war to the installableApps directory and then use the Administrative Console to install it. It says that it is installed and started

Re: StrutsTestCase Struts Initialization

2002-11-13 Thread Kevin . Bedell
Hi All, I now have my StrutsTestCase's running. But I want to decorate them using JUnitPerf. The problem is that each time I invoke the StrutsTestCase perforAction() method Struts appears to re-initialize. This overhead detracts from the value of the load/stress tests performed by

Re: Problem with logic:iterate using Vector?

2002-11-13 Thread C. Struts
id is the name of the localized object. In the example below localName is yourBean.yourVector which you'll use inside the iterate tags. logic:iterate id=localName name=yourBean property=yourVector bean:write name=localName property=vectorProperty1 / bean:write name=localName

SSL and Struts

2002-11-13 Thread Laurie Dickinson
Dear All, My first posting. I'm having some difficulty using SSL with struts. Here's some background (with dummy names): Running tomcat4.1 integrated with apache on a Linux box Regular server = tcs.xxx.com Secure server = secure.xxx.com These are the same server, just different names. When I

RE: Problem with logic:iterate using Vector?

2002-11-13 Thread Sri Sankaran
Make sure that your action is persisting the form bean in the manner that it is expected on the calling page (this is defined by the action mapping). Pay close attention to the name under which you save it. If your action mapping names the bean 'fooBean' and it is under request scope, you

Parameter

2002-11-13 Thread Cohan, Sean
I'm in one action class and I'm want to forward to another DispatchAction class. The second DispatchAction class requires a 'method' parameter which is used to determine which method to call within the DispatchAction. How can I set the method parameter in the first action class so it can be used

Re: Problem with logic:iterate using Vector?

2002-11-13 Thread Brian Hickey
Jana, It would help to see the actual error. More below... Hi, I have a Vector in my form bean which contains multiple Objects, I want to loop through the contents of this Vector in my JSP page, I have a getListingsSummary() method in my form bean which is viewListingForm, But for

Re: Parameter

2002-11-13 Thread Gemes Tibor
2002-11-13, sze keltezssel Cohan, Sean ezt rta: Right now, I trying request.setAttribute(method, getChangesSinceLastCertified) just before forwarding, but I'm getting a HTTP Status 400 - Request[/recertify] does not contain handler parameter named method. You can get it with

RE: 2D Collection and nested:iterate

2002-11-13 Thread Louis Leung
Thx Aaron. That solution works great for displaying the data. However, Struts will not know how to populate the List back when the data is received from the user, since the Indices cannot be set in that access wrapper object. -Original Message- From: Arron Bates

Dynamic html:img parameters

2002-11-13 Thread Alex Vollmer
I know that this question has come up on the list (http://www.mail-archive.com/struts-user;jakarta.apache.org/msg33402.html), but I didn't see a very good answer for it. What I want to do is build a template that has an image in it. The URL for the image needs to be dynamically defined by

Re: Problem with logic:iterate using Vector?

2002-11-13 Thread Brian Hickey
Jana, I think I see part of the problem. Here is some further info: jsp:useBean id=viewListing scope=session type=com.ViewListingBean/ -- When you use type=com.ViewListingBean... do you have a class named ViewListingBean that has a 'package com' directive at the top? If so - good. If not - that

Re: Problem with logic:iterate using Vector?

2002-11-13 Thread shakeel . mahate
Hi Jana, The iterate tag gets one element from your collection and id is used to uniquely name that element Change your iterate tag id=viewListingElement -Shakeel -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail:

RE: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-13 Thread Haseltine, Celeste
Khalid, I am assuming by across the Atlantic you are referring to the United States. The job market/outlook in the US for high tech/software/hardware is still pretty poor. There are some pockets where jobs can be found in the US, but overall, our unemployment rate nationally is still sitting

Getting corrupted files using multipart and FormFile .

2002-11-13 Thread Hugo Villeneuve
Hello, I have some corrupted file problem with Struts, in upload and in download. 1- Upload : I use the FormFile object and the html:file tag to import file from the client browser. Things works just fine with almost every files but I have hit some files ( like tiff and pdf) that get corrupted

OT: Re: user manually changing local

2002-11-13 Thread Marcus Biel
ARG! What the hell is wrong here ??? import java.util.Locale; import java.lang.*; import java.sql.*; import javax.servlet.http.*; import org.apache.struts.action.*; public class SetLocalAction extends Action { public ActionForward perform(ActionMapping mapping, ActionForm form,

Re: OT: Re: user manually changing local

2002-11-13 Thread David Graham
You have mispelled Locale. Any IDE will pick up this error for you. David From: Marcus Biel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: OT: Re: user manually changing local Date: Wed, 13 Nov 2002 12:25:44 +0100 ARG! What the hell

RE: user manually changing local

2002-11-13 Thread Sri Sankaran
Intermixed... -Original Message- From: Marcus Biel [mailto:Marcus.Biel;bmw.de] Sent: Wednesday, November 13, 2002 6:26 AM To: [EMAIL PROTECTED] Subject: OT: user manually changing local ARG! What the hell is wrong here ??? import java.util.Locale; import java.lang.*; import

RE: Re: user manually changing local

2002-11-13 Thread Karr, David
You have several problems, none of which have anything to do with Struts. First, your SetLocalForm class appears to be not defined. I would guess it's not in the same package as your SetLocalAction class. Second, you can't do: String localString = (SetLocalForm)form.getLocal(); Because the

Re: OT: Re: user manually changing local

2002-11-13 Thread Gemes Tibor
2002-11-13, sze keltezssel Marcus Biel ezt rta: ARG! What the hell is wrong here ??? import java.util.Locale; import java.lang.*; import java.sql.*; import javax.servlet.http.*; import org.apache.struts.action.*; public class SetLocalAction extends Action { public ActionForward

Re: Re: user manually changing local

2002-11-13 Thread Brian Hickey
Marcus, What datatype does getLocal() return? I would likely write: SetLocalForm myForm = (SetLocalForm)form first and then: String localString = myForm.getLocal(); or: String localString = myForm.getLocal().toString(); It may not execute and differently, but it keeps the cast separate

Re: Getting corrupted files using multipart and FormFile .

2002-11-13 Thread Martin Cooper
On Wed, 13 Nov 2002, Hugo Villeneuve wrote: Hello, I have some corrupted file problem with Struts, in upload and in download. 1- Upload : I use the FormFile object and the html:file tag to import file from the client browser. Things works just fine with almost every files but I have

Re: jsp:setProperty

2002-11-13 Thread Kris Schneider
Wendy, If you're already playing around with this stuff, this may be old news. Just thought I'd add a couple of bits for posterity: ServletRequest.getParameterMap does not appear to work for post requests (it returns an empty Map), only get requests (at least with Tomcat 4.1.14).

two variables in an action

2002-11-13 Thread Gus Delgado
is this the right way to put to variables in the jsp in an action /newBalanceSheetGroup.do?action=pre,?type=TypeA thanks -- To unsubscribe, e-mail: mailto:struts-user-unsubscribe;jakarta.apache.org For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org

Re: two variables in an action

2002-11-13 Thread David Graham
/newBalanceSheetGroup.do?action=pretype=TypeA From: Gus Delgado [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: two variables in an action Date: Wed, 13 Nov 2002 15:56:17 -0500 is this the right way to put to

Re: two variables in an action

2002-11-13 Thread Robert
To remove your address from future mailings, click here mailto:catalogs-galore;catalogs-galore.com?subject=remove to send an email and unsubscribe Nope, it would be: /newBalanceSheetGroup.do?action=pretype=TypeA which is the standard HTTP format. The first parameter is prefixed with a '?'

Problem with Global Forwards when using Scaffold FindForwardAction

2002-11-13 Thread Steve_Akins
Hi all, Was wondering if anyone has used FindForwardAction successfully with global forwards? I can't see how the current version can work, even if the commented code is uncommented. Any ideas? Steve Akins Team Leader, Frameworks, J2EE Engineering Development Centre Financial Services

Re: SSL and Struts

2002-11-13 Thread Laurie Dickinson
Thanks. The problem was with the server configuration. The sourceforge tag helped with the diagnosis. At 01:41 PM 11/13/2002 -0500, Robert Leland wrote: Laurie Dickinson wrote: Dear All, My first posting. I'm having some difficulty using SSL with struts. Here's some background (with dummy

Seeking multiple files upload action source

2002-11-13 Thread Dan Tran
Hi, I would like to write web page to upload multiples file to the server. I think I known how to set upthe jsp and action form. However, I have a hard time accepting the strutsupload action example from 1.1 distribution where it manualy read binary data from the request snippet //write the file

Why is this code (drawing a box) extremely slow with netscape-4.79?

2002-11-13 Thread Zsolt Koppany
Hi, the code below draws a box around a table. It works fine with IE, Mozilla and Netscape-4.79. However the code is extremely slow with netscape-4.79. Do you know why and how can I fix it? Zsolt TABLE class=boxframe cellpadding=1 cellspacing=0 border=0 TR TD TABLE width=100%

export in frames

2002-11-13 Thread Chen, Dean (Zhun)
Hi, I have 2 frames. One submits a query to be displayed in the 2nd. In the 2nd frame, there's a button to export. The export apparently works, however, after the user exports, queries that the user submits no longer appear on the screen. He/she has to refresh the browser to submit more queries.

Re: Dynamic redirect to external URL

2002-11-13 Thread David Graham
This is a known bug and will be fixed before 1.1 is released. David From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Dynamic redirect to external URL Date: Wed, 13 Nov 2002 14:23:56 -0800 Is there a way to create a dynamic

RE: How to input

2002-11-13 Thread jzakarian
Susan, Thank you for the quick reply. I will try this tonight. Jack -Original Message- From: Susan Bradeen [mailto:SusanB;softlanding.com] Sent: Wednesday, November 13, 2002 5:08 PM To: Struts Users Mailing List Subject: RE: How to input Jack, I'm not an expert on this, but I am

Validation in Nightly Build 20021105

2002-11-13 Thread Mike Wilcox
Hi, We recently upgraded from Struts 1.1b1 to the nightly build from 20021105. After a couple of days, we realised that validation wasn't working because of a format change to setting the properties in struts-config.xml for the filenames. Once we fixed this, validation *sometimes* didn't

Re: Validation in Nightly Build 20021105

2002-11-13 Thread James Holmes
I would suggest entering a bug for this in Bugzilla: http://nagoya.apache.org/bugzilla This way it can be tracked and resolved. Thanks, -james http://www.jamesholmes.com/struts/ --- Mike Wilcox [EMAIL PROTECTED] wrote: Hi, We recently upgraded from Struts 1.1b1 to the nightly build from

RE: indexed properties and form help needed

2002-11-13 Thread Karr, David
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 in the text fields and create new CreditCard objects

RE: jsp:setProperty

2002-11-13 Thread Wendy Cameron
I have been looking into this a little more last night, I decideded to look at the compiled jsp code when I user jsp:setProperty * And discovered that in the Code was JspRuntime.introspect(Object, request) Which is servlet code for jsp:setProperty *, it now strikes me as odd there seems to three

RE: indexed properties and form help needed

2002-11-13 Thread Andy Kriger
According to the docs for DynaActionForm, you indicate a property is indexed by putting [] after the type name. What I think is going on is that the property is not initalized when the iterator tries to access it, thus the 'No collection found'. But I don't know how to set this up so it works

RE: jsp:setProperty

2002-11-13 Thread Craig R. McClanahan
On Thu, 14 Nov 2002, Wendy Cameron wrote: Date: Thu, 14 Nov 2002 09:03:16 +1000 From: Wendy Cameron [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: jsp:setProperty I have been looking into this a little

Action takes long time to complete

2002-11-13 Thread Alex_Kotchnev
David, Well, does the content of the next page depend on the completion of the task ? If that is the case, probably the JavaScript page with some animation would probably be the solution. However, if it doesn't depend on it, I think that you could probably start a new thread to do the work

1.1b2 - validate() form method gives blank screen when errors present

2002-11-13 Thread Mark Leonard
Greetings, I am having a problem where a blank screen is presented instead of redirecting the user back to the input attribute if the validate() method returns errors. If validate() finds no errors or if i set validate=false for the action, processing is ok with successful redirection to the

RE: 2D Collection and nested:iterate

2002-11-13 Thread EmailUser
Thx Aaron. Arron? - Why? My dad was hilarious back in his day. :P That solution works great for displaying the data. However, Struts will not know how to populate the List back when the data is received from the user, since the Indices cannot be set in that access wrapper object.

page context

2002-11-13 Thread Manoj, Mathew
Hi I am new to Struts.Can anyone please tell me what is page context.and what is the difference between page context and user context(session context). My wesite has 8 pages and all the links are in the header, have all links go to Actions.I am trying to implement it in struts.So when user click

RE: jsp:setProperty

2002-11-13 Thread Craig R. McClanahan
On Thu, 14 Nov 2002, Wendy Cameron wrote: Date: Thu, 14 Nov 2002 09:03:16 +1000 From: Wendy Cameron [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: jsp:setProperty I have been looking into this a little

RE: jsp:setProperty

2002-11-13 Thread Wendy Cameron
The third implementation is the one suggested by Kris Schneider, RequestUtils.populate(Object bean, HttpServletRequest request) which as far as I can see from source code, does its own thing. (Doesnt call BeanUtils.populate()) Regards Wendy -- To unsubscribe, e-mail:

Re: Validation in Nightly Build 20021105

2002-11-13 Thread Robert Leland
Ok, it looks like it isn't the same bug, though the error is occuring in the iterator of the FastHashMap. I believe you said it was also happening in the Struts example/struts-validator program. Be sure to mention the application server you're using. I haven't had to worry about the locale

Re: Validation in Nightly Build 20021105

2002-11-13 Thread Robert Leland
This looks similar, but different, to a bug I tracked down because of a change in the FastHashMap implementation. The fix was in ValidatorResources: public void process() { hFormSets.setFast(true); hConstants.setFast(true); hActions.setFast(true); processForms(); }

RE: jsp:setProperty

2002-11-13 Thread Craig R. McClanahan
On Thu, 14 Nov 2002, Wendy Cameron wrote: Date: Thu, 14 Nov 2002 10:16:43 +1000 From: Wendy Cameron [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: jsp:setProperty The third implementation is the one

RE: jsp:setProperty

2002-11-13 Thread Wendy Cameron
You are completely right, I didnt take a detailed look at the code and missed the call to bean utils at the very end. Revision was $Revision: 1.52 $ Regards Wendy -Original Message- From: Craig R. McClanahan [mailto:craigmcc;apache.org] Sent: Thursday, November 14, 2002 10:31 AM To:

Re: jsp:setProperty

2002-11-13 Thread Kris Schneider
Comment inline Craig R. McClanahan wrote: On Thu, 14 Nov 2002, Wendy Cameron wrote: Date: Thu, 14 Nov 2002 09:03:16 +1000 From: Wendy Cameron [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: jsp:setProperty

RE: jsp:setProperty

2002-11-13 Thread Wendy Cameron
If Kris, is correct an getPropertyMap only works for the get method, then this seems to be a bit of problem as most form data comes via post. And although I agree I think using the BeanUtils is more sensible than JspRuntimeLibray and can then be ported by simply copying to jars to other server

Re: jsp:setProperty

2002-11-13 Thread Craig R. McClanahan
On Wed, 13 Nov 2002, Kris Schneider wrote: [snip] I did a couple of quick experiments with TC 4.1.14 and ServletRequest.getParameterMap only seemed to work with HTTP GET, not HTTP POST. Is your expectation that it *should* work with POST? It should definitely work on a POST, but only if

Re: jsp:setProperty

2002-11-13 Thread Martin Cooper
On Wed, 13 Nov 2002, Kris Schneider wrote: Comment inline Craig R. McClanahan wrote: On Thu, 14 Nov 2002, Wendy Cameron wrote: Date: Thu, 14 Nov 2002 09:03:16 +1000 From: Wendy Cameron [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users

Re: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-13 Thread Peter A. J. Pilgrim
Haseltine, Celeste wrote: Khalid, I am assuming by across the Atlantic you are referring to the United States. All Here in London, England it is really slow as well. The needle is favours the employers right now rather than a typical candidate. Unfortunately employers want 10 different

Unicode in html:textarea struts tag

2002-11-13 Thread Huynh Ngoc Huy
I'm using struts version 1.1b2. The followings are my snippet codes: * struts-config.xml * ... form-bean name=aForm type=org.apache.struts.action.DynaActionForm form-property name=msg type=java.lang.String/ ... action path=/aPath

Error Page and Struts+Tiles

2002-11-13 Thread atta ur-rehman
Dear all, It seems that errorPage page directive doesn't work if we have struts and tiles. Is it so? If yes, how do a get equivalent functionality. I always get an InvlaidStateException that says that server can't take me to error page 'cas some data has already been sent to client. TIA,

[Struts Tip] #14 Use optional forwarding to extend Actions

2002-11-13 Thread Ted Husted
Many times you will find that two Actions are very similar but need one small behavior to change. One good way to handle this is to subclass one Action from the other and change the behavior that way. Though, in the case of an Action, the behavior may buried in the perform (or execute) method.

RE: Why is this code (drawing a box) extremely slow with netscape-4.79?

2002-11-13 Thread Andrew Hill
This is because Netscape is crap. Without butchering your code and making your IE Mozilla users suffer for the sake of a small bunch of Netscrap lusers who dont deserve such consideration theres not much you can do. -Original Message- From: Zsolt Koppany [mailto:zkoppany;web.de] Sent:

An example of dynabean !

2002-11-13 Thread Huynh Ngoc Huy
Dear group, After extract the zip file, you must copy all libs of struts-1.1b2 (struts.jar, commons-*.jar) into the lib directory of the example. Regard, Huy __ Do you Yahoo!? Yahoo! Web Hosting - Let the expert host your site

  1   2   >