Dynamically sized Form problem: getting String[] from multiple select

2005-10-14 Thread Oleg
I am setting up Dynamically sized form with scope="request" so my bean consists of 2 TreeMaps, one to display (fields objects: name, type,...) and one to receive values from the form(values Strings). The problem is that when form submitted I can only get one value as a String and not String[] if i

html post vs javascript onclick

2005-10-14 Thread Chris Pat
Hello If I have an "strut-i-fied" html form that also has JavaScript event handlers, and onclick function calls, can I be guaranteed that the js will fully execute first before the html post in both NS & IE? It has to right? It would be preposterous otherwise. Just paranoid about all the adhoc c

Re: Dynamicly sized Form problem: cant keep order

2005-10-14 Thread Frank W. Zammetti
FYI, as of JDK 1.4.2 (maybe before, but at least that version at the latest) you have LinkedHashMap and LinkedHashSet as well. LinkedHashMap would fit the bill as well I think, without having to create a dependency on Commons Collections. Frank Wendy Smoak wrote: From: "Oleg" <[EMAIL PROTEC

Re: Dynamicly sized Form problem: cant keep order

2005-10-14 Thread Wendy Smoak
From: "Oleg" <[EMAIL PROTECTED]> I have been hours at this, going crazy. I am setting up Dynamicly sized form. http://java.sun.com/j2se/1.4.2/docs/api/java/util/HashMap.html " This class makes no guarantees as to the order of the map; in particular, it does not guarantee that t

Re: Custom Struts code or 1.2.8?

2005-10-14 Thread Niall Pemberton
I just responded to this in the commons-user list: http://www.mail-archive.com/commons-user%40jakarta.apache.org/msg13137.html Niall - Original Message - From: "Stewart Cambridge" <[EMAIL PROTECTED]> Sent: Friday, October 14, 2005 10:52 AM I customised the validator just yesterday bec

Re: Dynamicly sized Form problem: cant keep order

2005-10-14 Thread Oleg
Ok, this is embarrassing, of course HashMap doesnt guarantee the order, TreeMap did the trick, sorry :) Oleg On 10/14/05, Oleg <[EMAIL PROTECTED]> wrote: > I have been hours at this, going crazy. I am setting up Dynamicly sized form. > > struts-config.xml > --

Re: Custom Struts code or 1.2.8?

2005-10-14 Thread Niall Pemberton
As Joe indicated, Validator 1.2.0 which will hopefully be released should resolve your issue and you should just be able to replace the Commons Validator jar to fix it. Although validator 1.2.0 has a new version of the DTD - the old version (1.1.3) should still work correctly. Unfortunately the bi

Dynamicly sized Form problem: cant keep order

2005-10-14 Thread Oleg
I have been hours at this, going crazy. I am setting up Dynamicly sized form. struts-config.xml - My Action, gets the map like so: DynaValidatorForm df = (DynaValidatorForm) form; HashMap hm = (HashMap)df.get("fields"); Than I try to populat

Re: [Shale] managed-bean-name token

2005-10-14 Thread Gary VanMatre
Ryan Wynn wrote: > Gary, I tried this approach in both forms you described and it seems that > the nested > Clay component is picking up the managedBeanName from the root Clay > component instead > of the one I specify. Which turns out to be the ViewController associated > with the view id.

Re: [Shale] managed-bean-name token

2005-10-14 Thread Ryan Wynn
[EMAIL PROTECTED] (Gary VanMatre) wrote on 10/14/2005 03:20:37 PM: > The managedBeanName attribute can only be set at the Clay component. > The subtree under the Clay component applies token replacement of > the literal string "managed-bean-name" with the value from the root. > > For full html

Re: Syntax for multiple parameter with global forward

2005-10-14 Thread Laurie Harper
Dave wrote: Laurie Harper holoweb.net> writes: Looks like your mail client munged Brantley's message: his suggestion was not a bare '&' but the entity character reference '&' (i.e. the four-character sequence ampersand-a-m-p-semicolon). Try that. Actually, I understood that, however, any ins

