Re: last element of logic iterate

2005-03-18 Thread Erik Weber
One way is to use a combination of logic:iterate's indexId attribute (serves as a loop counter) and the bean:size tag (can give the total size of a collection before you iterate). Then you could use a logic:equal test inside the iteration. Erik Richard Reyes wrote: Hello All , How do you

RE: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Sachin Bhutada
Thanks Erik, Yes execute method of ExceptionHandler will be invoked when Action's execute method throws an Exception. But my question was .. Whether it will be invoked if some exception occurs at the time of population the ActionForm's properties. Population is done by Struts

Re: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Erik Weber
Sorry, I misunderstood. The answer is no. The processActionPerform method (as of 1.2.4) runs in a try/catch, while the processPopulate method does not. processPopulate basically just invokes RequestUtils.populate, which just throws a ServletException if it encounters any problems.

Re: Displaying XL in browser

2005-03-18 Thread Emmanouil Batsis
Mili Aggarwal, Noida wrote: Hello, Its not taking the name of the servlet in Url..Its taking the name of form action in URL and that's where the problem is. You need to redirect instead of forward (setRedirect(true) or something). Cheers, Manos

Re: Disable struts server side validation

2005-03-18 Thread Bing Qiao
Hi, Thanks for your reply. I felt it not a good design to disable server side validation as well. The struts application (intranet application) I am adding validation to was not properly designed. A lot of jsps need beans passed from actions to display correctly. Since those beans are defined as

help needed on ActionForm and ActionForward behaviour

2005-03-18 Thread Gaet
Hi, I have a DispatchAction class, that I use to handle the employee information Edit. On my jsp page, I have two button, on to validate the updates and forward back to the employee list = that works great. On the other button, I want to validate the updates and display the next employeeI

Problems using JSTL with struts

2005-03-18 Thread Rodolfo García Esteban/CYII
Hi, I have a little application done with struts 1.2 and hibernate 2.1, I want to migrate it to JSTL 2.0, and struts-EL. I have done the next: 1. Install jstl, adding to the WEB-INF/lib jstl.jar 2. Writing in the pages then taglib clause to import the tags. But I have the next problems. 1

Re: Problems using JSTL with struts

2005-03-18 Thread Tom Ziemer
Hi, I had a similar problem. What I did was: a) put jstl.jar and standard.jar in WEB-INF/lib b) modify your web.xml - it should start with this line: web-app xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: Problems using JSTL with struts

2005-03-18 Thread Vamsee Kanakala
Rodolfo García Esteban/CYII wrote: 2. when I do c:out value=${}, in then web I don't see then content of , I see as a literal ${}. EL is not working for you. Most probable culprit is web.xml. It should have webapp 2.4 DTD like so: ?xml version=1.0 encoding=ISO-8859-1?

[Shale] Resource initialisation best practice

2005-03-18 Thread Duncan Mills
Fellow Shale'ers, Given the scenario when you have reference data to set up, say on the application, which is not dependent on a particular view, but which must be put in place before the first view is displayed, and given that there is no single entry point for the app, what approach would you

Where to put base code for each request

2005-03-18 Thread Arno Schatz
Hi, I would like to write code before and after each request is being processed, for example some looging of each request and close any started tranaction which is still open. Frist I was thinking of subclassing Action and put the code in the overriden execute method, but that would restrict

RE: Will the execute method of ExceptionHandler be called ?

2005-03-18 Thread Sachin Bhutada
Thanks erik .. -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 12:26 AM To: Struts Users Mailing List Subject: Re: Will the execute method of ExceptionHandler be called ? Sorry, I misunderstood. The answer is no. The processActionPerform

Re: Where to put base code for each request

2005-03-18 Thread Rodolfo García Esteban/CYII
Servlet filters it's the best solution, if you are using a compatible container with Servlet 2.4. Rodolfo García Esteban Canal Isabel II División de Aplicaciones Técnicas C/ Santa Engracia, 125 Edificio 8 Tel. 91 545 10 00 - Ext. 2128 Fax. 91 545 14 41

RE: [SUCCESS] Struts-JSF London Networking BOF VIII / Tuesday / 15th March 2005 @ 18:45 / Oracle City of London

