About Datasource

2002-09-30 Thread Kalaiselvan
Hii All, Any one know how to get multiple Datasource from Struts. Because i think in Struts-config.xml, we are able to specify only one Datasource. Also I got an error when I configure my datasources in tomcat's sever.xml context /context I couldnt able to get that datasource

html:form

2002-09-30 Thread Mohan Radhakrishnan
Hi, name - The attribute name of the bean whose properties are consulted to determine which option should be pre-selected when rendering this input field. If not specified, the bean associated with the enclosing html:form tag is utilized. The above is the doc. for html:form .. If I use the

Re: html:form

2002-09-30 Thread deepank
It will pick up property values from the bean ReportParameterForm and NOT 'ReportParameterFormBean' , these two names are different as far as i know Deepank - Original Message - From: Mohan Radhakrishnan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 30, 2002 1:03 PM

Re: Incomplete page!!!

2002-09-30 Thread Vincent Berruchon
You were right, two properties were missing in the ActionForm!!! It wasn't so strange!!! Thanks... Peter S. Hamlen wrote: Yep, we've seen the same behavior a lot. The trick is that there is SOME error occuring on the page (in our case, it was often non-existent property references in our

RE: html:form

2002-09-30 Thread Mohan Radhakrishnan
HI, O.K. It is ReportParameterForm. I am checking this because of the following error. javax.servlet.ServletException: Cannot find bean under name wanLinkOptions I am referring to the html select example from the Struts examples package. bye, mohan -Original Message- From:

About Datasource

2002-09-30 Thread Kalaiselvan
Hii All, Any one know how to get multiple Datasource from Struts. Because i think in Struts-config.xml, we are able to specify only one Datasource. Also I got an error when I configure my datasources in tomcat's sever.xml context /context I couldnt able to get that datasource

displaying result in jsp without set/getAttribute

2002-09-30 Thread Taariq Levack
Hi I've been swimming through the docs but may have overlooked this, please help if you can I want a jsp to display a result after the Action is done , but I don't want to use set/getAttribute(). Is there another solution or is setAttribute the only way to pass the data to the jsp? Thanks in

Re: tabsLayout.jsp ServletException??

2002-09-30 Thread Cedric Dumoulin
So, the web server can't find the specified class. Can you check if the class is present in WEB-INF/classes/org/apache/struts/webapp/tiles/portal/. ? If not, check if it is in the war file. If still not there, it is a bug. Do you have the latest version of Tiles or Struts ? Cedric

Re: Tiles definition (help)

2002-09-30 Thread Cedric Dumoulin
The Tiles framework provides a way to build web pages by assembling page fragment. The Tiles Definition contains one assemblage that can be reuse in other assemblage. The definition name is a unique identifier of this assemblage, not an url. So, you need to link the definition to an URL.

Re: tiles-definitions is incomplete

2002-09-30 Thread Cedric Dumoulin
You try to parse an uncomplete tiles xml configuration file. Maybe you have added a new war file like struts-blank.war in your application ? In Struts 1.1b2 and later, tiles are enable from struts-config.xml, with the appropriate tags. Hope this help, Cedric Tuan H. Le wrote:

Re: html:form

2002-09-30 Thread deepank
This is because u may not have stored the bean wanLinkOptions in request or session, the scope u may be using in ur application. u must store this bean in some scope(probably in your action class) - Original Message - From: Mohan Radhakrishnan [EMAIL PROTECTED] To: 'Struts Users

Struts ActionMapping / OC4J problem

2002-09-30 Thread Thomas Delnoij
Hi. Several days ago, I posted a message relating to configuring Struts to run properly on OC4J. The actual problem was that JDeveloper's wizard for creating Action classes, does not create a perform(), but an execute() method, which I beleive is the old version (?). The Action class that

RE: html:form

2002-09-30 Thread Mohan Radhakrishnan
Hi, The bean should be associated with the html:form tag according to the struts example. The example html:select property=collectionSelect size=10 multiple=true html:options collection=options property=value labelProperty=label/ /html:select doesn't specify any

RE: Struts ActionMapping / OC4J problem

2002-09-30 Thread Miguel Angel Mulero Martinez
Execute is the new versión (1.1b2). Perform is the old metod (1.0.2). Regads. -Mensaje original- De: Thomas Delnoij [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 30 de septiembre de 2002 12:33 Para: [EMAIL PROTECTED] Asunto: Struts ActionMapping / OC4J problem Hi. Several days ago, I

Re: Pre-populating ActionForms

2002-09-30 Thread Dave Derry
Instead of forwarding to 'setup.jsp' that has no presentation, why not forward to 'setup.do'. If there is not presentation, and just action, shouldn't it BE an action rather than a (non)presentation component. Your setup.do action would then perform the prepopulation of the form and forward to

RE: Pre-populating ActionForms

2002-09-30 Thread Andrew Hill
+1 -Original Message- From: Dave Derry [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 19:11 To: Struts Users Mailing List Subject: Re: Pre-populating ActionForms Instead of forwarding to 'setup.jsp' that has no presentation, why not forward to 'setup.do'. If there is not

RE: Status of Validator not validating sub-applications bug (#10348)

2002-09-30 Thread Vikas Sangwan
Hi Micheal, I am trying to use Validator with Struts 1.1 b2. I am not using dynaforms. But I have multiple sub applications in my application. Can you share you code (or your insight for it) with me. Thanks in advance. Regards, Vikas Sangwan. -Original Message- From: Michael

Re: html:form

2002-09-30 Thread deepank
When u use the collection attribute of the options tag, u must store the bean u r trying to access by the collection attribute in some scope. Its not the same bean as the one attributed with your action mapping. It will be some collection like a Vector, ArrayList etc. stored in the some scope

Serving XML and dynamically generated Flash (jgenerator) content with struts

2002-09-30 Thread Stefan.Landro
Title: Serving XML and dynamically generated Flash (jgenerator) content with struts Hi, there! Im kinda new to struts and have a few questions regarding it: 1. is it possible to serve xml using struts? We're currently using 'stand-alone servlets to generate xml that'sread by flash movies,

Re: Serving XML and dynamically generated Flash (jgenerator) contentwith struts

2002-09-30 Thread Jeff Pennal
Hi Stefan, You may want to check out stxx. From your email it seems like it should do everything you need it to do. stxx - http://www.openroad.ca/opencode/stxx [EMAIL PROTECTED] wrote: Hi, there! I’m kinda new to struts and have a few questions regarding it: 1. is it possible to serve

Differences in error validation between 1.0 and 1.1b?

2002-09-30 Thread Billerby Erik
I have recently upgraded to struts 1.1b and I notice that all error messages stored in ActionErrors from the validate-method of the form bean has disappeared when trying to display them using html:errors/. The only change I have made is upgrading struts. Something has happened. What? Here is

Re: Differences in error validation between 1.0 and 1.1b?

2002-09-30 Thread Ronald Rotteveel
Don't you have to call the method saveErrors() ? Regards, Ronald - Original Message - From: Billerby Erik [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 30, 2002 2:29 PM Subject: Differences in error validation between 1.0 and 1.1b? I have recently upgraded to

Re: Differences in error validation between 1.0 and 1.1b?

2002-09-30 Thread Gemes Tibor
2002. szeptember 30. 14:36 dátummal Ronald Rotteveel ezt írtad: Don't you have to call the method saveErrors() ? No. Not in the validate method. It returns ActionErrors. Do you have the appropriate message in your resourcebundle? Tib -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]

html:hidden fields

2002-09-30 Thread Charles McClain
All: I have what seems to be a fairly common situation which is not producing the results I expected: On my JSPs and in my ActionForms, I have a field which represents an artificial key for a database table. On an update, this field will have a value, but on a create, it must be null. I

Re: html:hidden fields

2002-09-30 Thread Dave Weis
On Mon, 30 Sep 2002, Charles McClain wrote: I have what seems to be a fairly common situation which is not producing the results I expected: On my JSPs and in my ActionForms, I have a field which represents an artificial key for a database table. On an update, this field will have a value,

RE: Differences in error validation between 1.0 and 1.1b?

2002-09-30 Thread Billerby Erik
Thanks! That did the job! Before I saw a message like this ???en.Part.partNo??? instead of the message, but it seems like they fixed that. Regards /Erik -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: den 30 september 2002 14:43 To: Struts Users Mailing List

RE: to the bookstore!

2002-09-30 Thread Lowe, Jeff
Vincent, I highly reccomend Patterns of Enterprise Application Architecture, by Martin Fowler. I'm not sure if it's published yet, but you can read most of it on his web site (www.martinfowler.com/isa). It compliments Core J2EE Patterns very well. - Jeff -Original Message- From:

SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Hohlen, John
I was wondering what the overall philosophy is in the Struts Users community in regards to pre-populating action forms? I sent a message out late last week asking for help on how to manually instantiate and pre-populate an action form (prior to forwarding to a JS) in Struts 1.1. That's when I

RE: html:hidden fields

2002-09-30 Thread Charles McClain
Dave: My apologies. I just now changed the fields to html:hidden, and the screen still works. I encountered this problem early on in converting my application to Struts, and I just made the fields html:text during development as a workaround, since it was useful to display the keys for testing

Re: logic:iterate with nested html:img

2002-09-30 Thread Eddie Bush
Awesome! No problem ;-) Vinh Tran wrote: Eddie: I figured out that EL is working fine and it does indeed work with all types of tags. Thanks again. Vinh -- Eddie Bush -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: About Datasource

2002-09-30 Thread David Graham
You can define multiple datasources in struts-config.xml by having mulitple datasource elements inside the datasources element. You need to give each datasource a unique name (or key) so that you can retrieve them from the ServletContext to use them. See the struts dtd for the syntax of the

Re: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread David Graham
I do the same as Eddie. Put an action in front of the form that sets its initial values. Dave From: Hohlen, John [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-Help (E-mail) [EMAIL PROTECTED] CC: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: SURVEY:

RE: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Miguel Angel Mulero Martinez
Me too. -Mensaje original- De: David Graham [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 30 de septiembre de 2002 15:34 Para: [EMAIL PROTECTED] Asunto: Re: SURVEY: Proper Way To Pre-populate ActionForms I do the same as Eddie. Put an action in front of the form that sets its initial

RE: all this traffic

2002-09-30 Thread Assenza, Chris
Setting up your mail reader to automatically forward STRUTS-USER messages to a separate folder, and then sorting by thread, is a trivially easy approach to dealing with volume issues. Your inbox is no longer clogged, you can go read Struts mail when you have time, and can ignore entire

Re: Serving XML and dynamically generated Flash (jgenerator) contentwith struts

2002-09-30 Thread Eddie Bush
[EMAIL PROTECTED] wrote: Hi, there! I?m kinda new to struts and have a few questions regarding it: 1. is it possible to serve xml using struts? We're currently using 'stand-alone servlets to generate xml that'sread by flash movies, but we're seeing a need for things like

RE: Serving XML and dynamically generated Flash (jgenerator) content with struts

2002-09-30 Thread Stefan.Landro
Thanks for the tip! However, I do not want to transform the xml ... I want a flash-movie to interpret it and transform it into flash-objects (I really just want to return content of type text/xml to the user. Is there something like a xslt no-op? Now, let's say stxx solves my problem related to

RE: Serving XML and dynamically generated Flash (jgenerator) content with struts

2002-09-30 Thread Joe Latty
in your action class: PrintWriter out = new PrintWriter (response.getOutputStream()); out.println(yourXmlString); return null; Joe -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 12:03 AM To: [EMAIL PROTECTED] Subject: RE: Serving

RE: Serving XML and dynamically generated Flash (jgenerator) content with struts

2002-09-30 Thread Ady Das-O'Toole
You can also set the content type in your response object like so: response.setContentType(text\html); response.setContentType(text\pdf); etc... -Original Message- From: Joe Latty [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 10:34 AM To: Struts Users Mailing List Subject:

[OT - Java] How can I do this in Java?

2002-09-30 Thread Jerry Jalenak
OK - off topic, but Sun's java forum sucks, and there are an incredible number of Java guru's on this list, so I thought I'd throw this out here. (That and I am using this in a custom validation routine :-))Any help would be GREATLY appreciated! Here's the scenario - I've got a series of

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
sounds like a job for reflection (java.lang.reflect.*;) Have you looked at java.lang.Class and java.lang.reflect.Field? -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 7:50 AM To: '[EMAIL PROTECTED]' Subject: [OT - Java] How can I do

RE: Property errors.prefix not used by HTML:errors ?

2002-09-30 Thread James Mitchell
What version of struts are you using? James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Pel Oliver Kristiansen [mailto:[EMAIL PROTECTED]] Sent: Sunday, September

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Jerry Jalenak
Jason, Thanks for the quick reply. I just took at look at the API's, but don't yet understand enough about reflection to know how to implement it. Just looking at the methods I don't see a way to do what I want - any chance that you'd have some sample code laying about? Jerry -Original

RE: About Datasource

2002-09-30 Thread Tuan H. Le
Hi, I'm experiencing this same problem. If you have a solution, please post. Thanks, Tuan -Original Message- From: Kalaiselvan [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 2:18 AM To: Struts Users Mailing List Subject: About Datasource Hii All, Any one know

Access JSP in the WEB-INF

2002-09-30 Thread Smith, Johnathan M.
I was reading that I should put all my JSP inside the WEB-INF dir so clients cant access them without going to the controller. My issues is that How do I access them?? can someone please tell me how to setup my Action so I can display the JSP files?? -- To unsubscribe, e-mail:

RE: Access JSP in the WEB-INF

2002-09-30 Thread Andrew Hill
Once they are under web-inf a direct access from the client will not be allowed by the container, however forwards on the server side are allowed, thus to get to the JSP you can forward to it from an Action. The benefit of this is that users will not be able to hit your JSP without first going

RE: About Datasource

2002-09-30 Thread Jerry Jalenak
Try this data-sources data-source key=DataSource1 set-property property=autoCommit value=false / set-property property=driverClass value=oracle.jdbc.driver.OracleDriver / set-property

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
I don't happen to have any sample code that does exactly what you're doing, but off the top of my head (with a little help from sun's javadoc) I'd say it's something like: import java.lang.reflect.Field; String stateCode = AK; Class constantClass =

RE: all this traffic

2002-09-30 Thread Malcolm Davis
Since March of 2001, there has been almost 27K emails sent to the list. Why the continuous pouring of emails? Maybe another technique has to be developed for people to research problems. By the way - the separate folder technique works until you take a trip for week and things get back logged.

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread John Bindel
On Mon, Sep 30, 2002 at 07:59:18AM -0700, Taylor, Jason wrote: sounds like a job for reflection (java.lang.reflect.*;) Have you looked at java.lang.Class and java.lang.reflect.Field? I suppose reflection would work, but what's wrong with a simple HashMap or possibly even a simple array as a

Re: html:hidden fields

2002-09-30 Thread Craig R. McClanahan
The server cannot tell the difference between an input field that was visible (html:text) and invisible (html:hidden) -- when the form is submitted, they both look the same. Therefore, your problem is being caused by something else. Likely culprits: * No setter method (or a case match

RE: Access JSP in the WEB-INF

2002-09-30 Thread Andrew Hill
Im in a bit of a rush right now to try and get a taxi home before the midnight charge kicks in, but Im sure there are many others out there who can give you a good example (right guys???) -Original Message- From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30,

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Jerry Jalenak
Jason - Thanks for the code snippet - worked like a charm first time! I tend to get lost in JavaDoc sometimes, so this was a nice example to have on how to wind my way through to the answer! Thanks again! John - Thanks for the suggestion on using the HashMap. I'm going to file it away for now

RE: html:options

2002-09-30 Thread Sri Sankaran
The first technique couples your presentation with your business logic more closely than does the latter. So, my preference would be using the html:options. You can maintain the collection that makes up the options in the form bean for the page. Initialization must be handled via the

RE: all this traffic

2002-09-30 Thread Craig R. McClanahan
On Mon, 30 Sep 2002, Malcolm Davis wrote: Date: Mon, 30 Sep 2002 10:41:53 -0500 From: Malcolm Davis [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: all this traffic Since March of 2001, there has been

RE: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Taylor, Jason
My problem with doing database lookups in ActionForm.reset() is that an exception may occur and it's not as easy to handle as it when doing things within the Action class (where you can just forward things to an error.jsp). I find that if I trap the exception, the populate method may have

How do I forward/redirect to a dynamic url with parameters

2002-09-30 Thread Doug Bryant
How do I redirect to a dynamic url with parameters? I need to forward to some url with a query string that is dynamically created. The url I forward to can change and I also need to create that dynamically. Also, the url I need to forward to is external to our system. I have tried

Re: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Craig R. McClanahan
The struts-example app (which uses a separate action for the setup) is the method that I recommend for manually setting up an ActionForm instance, plus any other beans that need to be looked up and placed in request scope. To remind you of the relationships, the actions and the JSP page are

RE: Access JSP in the WEB-INF

2002-09-30 Thread Billy Ng
I was told I could do this; action name=aPage .. [put the jsp file here] /action action forward name=aPage path=aPage.do / /action Billy Ng From: Andrew Hill [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Subject: RE: Access JSP in the WEB-INF Date: Mon,

RE: Access JSP in the WEB-INF

2002-09-30 Thread James Mitchell
I have a modified version of the struts-example that demostrates how to do this. Would you care for a copy? James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From:

reset-method with multipage DynaValidatorForm

2002-09-30 Thread Ralf Lorenz
Hello, first of all, I did search the user-archive and I had a look at the struts-simple workflow example by Ted Husted. Nevertheless I wasn't able to solve this problem o my own. I have one action class (InsertPersonAction) and one DynaValidatorForm class (InsertPersonBean) that should do the

RE: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Craig R. McClanahan
On Mon, 30 Sep 2002, Taylor, Jason wrote: Date: Mon, 30 Sep 2002 08:54:46 -0700 From: Taylor, Jason [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: SURVEY: Proper Way To Pre-populate ActionForms My

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread Daniel Jaffa
Make sure your code in a proper try and catch. Using reflection spits out nasty errors if anything is not right.:( ClassCastException IllegalAccessException NoSuchMethodException InvocationTargetException Daniel jaffa - Original Message - From: Jerry Jalenak [EMAIL PROTECTED] To:

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
good point-- you'd also want to printStackTrace() (if possible) before rethrowing InvocationTargetException, since it can be difficult to debug an ITE otherwise... -Original Message- From: Daniel Jaffa [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 9:49 AM To: Struts Users

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Jerry Jalenak
Yeah, already ran across the exceptions. Right now I'm trying to decide how to handle them since all of this code is actually in a custom Validator routine. Jerry -Original Message- From: Taylor, Jason [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 11:57 AM To:

[SELL STRUTS] How do you sell the ActionForm idea?

2002-09-30 Thread Dan Cancro
I'm trying to sell a colleague on using Struts, and I'm pretty close, but he can't understand the value of using ActionForm classes instead of just HashMaps. Has anyone else had to make this case? The validate() method is one advantage, but it seems obsolete now that we have the validator

TilesRequestProcessor and I18n!!!!

2002-09-30 Thread Cristian Cardenas
Hi all, I'm having a problem with the Tiles request processor and I18n. The problem is that the request processor doesn't load the Locale of the client in the session. What could be the solution, to implement a request processor class extending TilesRequestProcessor? Which methods of

RE: SURVEY: Proper Way To Pre-populate ActionForms

2002-09-30 Thread Taylor, Jason
I'm actually not throwing SQLExceptions-- instead a generic application exception bubbles up from the DB interaction within an object repository that populates the form. The problem for me is that if I have an array of items within the form, I may not need to know the state of the individual

RE: [SELL STRUTS] How do you sell the ActionForm idea?

2002-09-30 Thread James Mitchell
Have you used DynaActionForm? They're like little gold nuggets of magic ;) James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]]

RE: Access JSP in the WEB-INF

2002-09-30 Thread Smith, Johnathan M.
Yes. please send it to me -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 12:25 PM To: Struts Users Mailing List Subject: RE: Access JSP in the WEB-INF I have a modified version of the struts-example that demostrates how to do this.

RE: [SELL STRUTS] How do you sell the ActionForm idea?

2002-09-30 Thread Robert Taylor
+1 and DynaValidatorActionForms have frosting :) robert -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 2:03 PM To: Struts Users Mailing List Subject: RE: [SELL STRUTS] How do you sell the ActionForm idea? Have you used

Tiles and tabbed display

2002-09-30 Thread Charles McClain
All: Okay, I successfully integrated Struts Tiles with my app, and it's working very nicely, thank you. Then I got the bright idea that I wanted a tabbed display, and since the Tiles documentation shows a couple of examples of tabbed displays, I thought, Why not?. Now that it's brought me to

[BUG]Action Servlet not initialized load-on-startup in Resin

2002-09-30 Thread Greg Hess
Hi All, My application is intermittently being initialized improperly. I am deploying multiple struts based app's into resin and am experiencing errors with several Struts tags being used. The application deploys fine 9/10 times and then blows up. When I inspect the logs I follow the

Re: [SELL STRUTS] How do you sell the ActionForm idea?

2002-09-30 Thread Peter S. Hamlen
I suppose selling him with look, so many other people are being productive with this tool, let's just use it is out? :) From my own experience: 1) Sell him on the fact that you can create (either via DynaForm or through the magic of Mapped Properties) a generic ActionForm that behaves just

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread John Bindel
On Mon, Sep 30, 2002 at 12:02:41PM -0500, Jerry Jalenak wrote: Yeah, already ran across the exceptions. Right now I'm trying to decide how to handle them since all of this code is actually in a custom Validator routine. Good Lord, people, why is reflection anything but the option of last

RE: [SELL STRUTS] How do you sell the ActionForm idea?

2002-09-30 Thread Taylor, Jason
DynaActionForms are more maintainable than HashMaps because their properties are configured in the standard struts config file, rather than in code or some home-grown configurator. If your colleague doesn't like lifting decisions out of code and into configuration files, he probably isn't

RE: all this traffic

2002-09-30 Thread micael
The most significant way to reduce traffic is to answer peoples questions. Eddie Bush is a heavy user of this list, but probably cuts the total amount of traffic. Sorry, Eddie, did not mean to give you a compliment, but had to anyway. ///;-) The list is for using. The traffic attests to

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Jerry Jalenak
Easy, John ... step away from the keyboard ... carefully now ... :-) Seriously, I wasn't sure what the best way of doing this was, or even if it could be done. I'm still looking at the code (still undecided about the exceptions) and may yet end up recoding it as a static HashMap. I'm still

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread Craig R. McClanahan
Comments intermixed. On Mon, 30 Sep 2002, John Bindel wrote: Date: Mon, 30 Sep 2002 13:49:22 -0500 From: John Bindel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT - Java] How can I do this in Java?

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread John Bindel
On Mon, Sep 30, 2002 at 01:55:20PM -0500, Jerry Jalenak wrote: Easy, John ... step away from the keyboard ... carefully now ... :-) I'm sorry about that, I don't know why I converted DL to ZIP. The lookup table works nicely when you know you will start by knowing the state abbreviation. I

Access JSP in the WEB-INF - PART2

2002-09-30 Thread Smith, Johnathan M.
I moved all my JSP files under WEB-INF JSP. Now my new issue Lets take the following example. I need my user to enter vendor information and then cofirm it, then save it. Below is how my struts-config.xml file is setup action path=/PaymentVendor_AddVendor

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread John Bindel
On Mon, Sep 30, 2002 at 12:22:25PM -0700, Craig R. McClanahan wrote: Comments intermixed. Same. On Mon, 30 Sep 2002, John Bindel wrote: Date: Mon, 30 Sep 2002 13:49:22 -0500 From: John Bindel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users

Re: Access JSP in the WEB-INF - PART2

2002-09-30 Thread Eddie Bush
Does it do the right thing? Does it do the thing right? Ok - there you go :-) Seriously though - it sounds like you're right on-track to me ... -- Eddie Bush -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Taylor, Jason
Sorry I didn't think a little more before posting my 'help'. Seems it spurred a good discussion, though. I don't use reflection terribly often (just to select service factory classes at initialization usually), but then again I don't often attempt to dynamically select static final constants.

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread micael
I could not agree more on reflection. The management potential of reflection is huge. I really like Stuart Dabbs Halloway's book Component Development for the Java Platform, which is really reflection based in essence, and love the JMX API. Still, the present problem is not a very good

Problem with Forward

2002-09-30 Thread Rodrigo Arias L
Hi, my name is Rodrigo, I'm using struts with Velocity, my problems is that when I use the code return (mapping.findForward(HomeMenuShow)); in the edit form for employer (for example) to return to the main menu, if the action was save, the app save the new employer, then show the main menu,

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Martin Cooper
-Original Message- From: John Bindel [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 12:48 PM To: Struts Users Mailing List Subject: Re: [OT - Java] How can I do this in Java? On Mon, Sep 30, 2002 at 12:22:25PM -0700, Craig R. McClanahan wrote: Comments

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread Peter A. J. Pilgrim
John Bindel wrote: On Mon, Sep 30, 2002 at 12:02:41PM -0500, Jerry Jalenak wrote: Yeah, already ran across the exceptions. Right now I'm trying to decide how to handle them since all of this code is actually in a custom Validator routine. Good Lord, people, why is reflection

Struts Validator doesn't seem to be working

2002-09-30 Thread Halvorson, Loren
I'm wondering what I'm doing wrong. I tried dropping last nights build (20020930) of struts-validator.war into Tomcat 4.1.12, and it does not work at all. Is this a known problem? The index.jsp page contains the following message in red: ERROR: Validator resources not loaded -- check Commons

RE: [OT - Java] How can I do this in Java?

2002-09-30 Thread Joe Barefoot
I'd like to go ahead and point out that the little classloading test given here may not always give the same results, even on the same machine with the same VM; it is largely dependent on what classloader loads the class you are doing the forName() on. This is because the ClassLoader which

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread Max Cooper
I agree that reflection is not a good solution here, but does have useful application in general (but it isn't needed here, so don't use it). Use a singleton or a statically-initialized Map to look up the patterns based on the state. Save yourself some time by putting Patterns in the map,

okay, one more time for the slow people...

2002-09-30 Thread Vincent Stoessel
How do you use the DyanActionForm in the action classes. I saw 2 different examples in the archive, neither of which worked for me. DynaActionFormClass dafc = DynaActionFormClass.getDynaActionFormClass(AddUserForm); DynaActionForm myForm = dafc.newInstance(); gives me this compile

Re: [OT - Java] How can I do this in Java?

2002-09-30 Thread Cyber.Zombie
Let's take it one step further and make the Map a 1st-class object. After all, shouldn't all knowledge of how to recognize a driver's license be localized to a single class? Then the external interface can be a simple as isValidLicense( state, licenseString ); Max Cooper wrote: I agree

Re: okay, one more time for the slow people...

2002-09-30 Thread Eddie Bush
- Declare your form to be of type DynaActionForm in struts-config - Declare your properties to be of whatever type they need to be - Preface the page call with an action which will cast the form argument to be a DynaActionForm - call form.set(property, value) as needed - forward to the page that

[OT] HttpSessionAttributeListener - multiplicity

2002-09-30 Thread Eddie Bush
How many of these puppies are there per application? One? One for each session? I've been digging - even consulted the spec (!) and I don't see where it says. Sound (?) reasoning tells me there would be one for each session. Am I correct? Thanks! -- Eddie Bush -- To unsubscribe,

Re: [OT] HttpSessionAttributeListener - multiplicity

2002-09-30 Thread Eddie Bush
It would appear you ever only have one of them :-( (Yeah, I should have just tried it first instead of asking, but ...) Faced with log output showing me you only ever get one of these, I'm ... the question comes to mind: Why does this exist? What problem does it solve? Eddie Bush wrote:

Re: [OT] HttpSessionAttributeListener - multiplicity

2002-09-30 Thread Craig R. McClanahan
On Mon, 30 Sep 2002, Eddie Bush wrote: Date: Mon, 30 Sep 2002 18:13:13 -0500 From: Eddie Bush [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users List [EMAIL PROTECTED] Subject: [OT] HttpSessionAttributeListener - multiplicity How many of these

Re: [OT] HttpSessionAttributeListener - multiplicity

2002-09-30 Thread Craig R. McClanahan
On Mon, 30 Sep 2002, Eddie Bush wrote: Date: Mon, 30 Sep 2002 18:27:05 -0500 From: Eddie Bush [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users List [EMAIL PROTECTED] Subject: Re: [OT] HttpSessionAttributeListener - multiplicity It would appear you

Re: [OT] HttpSessionAttributeListener - multiplicity

2002-09-30 Thread Eddie Bush
Yes, my question was multiplicity of each declared listener wrt sessions themselves (I should have been more clear). It would appear, based off my quick experimentation, that only one instance of each is loaded declared listener (at least HttpSessionAttributeListener). That wasn't what I

Re: okay, one more time for the slow people...

2002-09-30 Thread V. Cekvenich
The other way is: public Object onDisplayZoomExec(ActionEvent ae) throws Exception { String id = ae.getReq().getParameter(ID); // the PK is? long ia = BUtil.longString(id); TasksBean frm = (TasksBean) ((TilesEvent)ae).getFormBean(); setBBean( frm );

RE: okay, one more time for the slow people...

2002-09-30 Thread Martin Cooper
It seems to me that this code is already *relying* on another framework in order to be more portable to another MVC framework. ActionEvent, TilesEvent, TaskBean, BUtil, etc. are not Struts classes. Pulling in another framework just to be able to use DynaActionForm seems like the antithesis of

  1   2   >