Re: Syntax for multiple parameter with global forward

2005-10-14 Thread Dave
Laurie Harper holoweb.net> writes: > > > Looks like your mail client munged Brantley's message: his suggestion > was not a bare '&' but the entity character reference '&' (i.e. the > four-character sequence ampersand-a-m-p-semicolon). Try that. > > L. > Actually, I understood that, howeve

Re: java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(RequestProcessor.java:1136)

2005-10-14 Thread Wendy Smoak
From: "Malik, Yousuff M" <[EMAIL PROTECTED]> I just wanted to follow up and see if any of you had seen this exception before. Basically, how can the servlet context be null?? I don't think the servlet context itself is null. If I'm reading the error right, it looks like WebLogic has tried to

Re: [Shale] IndexOutOfBoundsException

2005-10-14 Thread Gary VanMatre
>Using clay html views I am getting an IndexOutOfBoundsException at line >106 of org.apache.shale.clay.component.chain.CreateComponentCommand. This >line does the following: > >parent.getChildren().add(clayContext.getChildIndex(), child); > >where parent and child are UIComponents. > >My except

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread gramani
[EMAIL PROTECTED] wrote on 10/14/2005 02:51:05 PM: > On 10/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > 3. Next I click on logoff and this is where stuff gets goofy. > > Logoff link points to "logon.logoff". LogActions.logoff() does some stuff > > and then returns "unauthenticated"

Re: logic:present and html:text tags problem

2005-10-14 Thread Laurie Harper
Emmanuel.Leguy wrote: Hello, I use the following code in a jsp: If 'person' is not present <%= person.getName() %> is compiled and I get this error: membreLIFL cannot be resolved If i use this code: property="name"/>"/> No problem. How can i use the html:text tag?

Re: Syntax for multiple parameter with global forward

2005-10-14 Thread Laurie Harper
Dave wrote: Brantley Hobbs itos.uga.edu> writes: Try changing your ampersand to "&" or "%26" Thanks for trying, but, & simply gives me the previous compiler error, and % 26 is not converted to an & at run time. Looks like your mail client munged Brantley's message: his suggestion was not

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread gramani
Wendy Smoak <[EMAIL PROTECTED]> wrote on 10/14/2005 03:27:30 PM: > From: <[EMAIL PROTECTED]> > > > Wendy, I am currently using eclipse's built-in debugger to step into the > > code. Would you recommend something else? > > No... your original message sounded like you were just looking at the lo

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread Wendy Smoak
From: <[EMAIL PROTECTED]> Wendy, I am currently using eclipse's built-in debugger to step into the code. Would you recommend something else? No... your original message sounded like you were just looking at the log file output. Right after I sent that, you posted about setting breakpoints.

Re: logic:present and html:text tags problem

2005-10-14 Thread Dave
Try using the -el taglib: <%@ taglib uri="/tags/struts-html-el" prefix="html-el" %> ... - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread gramani
Wendy Smoak <[EMAIL PROTECTED]> wrote on 10/14/2005 03:12:36 PM: > From: <[EMAIL PROTECTED]> > > >I have been trying all day to understand exactly where and when Shale > > injects into the JSF life cycle and I think i'm almost there..:) > > By looking at the log files? Have you stepped through

Re: [Shale] managed-bean-name token