2005-03-18 Thread Pilgrim, Peter
-Original Message- From: Pilgrim, Peter ==== Dear Reader, The Eighth Struts JSF London Networking /b/a BOF event took place on Tuesday, 15th March 2005 at 6:45PM ==== Duncan has offered to the slides to be downloaded from. ==== Duncan has made presentation

RE: Struts Menu

2005-03-18 Thread Vijaya S
Hi Matt, I solved the menu problem I was having. The problem was that I was missing log4j and commons_lang jar files in my web app lib. Thanks, Vijaya -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Monday, March 14, 2005 7:32 PM To: Struts Users Mailing List

Re: Where to put base code for each request

2005-03-18 Thread Arno Schatz
Anybody having an example how to do that? thanks, Arno Rodolfo García Esteban/CYII wrote: Servlet filters it's the best solution, if you are using a compatible container with Servlet 2.4. Rodolfo García Esteban Canal Isabel II División de Aplicaciones Técnicas C/ Santa

Re: Where to put base code for each request

2005-03-18 Thread Rodolfo García Esteban/CYII
J2EE tutorial1.4 has an example about filters that adds code after the response of one servlet, is doing a responseWrapper. I think it's easy to adapt to you want Rodolfo García Esteban Canal Isabel II División de Aplicaciones Técnicas C/ Santa Engracia, 125 Edificio 8

Re: Validation not honouring 'bundle' attribute?

2005-03-18 Thread David Kennedy
Quick update; after a night's sleep I'm starting to think this is a real bug and not just a mis-config on my part. Looks like args {0}, {1} etc are being looked up in the default resource bundle, even when the error messages are being correctly found in the specified bundle. I'm going to cheat

Re: Validation not honouring 'bundle' attribute?

2005-03-18 Thread Niall Pemberton
Although the validator dtd has a bundle attribute its not used in Struts. Details here http://issues.apache.org/bugzilla/show_bug.cgi?id=21760 The pre-requisite changes to Validator were released in Validator 1.1.4, but I haven't yet got round to changing Struts.

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Joe Germuska
At 11:05 PM -0500 3/17/05, Frank W. Zammetti wrote: Well, I could certainly be wrong, but based on what others have said related to this matter, my understanding is that you can define a Chain in the chain-config file and then reference that chain on an Action mapping so that in essence you

canceling a operation after sending to container

2005-03-18 Thread mah bub
Hi, I'm very new to this web based solution devlopment. I manage to develop a solution using Struts/SQL Server/XSLT/XML for a retail shop in our country. Some of the reports are very highly resource needed and the users some times pree 2/3 times on the same button to generate the report. Is

Re: canceling a operation after sending to container

2005-03-18 Thread Erik Weber
Are you familiar with synchronizer tokens? Basically, you insert a hidden variable (a unique string) into your form when the user requests the form page. On the server side, you track that same string in the session for that user. When the form is later submitted, you check that the token

Re: Validation not honouring 'bundle' attribute?

2005-03-18 Thread David Kennedy
Thanks for the info Niall, I'll look forward to using the new code later in the release cycle. For now, using Ant to concatenate all resources into one file solves my problem (contention for property file in source control) and, bonus, doesn't require those writing JSPs to remember to use

RE: last element of logic iterate

2005-03-18 Thread Slattery, Tim - BLS
How do you determine if your on the last element of your logic:iterate loop? JSTL makes this very easy. Something like: c:forEach items=${someCollection} var=oneItem varStatus=status c:if test=${status.last} stuff to do in the last iteration /c:if /c:forEach -- Tim

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 1:53 am, Dakota Jack said: You can do anything like this, I think. But, you can do this sort of thing without chain too. What I mean, Frank, is that if you can list two ActionForms in your action-mapping then that would be good. This is just a KISS principle, which I

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 6:53 am, Joe Germuska said: Frank, you have a correct understanding. Well, even a blind cat finds the litter box every now and again :) Good to know I got it! In this specific case, my concern is that specifics of Jack's implementation seem unique to his coding

RE: Best way to cancel

2005-03-18 Thread Abdullah Jibaly
David, Yes, I'm using the form in a wizard-type flow so it is used in two consecutive calls. I want to be able to detect that cancel was selected and not have the form overwrite the values that were already there. Thanks, Abdullah -Original Message- From: David G. Friedman

