Re: friday ha ha

2006-04-21 Thread Phil Zoio
As we all know, Struts has evolved in recent times from being a just a framework to being a community supporting two separate but equal frameworks which have nothing to do with each other except a shared name, and perhaps a couple of shared committers. I think the message that is going out to

JSTL formatNumber and Locale

2006-04-21 Thread Tremal Naik
Hello, I use the following syntax into a jsp page: fmt_rt:formatNumber groupingUsed=true var=minInc scope=page minFractionDigits=1 maxFractionDigits=1 value=${scenarioForm.minIncome}/ nested:text property=minIncome value=${minInc} / The minIncome is initially defined into the scenarioForm as

Re: Can struts do it?

2006-04-21 Thread Tremal Naik
2006/4/21, Marco Mistroni [EMAIL PROTECTED]: I have a DynaActionForm. It has two array fields (String[] ownerRef and Boolean[] suspendPart) and some other fields. I want to populate these arrays from a form and be able to submit the value from the page. That's it. why don't you define an

Re: Can struts do it?

2006-04-21 Thread Tremal Naik
2006/4/21, Marco Mistroni [EMAIL PROTECTED]: I have a DynaActionForm. It has two array fields (String[] ownerRef and Boolean[] suspendPart) and some other fields. I want to populate these arrays from a form and be able to submit the value from the page. That's it. why don't you define a

validate two password fields,how?

2006-04-21 Thread Zheng Wen Zhe
Hey all, I have two password fields, and I wanna validate those two fields containing same data. Is there any key word, I could use (like 'required')? Or I have to add a new javascript in validator-rules.xml? Regards, Jason -

RE: Can struts do it / 2?

2006-04-21 Thread Marco Mistroni
Hello, Thx... but seems not to work i cant manage to populate back to the Action class,.. since I will have an array of DTO that needs to be submitted from the page. The crucial problem that I am having is mainly that within the logic:iterate, for each 'row' I need to create an input parameter

Re: friday ha ha

2006-04-21 Thread Ted Husted
On 4/21/06, Phil Zoio [EMAIL PROTECTED] wrote: I think that the leaders of the Struts community have a responsibility to the hundreds and thousands of existing users to give them as much choice as possible, and not to close the door prematurely on any options which could make sense to a lot of

Re: validate two password fields,how?

2006-04-21 Thread Ted Husted
Yes, you can use validwhen for this: * http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html#validwhen HTH, Ted. On 4/21/06, Zheng Wen Zhe [EMAIL PROTECTED] wrote: Hey all, I have two password fields, and I wanna validate those two fields containing same data. Is there any

[ANNOUNCE] What to Do if Your Code Has Few, If Any Tests?

2006-04-21 Thread Ted Husted
* What to Do if Your Code Has Few, If Any Tests? * Agitar Webinar with Ted Husted * 7 a.m. and 5 p.m. PST on Wednesday 26 April Everyone has worked on a code base that seems to work, but has almost no test assets. Maybe you've had some system-level tests or functional demos that provide a quick

html:checkbox entries are not disappering

2006-04-21 Thread Hans-Peter Petek
Hello all, following problem ... I have a list of entries (arraylist) and I am able to check them (with a checkbox). I can check for example 3 of 5 entries and press the save button ... (some action behind) ... and the 3 entries are checked - all fine. But, when I deselect a checkbox, press the

Re: html:checkbox entries are not disappering

2006-04-21 Thread Rick Reumann
Hans-Peter Petek wrote: But, when I deselect a checkbox, press the button (i.e. submit), all the previous checked checkboxes are still checked .. =?!?!? Every checkbox I ever checked once still remains checked ... Can anyone help me ... Common problem. Make sure you are setting all your

RE: Can struts do it / 2?

2006-04-21 Thread James Harig
The problem might have something to do with the way you have defined the scope of your bean. If it is request, then you will lose the original contents of the bean when the user submits the form. Here's an example, ACTION: Populate form bean, and forward to jsp STRUTS: display jsp USER: Submit

Re: friday ha ha

2006-04-21 Thread Jonathan Revusky
Don Brown wrote: Well said Ted! I'll add that while my attentions have lately been mostly towards getting WebWork 2 of the incubator and starting Struts Action 2, I have been tracking this over the past few months, and really, it seems to be taking a very long time. Broadly speaking, it's

RE: Books on JSF