2005-10-14 Thread Gary VanMatre
Hi Ryan, >I'm having trouble getting Shale clay to substitute a non-ViewController >bean for the token managed-bean-name. I have looked at the use cases and >I still feel like I don't understand the syntax to do token replacement. >Shale continues to reference my ViewController bean in EL expr

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread Wendy Smoak
From: <[EMAIL PROTECTED]> I have been trying all day to understand exactly where and when Shale injects into the JSF life cycle and I think i'm almost there..:) By looking at the log files? Have you stepped through the code in a debugger? After you get past the initial setup, it will save y

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread gramani
[EMAIL PROTECTED] wrote on 10/14/2005 02:58:10 PM: > On 10/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > "David G. Friedman" <[EMAIL PROTECTED]> wrote on 10/14/2005 02:51:13 > > PM: > > > > > If you are doing a logout, wouldn't it be quicker to do an > > immediate="true" > > > along

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread gramani
[EMAIL PROTECTED] wrote on 10/14/2005 02:51:05 PM: > > > > The implication of this sequence of events is that the navigation requested > by "unauthenticated" did not actually happen, so it's redisplaying the same > page again. Are you sure you've got the navigation rules set up correctly, > so

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread Craig McClanahan
On 10/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > "David G. Friedman" <[EMAIL PROTECTED]> wrote on 10/14/2005 02:51:13 > PM: > > > If you are doing a logout, wouldn't it be quicker to do an > immediate="true" > > along with your action invocation? Then you could skip the other > phases.

RE: [Shale] Help - wonky prerender() call!

2005-10-14 Thread gramani
"David G. Friedman" <[EMAIL PROTECTED]> wrote on 10/14/2005 02:51:13 PM: > If you are doing a logout, wouldn't it be quicker to do an immediate="true" > along with your action invocation? Then you could skip the other phases. > It is in your logout/logoff after all, right? Oh, I guess that is

Re: [Shale] Help - wonky prerender() call!

2005-10-14 Thread Craig McClanahan
On 10/14/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > 3. Next I click on logoff and this is where stuff gets goofy. > Logoff link points to "logon.logoff". LogActions.logoff() does some stuff > and then returns "unauthenticated" which is mapped in faces-config.xml to > /failure.jsp which in

RE: [Shale] Help - wonky prerender() call!

2005-10-14 Thread David G. Friedman
If you are doing a logout, wouldn't it be quicker to do an immediate="true" along with your action invocation? Then you could skip the other phases. It is in your logout/logoff after all, right? -David, all talk, just theories. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PR

[Shale] Help - wonky prerender() call!

2005-10-14 Thread gramani
I have been trying all day to understand exactly where and when Shale injects into the JSF life cycle and I think i'm almost there..:) But I do have one question which reads rather long, so please bear with me. Here's what I do with my Tiles+Shale webapp: 1. Acces it via: http://www.myContext/

[Shale] managed-bean-name token

2005-10-14 Thread Ryan Wynn
I'm having trouble getting Shale clay to substitute a non-ViewController bean for the token managed-bean-name. I have looked at the use cases and I still feel like I don't understand the syntax to do token replacement. Shale continues to reference my ViewController bean in EL expressions, howe

[Shale] IndexOutOfBoundsException

2005-10-14 Thread Ryan Wynn
Using clay html views I am getting an IndexOutOfBoundsException at line 106 of org.apache.shale.clay.component.chain.CreateComponentCommand. This line does the following: parent.getChildren().add(clayContext.getChildIndex(), child); where parent and child are UIComponents. My exception repor

logic:present and html:text tags problem

2005-10-14 Thread Emmanuel.Leguy
Hello, I use the following code in a jsp: If 'person' is not present <%= person.getName() %> is compiled and I get this error: membreLIFL cannot be resolved If i use this code: property="name"/>"/> No problem. How can i use the html:text tag? Thanx, Manu. -- Emman

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Hubert Rabago
On 10/14/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > Some nice scripting without Ajax, just Javascript and CSS: > http://www.themaninblue.com/writing/perspective/2005/10/05/form/form4.htm > I wish Struts Validator could be that cool :-) It CAN be. I spent some time last night figuring ou

RE: java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(RequestProcessor.java:1136)