RE: ActionForm problem

2005-03-18 Thread Hyrum
I would still like to know what the root problem is here, the tag thing aside. Why can't the ValidatorActionForm see my value ssnOnFile when I change the type from boolean to String?? Just for future reference, anyone have any ideas?? -Original Message- From: Hyrum [mailto:[EMAIL

RE: ActionForm problem

2005-03-18 Thread Hyrum
I would still like to know what the root problem is here, the tag thing aside. Why can't the ValidatorActionForm see my value ssnOnFile when I change the type from boolean to String?? Just for future reference, anyone have any ideas?? -Original Message- From: Hyrum [mailto:[EMAIL

Re: help needed on ActionForm and ActionForward behaviour

2005-03-18 Thread Gaet
In other words, I would like to implemnt a button Save and display next employee How to do this? - Original Message - From: Gaet [EMAIL PROTECTED] To: Mailing List Struts user@struts.apache.org Sent: Friday, March 18, 2005 10:06 AM Subject: help needed on ActionForm and ActionForward

html:XXXXXX question

2005-03-18 Thread Scott Purcell
Hello, I am struggling with using the html: tag, and the docs are just confusing me. I have an application that I want to use the html:image tag. But the images need to have a height and width set to them. So I tried this: html:image page=/images/equipment.gif height=1 width=342

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/17/2005 10:23 PM: Certainly I can see the reasoning behind that, but I would have to disagree. What if down the road I need to use one of those screens independant of that original flow? Isn't it just added complexity to have all the extra stuff in

Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Oh boy, I got a good one! It's only related to Struts in that the application in question is Struts-based, so I hope no one minds a semi-OT question... Here's the situation... An app I wrote has a daemon thread that is spawned at startup (from a Struts plugin) that does periodic background

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 10:32 am, Rick Reumann said: Ok, then how about using separate ActionForms and after each submits copy the properties (BeanUtils) to a POJO that you are using in Session scope to hold the values you finally need. This way you have the flexible separate ActionForms but

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/17/2005 10:19 PM: I could be wrong here, so feel free to educate me if so... if I return a forward from an Action that is a typical forward that references a JSP, the request is essentially done being handled at that point, right? What I mean by that

RE: html:XXXXXX question

2005-03-18 Thread Chad Baker
Try html:img, instead. http://struts.apache.org/userGuide/struts-html.html#img chad -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 10:27 AM To: user@struts.apache.org Subject: html:XX question Hello, I am struggling with using the

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 10:42 am, Rick Reumann said: No, you are correct and sorry for the confusion. No worries mate! :) Yes there is some over head if you have to forward to the setup of another action (vs going right to the JSP), but to me that's a small price to pay for having a clean

Re: html:XXXXXX question

2005-03-18 Thread Rick Reumann
Scott Purcell wrote the following on 3/18/2005 10:27 AM: I need to show an image (used to use img src=/images/equipment.gif height=1 width=342) This image does not need to be a url or anything. Use html:img for this and not html:image. Then you get set the height and width as above. html:image

Re: ActionForm problem

2005-03-18 Thread Jeff Beal
Did you change the types on both the getter and the setter methods? Did you keep a setter with the boolean type? I don't remember all of the details, but I don't think that the following is a valid bean property: public String getSsnOnFile() { return ssnOnFile ? Y : N; } public void

Tomcat 5.5.7 + Connection Pool

2005-03-18 Thread Alex Rodrigues da Silva
Hi, i'm trying to use a datasource, to connect to postgresql, but i didn't do it. my server.xml have this lines then i added above Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false : DefaultContext

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/18/2005 10:42 AM: I'm not a believer in auto-generated code under any circumstance, even something as clearly mundane as getters and setters. Ok, not going down that road..coughwacko/cough:) But seriously though, you said you had about 2000 lines of

Re: Interesting problem...