2006-04-21 Thread bsimonin
Just FYI since JSF and Struts can work together (which I am trying to get working right now). The Core JSF book has a second edition being released this June: http://www.amazon.com/gp/product/0131738860/sr=8-3/qid=1145628942/ref=sr_1_3/102-1035027-3267300?%5Fencoding=UTF8 --Brad Simonin

bean:define in including jsp

2006-04-21 Thread Dilip Ladhani
Hey guys, We us Struts with tiles and here is something, I am having some trouble with. I have a main jsp (a.jsp). This jsp includes a few other jsps (using tiles:insert attribute=b/, where b=b.jsp). Now, if I have a bean:define in a .jsp (eg bean:define name=aForm property=prop id=prop1 /),

Re: Can struts do it / 2?

2006-04-21 Thread Adam Hardy
Marco Mistroni on 21/04/06 11:23, wrote: i cant manage to populate back to the Action class,.. since I will have an array of DTO that needs to be submitted from the page. The crucial problem that I am having is mainly that within the logic:iterate, for each 'row' I need to create an input

RE: Can struts do it / 2?

2006-04-21 Thread Marco Mistroni
Hello adam, Thx... I have tried that.. but problem is that, somehow, the original Array[] object does not get populated when you submit the page I'll investigate more and get back to the list nxt week.. I m pretty busy on other things at the moment.. Thx and regards marco

Beginner's question on Struts and JSP

2006-04-21 Thread Developer Developer
Hello, I need to create a Table in JSP with values coming from the database. I want to use struts frame work for this application. Here is my question How should I design a formbean and link it to the view (JSP) ? Sample view code would be very helpful. I think I need to have a collection

html:multibox validation using Struts Validator framework

2006-04-21 Thread HSS STANLEY
Hi I am trying to do a client side validation for html: multibox tag. I need to do client side validation if all the boxes are checked, before submitting the request. I tried using the depends=required rules in the validator-rules.xml. I see the JavaScript code in my jsp when I try

Re: Beginner's question on Struts and JSP

2006-04-21 Thread Ted Husted
The best thing might be to start by going through the MailReader application that is bundled with the distribution. It does things like populate a table from a database, and covers several other use cases you will run into. Also be sure to review the latest FAQs on the website, to be sure you get

Re: Can struts do it / 2?

2006-04-21 Thread Adam Hardy
OK, when you post next, include the HTML and the getter/setter for the array property. Marco Mistroni on 21/04/06 16:22, wrote: Hello adam, Thx... I have tried that.. but problem is that, somehow, the original Array[] object does not get populated when you submit the page I'll

RE: Beginner's question on Struts and JSP

2006-04-21 Thread Chaudhary, Harsh
Another resource I found to be very helpful is: http://struts.apache.org/struts-action/userGuide/index.html Harsh. -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 10:55 AM To: Struts Users Mailing List Subject: Re: Beginner's question on Struts

struts validation with tiles

2006-04-21 Thread James Savage
Hi - I'm new to Struts and Tiles. I am trying to use Struts validation in a form with Tiles. I have a simple form with a textbox. If a user fails to enter something in the textbox, on submit, a message is returned to the form. This part is working fine. I am also using Tiles with a header,

.NET/WebServices/Java

2006-04-21 Thread John Walker
Is there a way that I can have a Struts application that services a .NET view, Struts controller, and Struts model objects? I've recently been writing my own framework to do such a thing, and I'm wondering if I should have deferred to the wisdom of Struts users :) before delving into my own

Re: struts validation with tiles

2006-04-21 Thread Wendy Smoak
On 4/21/06, James Savage [EMAIL PROTECTED] wrote: However, when a validation error message is returned (because nothing was entered), only the form with the validation message is displayed, but not the Tiles header, footer and menu. Is there something else I need to do to get the form with a

Re: .NET/WebServices/Java

2006-04-21 Thread Ted Husted
What do mean by a .NET view? Are you talking about a .ASPX file with a code-behind? -Ted. On 4/21/06, John Walker [EMAIL PROTECTED] wrote: Is there a way that I can have a Struts application that services a .NET view, Struts controller, and Struts model objects? I've recently been writing my

servlet action not available

2006-04-21 Thread fea jabi
Everything was working fine and I included a jsp and actions related which was showing as well too when app was launched. then, later started getting this error. I was in middle of making changes and was verfiying the changes I made. struts config seams to be ok. I had config file 10days old

Re: servlet action not available

2006-04-21 Thread Dave Newton
fea jabi wrote: what else can I check? Everything else. But I'd start in the log files, perhaps with more aggressive logging. I'd be suspicious of your configs anyway. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For

html:multibox validation using Struts Validator framework