2005-10-14 Thread Jay Burgess
This isn't really an answer to your question, but if I'm looking at the correct line of source (see below), it may be that "servlet" is null, hence the NPE: protected ServletContext getServletContext() { return (servlet.getServletContext()); } Jay | Jay Burgess [Vertical Technolo

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Vic Cekvenich
Frank W. Zammetti wrote: People who try to do entire sites in Flash are, IMO, misusing it. Try http://goowy.com for Flash or Java http://struts.roomity.com (takes you to this mail list in RiA) .V - To unsubscribe, e-mail:

Re: Syntax for multiple parameter with global forward

2005-10-14 Thread Dave
Brantley Hobbs itos.uga.edu> writes: > > Try changing your ampersand to "&" or "%26" > > B. Thanks for trying, but, & simply gives me the previous compiler error, and % 26 is not converted to an & at run time. - To unsubsc

RE: java.lang.NullPointerException at org.apache.struts.action.RequestProcessor.getServletContext(RequestProcesso r.java:1136)

2005-10-14 Thread Malik, Yousuff M
I just wanted to follow up and see if any of you had seen this exception before. Basically, how can the servlet context be null?? -Original Message- From: Malik, Yousuff M Sent: Wednesday, October 12, 2005 4:52 PM To: user@struts.apache.org Subject: java.lang.NullPointerException at org.

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Frank W. Zammetti
On Fri, October 14, 2005 8:11 am, Martin Gainty said: > Frank/Michael > Personally whenever I see a Flash site I always elect 'html' simply > because > I dont have the time to wait for stream to load to > my browser client.. As do I, and I'm almost never not using a big fat pipe :) But, this is a

Re: [OT] properties file editor , or plugin for eclipse 3.1.1

2005-10-14 Thread Danny Lee
yeap, "ResourceBundle Editor". Plugin 4 Eclipse http://sourceforge.net/projects/eclipse-rbe Cheerz Danny - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Frank W. Zammetti
On Fri, October 14, 2005 2:44 am, Michael Jouravlev said: > On 10/13/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: >> It's not going to kill Flash because, when used properly, Flash is >> fantastic and different from anything else out there. Just as a silly >> example: how am I going to a Stron

Problem with DynaActionForm in portlets

2005-10-14 Thread Tamilselvan Radha Krishnan
Hi, I've used DynaActionForm in websphere portal server while developing portlets. Strangely, I could not able to display the portlet page even there was no fault on our application. When I replaced the DynaActionForm with ActionForm, it worked well. Why it happened? Cant' I use DynaActionFor

Re: Struts and db connections :: best practice

2005-10-14 Thread Frank W. Zammetti
I think having the DAO itself get the connection isn't an optimal solution, most especially if it's happening in each method. Here's why... I have one application in particular that is fairly complex and for a given end-user function, I may have to use a couple of different business delegates, wh

RE: Syntax for multiple parameter with global forward

2005-10-14 Thread Brantley Hobbs
Try changing your ampersand to "&" or "%26" B. > -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Dave > Sent: Friday, October 14, 2005 9:48 AM > To: user@struts.apache.org > Subject: Syntax for multiple parameter with global forward > > At first I had my global for

Syntax for multiple parameter with global forward

2005-10-14 Thread Dave
At first I had my global forward defined: But the compiler complained and I changed it to: This path doesn't behave correctly. After I click on the link and faulty link is in the address bar I can change the semi-colon to to ambersand, and then it works. Is it possible to define a

Re: Custom Struts code or 1.2.8?

2005-10-14 Thread Ted Husted
> Of the seven releases for 1.2.x /s/seven/eight Being geeks, we started with 1.2.0 :) -T. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Custom Struts code or 1.2.8?

2005-10-14 Thread Ted Husted
On 10/14/05, Paul Benedict <[EMAIL PROTECTED]> wrote: > Just think of how many releases were for Struts 1.2! Not every release is a "General Availability" or stable release. Of the seven releases for 1.2.x, three were marked GA (.2, .4, .7), and the rest were left at alpha or beta. The first 1.3.

[OT] properties file editor , or plugin for eclipse 3.1.1

2005-10-14 Thread Ashish Kulkarni
Hi Is there a good properties file editor as plugin for eclipse, This properties file editor must be able edit at the same time properties files for different locale, for example if i add a property to my.properties, then it must be able to add it my_fr.properties, my_ru.properties etc Also if poss

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread DGraham
Still rockin' the 14.4? ;) "Martin Gainty" <[EMAIL PROTECTED]> 10/14/2005 08:11 AM Please respond to "Struts Users Mailing List" To <[EMAIL PROTECTED]>, "Michael Jouravlev" <[EMAIL PROTECTED]> cc "Struts Users Mailing List" Subject Re: [OT] Struts + AJAX Trumps JSF Frank/Michael P