2005-03-18 Thread Kris Schneider
Will InetAddress.getLocalHost() work for you? NetworkInterface.getNetworkInterfaces() might also be of interest. Or, you might want to create yourself an instance of java.rmi.dgc.VMID... Quoting Frank W. Zammetti [EMAIL PROTECTED]: Oh boy, I got a good one! It's only related to Struts in that

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 11:09 am, Rick Reumann said: Ok, not going down that road..coughwacko/cough:) Insert comment about sausages and starving dogs here But seriously though, you said you had about 2000 lines of code between your ActionForms. How much time do you think it takes you type out

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Yes, I think InetAddress just might do the trick. Thank you Kris! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 11:24 am, Kris Schneider said: Will InetAddress.getLocalHost() work for you?

Re: ActionForm problem

2005-03-18 Thread Rick Reumann
Just curious, is your boolean getter autogenerated? It might be set up as isSsnOnFile which will work fine for booleans, but when you change to String it needs to find getSsnOnFile. My guess is maybe you changed the type but didn't change the syntax of the getter? Hyrum wrote the following on

[OT] Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Rick Reumann
Frank W. Zammetti wrote the following on 3/18/2005 11:34 AM: At one point in time, and it might still stand, I don't know, I had the record in the Army for typing speed. I'm pretty quick :) I'll have to start calling you Radar:) Although I think he was probably a pretty slow typist (faster than

Re: Interesting problem...

2005-03-18 Thread Martin Wegner
You can also use the Jakarta Commons ID packageto generate a GUID which is guaranteed to be unique in the universe. You could then convert the GUID to your seed. --- Kris Schneider [EMAIL PROTECTED] wrote: Will InetAddress.getLocalHost() work for you? NetworkInterface.getNetworkInterfaces()

RE: Tomcat 5.5.7 + Connection Pool

2005-03-18 Thread Abdullah Jibaly
Alex, Try using only the Resource element like this: Resource name=jdbc/StrutsDemosDS auth=Container type=javax.sql.DataSource scope=Shareable factory=org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory maxActive=20 maxIdle=10 maxWait=-1 username=postgres password=irigon2004

Re: Best way to cancel

2005-03-18 Thread Rick Reumann
Abdullah Jibaly wrote the following on 3/17/2005 5:55 PM: Is there a way to press cancel on a display page and not have Struts populate the ActionForm with the values that were entered? If not what are some common workarounds to this? I basically want to be able to retrieve the old values in that

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Niall Pemberton
- Original Message - From: Frank W. Zammetti [EMAIL PROTECTED] Sent: Friday, March 18, 2005 4:34 PM Good question about what happens with setupItems when validation fails... I didn't think of that situation when I did it... Looking at the code, NONE of the setupItems would be executed

Re: [OT] Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 11:46 am, Rick Reumann said: Frank W. Zammetti wrote the following on 3/18/2005 11:34 AM: At one point in time, and it might still stand, I don't know, I had the record in the Army for typing speed. I'm pretty quick :) I'll have to start calling you Radar:) Although

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Oh, that is sweet! I was totally unaware of that. Thanks Martin! -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 11:52 am, Martin Wegner said: You can also use the Jakarta Commons ID packageto generate a GUID which

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Dakota Jack
There are a jillion solutions, of course. I still think, and maybe I am stating it too much, that the solution should be framework and definitely should not be in a session object. I do think that application data should be handled and have suggested a StrutsState application in application

Re: Tomcat 5.5.7 + Connection Pool

2005-03-18 Thread Alex Rodrigues da Silva
continue, i see this error : org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'. -- Alex Rodrigues da Silva Irigon Imóveis Analista de Sistemas tel.: 55 21 2522-0042 [EMAIL PROTECTED]

Re: Interesting problem...