2006-04-21 Thread HSS STANLEY
Hi I am trying to do a client side validation for html: multibox tag. I need to do client side validation if all the boxes are checked, before submitting the request. I tried using the depends=required rules in the validator-rules.xml. I see the JavaScript code in my jsp when I

Re: servlet action not available

2006-04-21 Thread fea jabi
thankyou for your response. Had problems in validation.xml . one of the form property validation was not right! I wish there was a way to fiigure this out easier. what log files were you refering to in your response? From: Dave Newton [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Controlling external process with struts

2006-04-21 Thread Andreas Hartmann
Hello! I've a commandline tool, which should be controlled through a http interface. Controlled means: - The process is started with the correct options (the user can chose them with the html-sites) - this is no problem. - The output from the process should be continuously viewable by the user

Re: struts validation with tiles

2006-04-21 Thread James Savage
Wendy, That worked! Many thanks. Jim On 4/21/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 4/21/06, James Savage [EMAIL PROTECTED] wrote: However, when a validation error message is returned (because nothing was entered), only the form with the validation message is displayed, but not

Re: servlet action not available

2006-04-21 Thread Dave Newton
fea jabi wrote: Had problems in validation.xml . one of the form property validation was not right! I wish there was a way to fiigure this out easier. In general, when I get a servlet not available it means one of the config files is hosed. what log files were you refering to in your

Re: [OT] Survey - how do others accomplish this...

2006-04-21 Thread pantichd
I hope it's ok that I'm asking this here. I know it's not technically a Struts-related question. Based on the link Wendy provided, I googled ServletContextListener and found this (http://www.stardeveloper.com/articles/display.html?article=200901page=1) which sounded like exactly what I'm

Re: date picker (tried javawebparts but facing problem)

2006-04-21 Thread pantichd
Frank, You mention CalendarTag. Is that some third-party tag that extends struts tags? I can't find any info on it. Could you send me a link to example(s) or documentation about it? Thanks! David Frank

Re: Beginner's question on Struts and JSP

2006-04-21 Thread Developer Developer
Harsh and Ted, Thanks for the information Here is one more question. I am able to create an ActionForm with a collection type attribute in it ( Vector) and also i could link it to the table in the JSP. I am getting an error No getter method for property vSectors of bean sectorData. Do you know

Re: Controlling external process with struts

2006-04-21 Thread Bart Busschots
Hi Andreas, Like any other web server a Java based web server use the Common Gateway Interface (or CGI) for sending information between the client and the server. This is a request-response protocol which is driven by the client and not the server. What you are trying to do is have the server

RE: date picker (tried javawebparts but facing problem)

2006-04-21 Thread George.Dinwiddie
http://cvs.sourceforge.net/viewcvs.py/javawebparts/javawebparts/WEB-INF/ src/javawebparts/taglib/uiwidgets/CalendarTag.java?rev=1.3view=log or http://tinyurl.com/efdrt -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, April 21, 2006 3:11 PM To:

[announce] Tutorial: Working with XSL

2006-04-21 Thread Stylus Studio
[Announce]Dear Struts-Users, Stylus Studio has just released a new XSLT tutorial entitled: An Introduction to XSLT. You can view this free online video tutorial today at: http://www.stylusstudio.com/videos/xsltedit1/xsltedit1.html This new video tutorial teaches the following topics: * Using

Struts Equiv to RoR's controller, action, id

2006-04-21 Thread ben.christenson
Hello all, I am relatively new to stuts, and reading madly trying to absorb enough to become proficient. I have worked a bit with Ruby on Rails, and like quite a few of their paradigms, however Ruby is far from an accepted solution for the company I work with. One of the things I really liked

Modularized app and hiding JSPs

2006-04-21 Thread Alan Treece
Maybe this is simple, but then again may it's not... I've got a Struts app that I'm breaking up onto modules so that I can keep the configs seperate. The JSP files are already seperated out into different directories, but what I want to do is hide all of them in the WEB-INF directory. I

Re: date picker (tried javawebparts but facing problem)

2006-04-21 Thread Frank W. Zammetti
CalendarTag is one of the tags in the Java Web Parts UIWidgets package. Here's the javadoc for it: http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/uiwidgets/CalendarTag.html There's only two widgets in that package right now, this and Swapper (one of these here's two boxes

Re: Modularized app and hiding JSPs

2006-04-21 Thread Frank W. Zammetti
Alan, did you know that you can have multiple config files without resorting to modules? I ask because I've found in my experience that many times people use modules without knowing that, and make life more difficult for themselves. As for hiding JSPs in WEB-INF, if memory serves, they are

Re: Struts Equiv to RoR's controller, action, id

2006-04-21 Thread Frank W. Zammetti
Hi Ben, I'm not familiar with RoR, but from what you describe here it sounds like what you want is a DispatchActon, or probably more specifically, the EventDispatchAction introduced in Struts 1.2.9:

Re: Struts Equiv to RoR's controller, action, id

2006-04-21 Thread Don Brown
If you combine DispatchAction [1] with wildcards introduced in Struts 1.2, you can do something very similar: action path=/*/* type=foo.bar.{1}Controller parameter={2} forward name=success path=/{1}/{2}.jsp/ /action Then in Struts 1.3, we added the ability to pass

Re: Multi-Application Support

2006-04-21 Thread Don Brown
I'm not sure what you mean by Multi-Application Support. If you mean modules, then yes, they are commonly used as a way to separate parts of an application. If you are looking for an example, look no further than the Struts Mailreader. The main advantage of modules is each gets its own

Re: struts-config.xml plugin problem...

2006-04-21 Thread Don Brown
The problem is your custom plugin is declared as abstract, so Struts can't instantiate it: --- public abstract class LoggingPlugin implements PlugIn { --- Don On 4/19/06, Alan Treece [EMAIL PROTECTED] wrote: Many thanks for those that have replied to my earlier emails for help... Hopefully

Session lovers... how do you handle this 'common?' situation?

2006-04-21 Thread Rick Reumann
I haven't used Session scope for my ActionForms in a lo time, but now I need to for a particular scenario. The problem I'm running into is imagine you click on a link to Create New - in which case, after you pass through your Action, you'd go to a page backed by the session-scoped

Declarative Exception Handling

2006-04-21 Thread Asad Habib
When using declarative exception handling, where do you create the exception instances? In the action itself? I would like to use the ModuleException class and pass a resource key to the constructor but don't know where this should be accomplished. On another note, are there any resources

Re: [shale] JSF AJAX components using Shale

2006-04-21 Thread Craig McClanahan
On 4/20/06, Matthias Wessendorf [EMAIL PROTECTED] wrote: [snip] What I don't like on that bean is, that it creates via javax.faces.context.ResponseWriter the markup (here a xml list). Just my $0.02 Just FYI, using a response writer is optional. The handler function has the responsibility

RE: date picker (tried javawebparts but facing problem)

2006-04-21 Thread pantichd
Thank you very much! David George.Dinwiddie @wellsfargo.com

Re: date picker (tried javawebparts but facing problem)

2006-04-21 Thread pantichd
Great. Thanks very much! David Z. Pantich FirstEnergy Corp. E-mail: [EMAIL PROTECTED] Phone:(330) 315-6775 Mail Stop: Ghent 308A Frank W.

Re: friday ha ha

2006-04-21 Thread netsql
This is like wizard of Oz. Go Away. But we cam to get a hart, a brain, courage No one here now Why would anyone care if struts is not being marketed or need others to approve of you decision to use something else? If you find Spring better, good for you. If you find JSF better, good for

Re: Session lovers... how do you handle this 'common?' situation?

2006-04-21 Thread David Evans
Hello, Even if Struts is passing a true reference to the form bean that is stored in the session, doing that reassignment inside the dispatch method won't do what you want. * public ActionForward setUpForNew(ActionMapping mapping, ActionForm form, ...{ form = new MyForm();

Re: Session lovers... how do you handle this 'common?' situation?

2006-04-21 Thread Rick Reumann
On 4/21/06, David Evans [EMAIL PROTECTED] wrote: *** That reassignment is just reassigning the local pointer to the new form instance, disconnecting it from the form instance in the session. Good point David:) I was forgetting Java101 and being an idiot. Thanks. Yea, I'll stuff the new

Re: Session lovers... how do you handle this 'common?' situation?

2006-04-21 Thread David Evans
Hey its friday and its late :) And while i'm talking to you, thanks for the struttin with struts lessons, they really helped me when i first started using this stuff. dave On Fri, 2006-04-21 at 21:21 -0400, Rick Reumann wrote: On 4/21/06, David Evans [EMAIL PROTECTED] wrote: *** That

Re: Controlling external process with struts

2006-04-21 Thread Andreas Hartmann
Bart Busschots wrote: Hi Andreas, Like any other web server a Java based web server use the Common Gateway Interface (or CGI) for sending information between the client and the server. This is a request-response protocol which is driven by the client and not the server. What you are