Re: Custom Struts code or 1.2.8?

2005-10-14 Thread Joe Germuska
At 9:17 PM -0700 10/13/05, Paul Benedict wrote: Does anyone ever run any custom versions of Struts or the Commons library? The reason I ask is because the bug that I need fix (it is now fixed) in Commons Validator isn't released for the Struts 1.2.x branch, but most likely will be released with S

Re: Struts and db connections :: best practice

2005-10-14 Thread Larry Meadors
Well, I use iBATIS in my apps, so I don't think about the java.sql package much - just SQL and POJOs..it's all good. :-D *However*, for the 1% of the time that I use JDBC, I generally use a template pattern for dealing with resources. Probably the best description of that pattern is in the Spring

Re: Struts and db connections :: best practice

2005-10-14 Thread Ed Griebel
A minor detail, include the original exception as the root cause for the new exception so that it will be easier for the poor person doing implementation support (probably you) to figure out what really created the problem. For example: ... catch(SQLException e){ log.error("insert", e);

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Martin Gainty
Frank/Michael Personally whenever I see a Flash site I always elect 'html' simply because I dont have the time to wait for stream to load to my browser client..Its a bandwidth issue..*any* technology which attenuates the content to minimum bandwidth of the underlying transport will succeed (viz

Re: Custom Struts code or 1.2.8?

2005-10-14 Thread Stewart Cambridge
I customised the validator just yesterday because it stops at the first error when using List-backed forms and indexedListProperty and I wanted it to run all validations down the page. I tried to extend the relevent class, but found too many methods were private or package access, rather than prote

Re: Struts and db connections :: best practice

2005-10-14 Thread Leon Rosenberg
I will try to answer for Larry :-) On 10/14/05, emre akbas <[EMAIL PROTECTED]> wrote: > Larry, I think you are using DAO. Then, I want to ask you how do you deal > with the SQLException's and unclosed connections in your DAO classes if you > are using JDBC as the persistence layer. > > Say, you ha

Re: struts 1.2.7 culprit.....?????

2005-10-14 Thread Simons Kevin
Bib, I am using that struts version without problems. I first had troubles in the beginning to but someone got me started. However I have not yet used tiles... - Original Message - From: "bib_lucene bib" <[EMAIL PROTECTED]> To: Sent: Friday, October 14, 2005 2:05 AM Subject: Re: stru

not able to populate action messages; corrosponding entries made in web.xml and struts-config.xml

2005-10-14 Thread varun ahluwalia
Following is the piece of code i am using to populate action message. ActionMessages msgs = new ActionMessages(); msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(" error.notValidConfName")); saveMessages(request, msgs); I am not able to get the message for the key "error.notValidConfNam

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Werner Punz
Frank W. Zammetti wrote: > So no, I don't think Ajax is the great savior or anything, nor is it the > future of web development in and of itself. How I think it will be > remembered though is in showing that RIAs are viable and that the real > paradigm shift isn't Ajax itself, but is the underlyi

Re: [OT] Struts + AJAX Trumps JSF

2005-10-14 Thread Werner Punz
Kito D. Mann wrote: >>>At this point, with the clear promise of AJAX, I cannot see >> >>any reason >> >>>to give up Struts and go to JSF. If I was starting a new web >>>application today, I would use Struts and AJAX. >> >>Not that I going to jump JSF anytime soon, but: >>http://www.icesoft.co

Re: Struts and db connections :: best practice

2005-10-14 Thread emre akbas
Larry, I think you are using DAO. Then, I want to ask you how do you deal with the SQLException's and unclosed connections in your DAO classes if you are using JDBC as the persistence layer. Say, you have CustomerDAO and it has a insert method: public class CustomerDAO { boolean insert() { Connec