2005-03-18 Thread Dakota Jack
InetAddress might not get the answer for you, Frank. I don't know what your setup is, but you can go to any ip address service outside your system and get a unique return address for your machines with a mini-browser. Jack On Fri, 18 Mar 2005 11:36:10 -0500 (EST), Frank W. Zammetti [EMAIL

Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
I'm still relatively new to Struts, but I can't help but feel that validation would be better performed by Action classes rather than ActionForm classes. It seems to me that, ideally, you want 1. Validation, 2. Transformations (ie convert separate day, month and year HTML fields to Java Date

RE: ActionForm problem

2005-03-18 Thread Hyrum
Kudos to Jeff for the solution. I had overlooked renaming the getter method from isSsnOnFile() to getSsnOnFile(). Little details will kill you every time. Even though I'm leaving it as a boolean, I still appreciate knowing why it bombed in the first place. Thanks for the rest of the input,

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Dakota Jack
I don't think you want an Action doing the validation, but I am with you that validation does not belong to ActionForm. You don't have to do it there, by the way. Jack On Fri, 18 Mar 2005 17:17:39 +, Lawrie Gallardo [EMAIL PROTECTED] wrote: I'm still relatively new to Struts, but I can't

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Why do you think it wouldn't work? Does it sometimes return incorrect information in some setups? I thought of doing some kind of mini-browser-type thing, but before I go down that road I wanted to explore some simpler solutions. The Commons ID thing is very nice, but I'm not so sure I'm

Re: [Shale] Resource initialisation best practice

2005-03-18 Thread Craig McClanahan
A technique I like (and is actually used in the Use Cases example) is to make your reference data into an application-scoped managed bean (for stuff common to all users; use session scope if it is user specific). Then, the first use of a value binding that needs to load the reference data will

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Frank W. Zammetti
Is it really true that DispatchAction is now the accepted best practice? If so I have to say I disagree with that standard (if not, ignore me!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 12:17 pm, Lawrie Gallardo

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
You raise a lot of points, and I admit I won't be able to respond to all of them in one email (due mostly to time constraints). Besides, there are others who could respond, so I'll leave some out for them. :) There are/can be different levels of validation. Some validation you perform before

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
I'm not sure that I follow you... What I meant was that automatic declarative validation using Struts Validator should be invoked by a ValidatingAction baseclass validate() method, rather than DynaValidatorForm (or similar) baseclass validate() method. And that you could put any validation that

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Joe Germuska
Hijack alert! At 11:09 AM -0500 3/18/05, Rick Reumann wrote: Well, actually I like to have my own validate() method in each of my Dispatch Actions. I don't like having the framework call validate for me. One of the main reason is that if I'm in my action and I manually call my own action's

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
Inline. On Fri, 18 Mar 2005 17:17:39 +, Lawrie Gallardo [EMAIL PROTECTED] wrote: I'm still relatively new to Struts, but I can't help but feel that validation would be better performed by Action classes rather than ActionForm classes. It seems to me that, ideally, you want 1.

RE: Wouldn't validation be better performed by Actions rather tha n ActionForms?

2005-03-18 Thread Treviño De la Garza, Isidoro
Another aproach is to generate your ActionForms using Xdoclet so you don't waste time generating them. Also, I think it is a great idea to do sintactic validation using the Commons Validator and then have some business/semantic validation in another layer, the commons validator (combined with

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
In the interest of giving back, here's what I wound up doing: import java.net.InetAddress; import java.rmi.dgc.VMID; import java.util.GregorianCalendar; int vmidHash = new VMID().hashCode(); long currentTime = new GregorianCalendar().getTimeInMillis(); int ipHash =

Re: Interesting problem...

2005-03-18 Thread Martin Wegner
Frank, I was a little hinky myself about using Common ID in production. But I've been using it or over a year and it has performed admirably. We haven't seen any problems with the package. As for getting the MAC address I had to solve that problem about six months ago. I had to resort to

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Joe Germuska
At 5:17 PM + 3/18/05, Lawrie Gallardo wrote: I'm still relatively new to Struts, but I can't help but feel that validation would be better performed by Action classes rather than ActionForm classes. It seems to me that, ideally, you want 1. Validation, 2. Transformations (ie convert

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
It allows you to handle simple validations outside of the Action class, which would only be called when there's data that can be passed to the business tier (which may, among other things, perform business validation). Also, as the Validator plugin shows, it enabled declarative validation. So

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
Commons ID has been in the sandbox for a year already? Ugh, someone get a release out! :) I think the solution I used is going to suffice nicely. I mean, in a cluster each machine still has a unique IP address anyway, so that in and of itself would have been enough. But, adding in the VMID and

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 12:42 pm, Joe Germuska said: I don't know if dispatch style is best practice. It's my preferred approach, but many experienced Struts developers don't like it much at all. And then you've got wackos like Frank Z who like to write more code just to show off their typing

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
This was just my perception from reading Struts in Action and it was also explicitly stated in a couple of Struts Best Practices articles I found on the web. Personally, I found it a little bit disconcerting that Action classes, that I thought were supposed to be an implentation of the Command

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Dakota Jack
Where did you get this idea, Frank? This seems out of the blue on a thread about validation. I personally like the new dispatch action at http://www.michaelmcgrady.com/button/jsp/dispatch_action.jsp a lot. ///;-) Jack On Fri, 18 Mar 2005 12:25:00 -0500 (EST), Frank W. Zammetti [EMAIL

Re: Interesting problem...

2005-03-18 Thread Dakota Jack
The class works, but I don't think it is what you want. Maybe it is. Just don't have high expectations. I did and was disappointed. Just trying to help you out, Radar! ///;-) Jack On Fri, 18 Mar 2005 12:21:28 -0500 (EST), Frank W. Zammetti [EMAIL PROTECTED] wrote: Why do you think it

Re: Multiple ActionForms per ActionMapping

2005-03-18 Thread Dakota Jack
This is probably obvious, but you can choose to validate other than in the ActionForm, which I do, and not validate in the Action as well, which I also do. I leave validation to a validation application which sits between the business logic and the view for me. Jack On Fri, 18 Mar 2005

Re: [Shale] Resource initialisation best practice

2005-03-18 Thread Duncan Mills
Right, this is more or less what I've gone for in the end, but the managed bean I'm creating was not referenced directly in the page, and it would have been a little artificial in that case to put it in. So I've resorted to a createValueBinding in the Shale init() method which bootstraps the

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Frank W. Zammetti
I've always felt that class sizes should be reduced wherever possible. Even when the code is extremely simplistic, as should be the case in Actions generally, it's still more difficult to look through a higher volume of code (this is in fact a known metric that most code analysis tools use).

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
I've wanted a nickname all my life (aside from the explicitives some would use!)... never thought it's be Radar :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, March 18, 2005 1:09 pm, Dakota Jack said: The class works, but I

html: tags part2

2005-03-18 Thread Scott Purcell
Hello, Sorry these tags are killing me today, I have the html: docs up, but they are long, and things are not clicking today. I am trying to replace the following two buttons (one submits and one cancels the form) with html: tags, so my whole site is consistent. current config has a hreflink

Re: Interesting problem...

2005-03-18 Thread Kris Schneider
Quoting Frank W. Zammetti [EMAIL PROTECTED]: I've wanted a nickname all my life (aside from the explicitives some would use!)... never thought it's be Radar :) Then it probably shouldn't be ;-) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies

Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 1:30 pm, Kris Schneider said: Quoting Frank W. Zammetti [EMAIL PROTECTED]: I've wanted a nickname all my life (aside from the explicitives some would use!)... never thought it's be Radar :) Then it probably shouldn't be ;-) Oh no, I opened my mouth with regard to my

How to search this list?

2005-03-18 Thread jelything
Hi there, What is the best way to access this list if you wanted to search it? My old method stopped working and the other sites I use to access it don't seem to search at or or well. Thanks, J - To unsubscribe, e-mail:

Re: How to search this list?

2005-03-18 Thread PA
On Mar 18, 2005, at 19:36, jelything wrote: What is the best way to access this list if you wanted to search it? http://zoe.nu/ Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED]

Validating Nested DynaValidator Forms

2005-03-18 Thread jelything
I have a DynaValidatorForm that holds many items, including an ArrayList of DynaValidatorForms. Calling validate() on the main form works just fine, but how do I get the nested forms to validate? If I iterate through the ArrayList, and cast them back to a DynaValidatorForm and then simply call

Re: Interesting problem...

2005-03-18 Thread Kris Schneider
Quoting Frank W. Zammetti [EMAIL PROTECTED]: On Fri, March 18, 2005 1:30 pm, Kris Schneider said: Quoting Frank W. Zammetti [EMAIL PROTECTED]: I've wanted a nickname all my life (aside from the explicitives some would use!)... never thought it's be Radar :) Then it probably

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Hubert Rabago
As to whether this is the right thing to do, I would say yes, IMHO. I understand why you may not like it, though. For the customization you want, you can override the RequestProcessor (or implement your own ComposableRequestProcessor commands if you're using 1.3) and change how validation is

RE: ActionForm problem

2005-03-18 Thread Hyrum
Props to Rick as well. You were dead on. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 9:42 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Just curious, is your boolean getter autogenerated? It might be set up as

RE: ActionForm problem

2005-03-18 Thread Hyrum
Props to Rick as well. You were dead on. -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 9:42 AM To: Struts Users Mailing List Subject: Re: ActionForm problem Just curious, is your boolean getter autogenerated? It might be set up as

[MASSIVELY OT AT THIS POINT] Re: Interesting problem...

2005-03-18 Thread Frank W. Zammetti
On Fri, March 18, 2005 1:46 pm, Kris Schneider said: Actually, I was thinking more along the lines of Radar's precog abilities. So, if you weren't aware the nick was coming, then it obviously doesn't fit ;-). Anyway, for better or worse, you've already got a namesake from the show. All we

Re: How to search this list?

2005-03-18 Thread jelything
Thanks! That's exactly what I was looking for! J --- In [EMAIL PROTECTED], Hubert Rabago [EMAIL PROTECTED] wrote: I still use http://marc.theaimsgroup.com/?l=struts-user Some prefer http://news.gmane.org/gmane.comp.jakarta.struts.user Others like

RE: How to search this list?

2005-03-18 Thread Justin Morgan
Another option: http://desktop.google.com/ (if you're using Outlook or other mail client with a search plugin available) -Justin -Original Message- From: jelything [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 1:36 PM To: struts-user@jakarta.apache.org Subject: How to search

Re: Interesting problem...

2005-03-18 Thread Rick Reumann
I posed your question to a colleague of mine, because this problem is way beyond my puny knowledge. Anyway, his response, for what it's worth: My first instinct is to call this a Supremely Bad Idea. There WILL be conflicts. You can bet on it. Best to have a single maintenance process on a

Re: html: tags part2

2005-03-18 Thread Rick Reumann
Scott Purcell wrote the following on 3/18/2005 1:29 PM: Can I create a image that is a src for a submit, or cancel, or js function? Why not just use a regular image wrapped with an href and use javascript? example... a href=javascript:doSomething() html:img .../ /a -- Rick

Re: Wouldn't validation be better performed by Actions rather than ActionForms?

2005-03-18 Thread Lawrie Gallardo
Thanks for your detailed answers, Joe. Just a few queries though: Now, if my understanding is correct: 1. There is always a one-to-one mapping between an ActionForm and an ActionMapping, Often not true. Earlier today on the dev-list Ted H. described a case where you might have a long form

RE: Problems using JSTL with struts

2005-03-18 Thread Karr, David
I'm not sure what you mean by JSTL 2.0. Did you mean JSP 2.0? If you're really trying to use Struts in a JSP 2.0 container, then don't use Struts-EL. In that environment, the Struts tags will use the EL natively, and you'd use the JSTL version compatible with JSP 2.0 (not the one compatible

Present formbean value on jsp page.

2005-03-18 Thread Scott Purcell
Well, as normal, I have once again ran into a new snag while building my app. Up until today, I have pulled out my form-param values in my jsp like so into a textfield. html:text property=email size=30 maxlength=50 / And this is great if you want to display it in a text field. But how

what do you suggest me? iBatis or Hibernate

2005-03-18 Thread Milson Cardona
Hi I am novice in J2EE. I have been working with JDBC (SQL statements within of business class), but now desire to work with persitence objects. I know that this are different, Hibernate is then biggest, but iBatis have a knowledge curve very short what do you suggest me? iBatis or

RE: Present formbean value on jsp page.

2005-03-18 Thread java
Can you use bean:write to accomplish what you're after e.g. bean:write name=userbean property=email / Jay Vertical Technology Group http://www.vtgroup.com/ -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, March 18, 2005 2:32 PM To: Struts Users Mailing

Re: Present formbean value on jsp page.

2005-03-18 Thread Rick Reumann
Scott Purcell wrote the following on 3/18/2005 3:32 PM: Well, as normal, I have once again ran into a new snag while building my app. Up until today, I have pulled out my form-param values in my jsp like so into a textfield. html:text property=email size=30 maxlength=50 / And this is great

  1   2   >