RE: What is the current status of Components?

2001-05-15 Thread Robert Taylor
-Original Message- From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 15, 2001 3:31 PM To: [EMAIL PROTECTED]; struts Subject: What is the current status of Components? When will components be integrated with struts? Does anyone have any examples using

RE: Using STRUTS with Servlet Exec

2001-08-06 Thread Robert Taylor
Hello Vince, I'm currently using Struts 1.0 with ServletExec 4.0 ISAPI for Microsoft IIS on Win2000 and have not had any problems. It was pretty simple. If you use .war file, you can do as you mentioned already and put it in the [SEversion]/webapps/default directory. When SE starts up, then it

Somewhat off topic - JDO (JavaDataObject)

2001-08-16 Thread Robert Taylor
I apologize if this seems to be off topic, I'm designing a typical e-commerce web application with Struts framework in the web layer but am not using EJB for managing persistence in the business layer. I have reviewed the J2EE blue prints and the DAO (Data Access Object) pattern and am curious to

RE: struts and castor

2001-08-16 Thread Robert Taylor
Hello Zillle, If I understand you correctly, you have a bean that performs a simple query and you want to incorporate some business logic. I would create a separate object/bean for to perform the business logic and it can delegate the appropriate responsibilities to the simple query bean

RE: struts and castor

2001-08-16 Thread Robert Taylor
: Thursday, August 16, 2001 10:18 AMTo: [EMAIL PROTECTED]Subject: Re: struts and castor are you familiar with the struts and Castor mapping tools - Original Message - From: Robert Taylor To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 3

RE: struts and castor

2001-08-16 Thread Robert Taylor
There have been several discussions on this list concerning how MVC is implemented. There is some good documentation on the Struts web site (http://jakarta.apache.org/struts/userGuide/index.html) and Ted Husted's site (http://husted.com/about/struts/) I would also check out the mailing list

RE: struts and castor

2001-08-16 Thread Robert Taylor
the documentation but my problem is the use of castor mapping tool as well. Where does that fit in. Let me know. - Original Message - From: Robert Taylor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 3:40 PM Subject: RE: struts and castor There have been several discussions

RE: MS SQL JDBC Drivers?

2001-08-17 Thread Robert Taylor
We are using JTurbo's Sun Certified type 4 driver for MSSQLServer. You can get a free eval at http://www.newatlanta.com . They (New Atlanta) also have a pretty cool servlet engine (ServletExec4.0) robert -Original Message- From: Mikkel Bruun [mailto:[EMAIL PROTECTED]] Sent: Friday,

RE: What is Titles? and what gonna happens to template tag in the furture?

2001-08-17 Thread Robert Taylor
http://www.lifl.fr/~dumoulin/tiles/ HTH, robert -Original Message- From: Trieu, Danny [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:45 PM To: '[EMAIL PROTECTED]' Subject: What is Titles? and what gonna happens to template tag in the furture? any link where I can read

RE: What is Titles? and what gonna happens to template tag in the furture?

2001-08-17 Thread Robert Taylor
? danny -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: RE: What is Titles? and what gonna happens to template tag in the furture? http://www.lifl.fr/~dumoulin/tiles/ HTH, robert -Original

RE: AW: MS SQL JDBC Drivers?

2001-08-20 Thread Robert Taylor
Matt, I'm not sure if your statement refers to iPlanet app server or web server, but we have used the JTurbo SQL Server Type 4 JDBC driver on iPlanet web server running on Win2k without any issues. robert -Original Message- From: Matt Raible [mailto:[EMAIL PROTECTED]] Sent: Monday,

RE: Using Dispatch Action

2002-10-16 Thread Robert Taylor
Name each of your submit buttons action. Now unless you want the submit button values to be method1, method2, etc..., you would have to use LookUpDispatchAction. I believe this allows you to have user friendly submit button values and still invoke the appropriate method. This is done using a

RE: Using Dispatch Action

2002-10-16 Thread Robert Taylor
problems, but want to find out the usefulness of Dispatch Action, thats why i want to know a neat way to change the action attribute of the form in the JSP. Deepank - Original Message - From: Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent

RE: Why Use Serialized Value Objects instead of XML or SOAP? (Was .... Can V in MVC be Swing in Struts?)

2002-10-18 Thread Robert Taylor
If you do take this offline, please include me in the messages. I find this topic very interesting and I like your solution for minimizing endpoints. [EMAIL PROTECTED] Thanks, robert -Original Message- From: [EMAIL PROTECTED] [mailto:Kevin.Bedell;sunlife.com] Sent: Friday, October

RE: options not showing

2002-10-19 Thread Robert Taylor
You are not alone, my frustrated brotha'. I've done this before and I was pulling my hair out trying to figure out just what the heck was going on. Glad you resolved it :) robert -Original Message- From: Mohan Radhakrishnan [mailto:MohanR;hclcomnet.co.in] Sent: Saturday, October 19,

RE: [OT] html:options /

2002-10-24 Thread Robert Taylor
ummmvery small rocks? robert -Original Message- From: ruben [mailto:ruben.carvalho;inesc.pt] Sent: Thursday, October 24, 2002 8:11 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: [OT] html:options / But, what else floats in the water? King Arthur's turn

RE: Don't want the ActionForm to refill my form.

2002-11-05 Thread Robert Taylor
Redirect instead of forward. You can do this in your struts-config.xml file for your action by setting the redirect attribute of the forward element to true; or, if you are manually creating the forward, the constructor takes a boolean which indicates a redirect instead of a forward. robert

RE: Previous Action

2002-11-05 Thread Robert Taylor
Darren, you can create different action mappings which identify the correct return to screen but map to the same action. If I'm on the list page and I would invoke something like /do/list/delete and if I was on a view, then invoke the delete action like /do/view/delete. The action mapping for

RE: Passing an (Dyna)ActionForm to the business object

2002-11-05 Thread Robert Taylor
I would say you wouldn't necessarily violate MVC if you pass the DynaActionForm as a DynaBean into your model. Your model doesn't need an Form functionality, it only needs to access the data which is supported by the DynaBean contract. DynaBean is not bound to any presentation layer and therefore

New ApacheCon session: What's New in Struts 1.1

2002-11-07 Thread Robert Taylor
For anyone going to ApacheCon, this may be of interest. robert -Original Message- From: Rodent of Unusual Size [mailto:Ken.Coar;Golux.Com] Sent: Thursday, November 07, 2002 2:16 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: ApacheCon schedule change Another change to the

RE: select and option tag issues

2002-11-08 Thread Robert Taylor
Solution 1: In your action class which is called before displaying the page with the drop down box, use a business delegate to access your data from the appropriate data source into some type of collection. Store the collection in the appropriate scope (session, request). Have the page render the

RE: select and option tag issues

2002-11-08 Thread Robert Taylor
To add to my earlier response: After you retrieve the data, convert it into a collection of LabelValue beans. After that, you can use the following syntax to render the data; assume the data is stored placed in the form under a property called options. html:select property=someValue

RE: select and option tag issues

2002-11-08 Thread Robert Taylor
Try this: html:select property=major_locations html:options property =locationValues labelProperty=locationLables/ /html:select/td When you get some cycles read up on the JavaBean specification. Struts uses reflection to access and mutate data in

RE: Redux: Actions and business logic, or Using Struts with the Rational Unified Process

2002-11-12 Thread Robert Taylor
How do you see FormBeans used in the problem domain? If the problem domain is the business layer that contains the logic to solve the problem, then I believe it is best not to couple the business layer with any specific presentation layer, such as Struts, which would occur if you use FormBeans in

RE: From old JSP and Servlets to STRUTS

2002-11-12 Thread Robert Taylor
Fernando, I'm going through this exact scenario and I think it's great your getting exposed to this as an intern. Your about to learn things that cross way over the academic border. I took a top down approach and executed the following steps: 1. Defined the overall objective of the application.

RE: IE's autocomplete

2002-11-21 Thread Robert Taylor
David, Struts is a server side framework, and therefore does not directly control the behavior of the client. Struts, JSTL, EL, etc..., facilitate rendering data in the client. So unless HTML or Javascript has a standard way to disable MS IE's *autocomplete* for input forms, you are at the mercy

RE: Prepopulating DynaActionForm which has an indexed property

2002-12-11 Thread Robert Taylor
Try this: DynaBean newForm = DynaActionFormClass.getDynaActionFormClass(myForm).newInstance(); String[] firstNames = new String[employee.numberOfPersons()]; for (int i= 0; i employee.numberofPersons() ; ++ i) firstNames[i] = employee.firstName(); // do you mean

RE: TAG PROBLEM

2002-12-16 Thread Robert Taylor
I'm not clear how this relates to Struts, but it looks like it is a problem with your deployment descriptor as the error message indicates. Does your deployment descriptor for your application define the tag library? Is the uri attribute correct in your JSP scriplet? robert -Original

RE: still wondering Re: Where to repopulate dynamic lists ?

2003-02-12 Thread Robert Taylor
Rick, I usually define the setUpForm action URI as the input attribute of the processForm action element. That way if a validation error occurs the request is forwarded to the setUpForm action which repopulates the list and forwards to the page where my list is displayed along with the error

[OT] Tell VM to use a different java.security file other than the one in default location

2003-02-12 Thread Robert Taylor
Apologies in advance for the OT post. I have some background processes that run as NT services. Each process will run in its own VM. I would like each process to use its own java.security file. I know there must be a way to tell the VM to use a different java.security file other than the default

RE: Struts design flaw -- ActionForms are not true domain objects

2003-02-17 Thread Robert Taylor
If you use any flavor of DynaForms, you can pass the user input directly to the business domain as a DynaBean interface which is not directly connected to Struts, but rather to org.apache.commons.beanutils package. You will most likely still have to convert to some sort of DataTransportObject

RE: Proper place/tier for retrieving DDLB Values

2003-02-19 Thread Robert Taylor
Joshua, There are many ways to accomplish your goal. To answer your question, the DAO is typically the object that encapsulates the persistance and query logic and therefore would perform the query using the key passed in from the domain object. As far as returning results, you have a couple

RE: handling form errors in Actions, returning to form, prepopulating them without re-POSTING

2003-02-19 Thread Robert Taylor
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg58515.html -Original Message- From: otisg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 12:39 PM To: [EMAIL PROTECTED] Subject: handling form errors in Actions, returning to form, prepopulating them

RE: RE: handling form errors in Actions, returning to form, prepopulating them without re-POSTING

2003-02-19 Thread Robert Taylor
to be re-sent to the original action that retrieved the list, no? E. The user is not prompted with 'Do you want to re-POST' dialog -- Does this happen automagically? Thanks, Otis On Wed, 19 Feb 2003, Robert Taylor ([EMAIL PROTECTED]) wrote: http://www.mail-archive.com

RE: RE: handling form errors in Actions, returning to form, prepopulating them without re-POSTING

2003-02-19 Thread Robert Taylor
will automatically populate the form if you are using the appropriate html:*/ tags. robert -Original Message- From: otisg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003 2:44 PM To: Robert Taylor; Struts Users Mailing List Subject: RE: RE: handling form errors

RE: RE: handling form errors in Actions, returning to form, prepopulating them without re-POSTING

2003-02-19 Thread Robert Taylor
snip Does Struts do that somehow behind the scenes,snip Struts does this for you. You should review the Struts documentation and examples. It will clear up a lot of these questions. robert -Original Message- From: otisg [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 19, 2003

RE: Heeeeeeeeeeelllllllllpppppppppp

2003-02-20 Thread Robert Taylor
BlankPlease refer to the mailing list archives. This question has been answered many times. http://www.mail-archive.com/struts-user%40jakarta.apache.org/ A search on Cannot retrieve definition for form bean null returns 57 hits. robert -Original Message- From: Chetan Sahasrabudhe

RE: Why reset is called when a form is submitted?

2003-02-21 Thread Robert Taylor
http://www.mail-archive.com/struts-user%40jakarta.apache.org/ -Original Message- From: Ray Madigan [mailto:[EMAIL PROTECTED]] Sent: Friday, February 21, 2003 12:31 PM To: Struts Users Mailing List Subject: RE: Why reset is called when a form is submitted? I guess some people are

RE: how old is struts

2003-02-21 Thread Robert Taylor
According to the test answers at http://developer.java.sun.com/developer/Quizzes/misc/struts.html Craig McClanahan wrote the initial version of Struts over the 2000 Memorial Day weekend. I missed that question. Doh! robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Help: ActionError - html:errors / does not expand the {0} placeholder

2003-02-23 Thread Robert Taylor
Please stop sending emails with 'Return receipt requested'. Its rather annoying. robert -Original Message- From: w i l l i a m b o y d [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 2:36 AM To: Struts Users Mailing List Subject: Re: Help: ActionError - html:errors / does

RE: ActionMapping enhancement?

2003-02-24 Thread Robert Taylor
Brandon, I have a similar situation and I ended up extending ActionMapping and using the set-property in the action-mapping in the struts-config file. robert -Original Message- From: Brandon Goodin [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 12:35 PM To: Struts User

RE: help with populating a select box from a bean

2003-03-05 Thread Robert Taylor
I generally populate a collection of LabelValue beans and put them in the form or some scope and use optionsCollection tag. For example if I had a collection of LabelValue beans and named it categoryOptions and my form property was category, then the following would be the syntax to render the

RE: [Design Pattern]FormBean in Model Layer

2003-03-09 Thread Robert Taylor
If you are using DynaActionForms which implement the DynaBean interface, you could pass the DynaBean interface to your Fascade without binding to a particular presentation framework. You could then take advantage of some of the copy properties utilities in the org.apache.commons.beanutils package

RE: [Design Pattern]FormBean in Model Layer

2003-03-10 Thread Robert Taylor
Is being tied to the DynaBean API that bad. Seems like it, along with the entire beanutils package, is a great tool. Why write custom DTO interfaces when you could simply leverage DynaActionForm or DynaValidatorActionForm which both implement the DynaBean interface. Then use the beanutils package

RE: Sort a collection in alphabetic order

2003-03-10 Thread Robert Taylor
Do it in the query. select ID, FIRSTNAME, LASTNAME from people order by LASTNAME, FIRSTNAME robert -Original Message- From: Søren Blidorf [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 1:17 PM To: [EMAIL PROTECTED] Subject: Sort a collection in alphabetic order Hi. I

RE: [ANN] Struttin' With Struts beta (newbies esp. welcome)

2003-03-11 Thread Robert Taylor
Good work Rick. I'm sure many users (new and not-so-new) will greatly benefit from your efforts. robert -Original Message- From: Rick Reumann [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2003 2:37 AM To: Struts Users Mailing List Subject: [ANN] Struttin' With Struts beta

RE: Model 2 with a half-order of X

2003-03-12 Thread Robert Taylor
Jeff, I haven't tried this before, but it seems like one solution would be to generate your XML doc in the Action (or some delegate) and place it in the appropriate scope and then use XTags (http://jakarta.apache.org/taglibs/doc/xtags-doc/intro.html) to transform the doc. Another solution, would

RE: Action Forwarding Issue

2003-03-12 Thread Robert Taylor
http://www.mail-archive.com/[EMAIL PROTECTED]/msg14224.html robert -Original Message- From: sifman [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2003 4:04 PM To: [EMAIL PROTECTED] Subject: Action Forwarding Issue How can I forward to another action class sending a

RE: How to populate a form with data and then have the DynaValidatorForm validate it afterwards

2003-03-13 Thread Robert Taylor
Have 2 actions: -PopulateFormAction -ProcessFormAction When the user clicks to edit the Monitor, invoke, PopulateFormAction. When the user submits invalid data (invoke ProcessFormAction), the request should forward back to the input defined in the struts-config file. All the form data still

RE: Retrieving Request Values After Validation (DynaValidatorForm)

2003-03-13 Thread Robert Taylor
One solution is to assign the URI of SetupMyFormAction as the input instead of the .jsp page. By doing this, Struts will forward the user to SetupMyFormAction if validation error occurs which will prepopulate the form accordingly but will also retain the users input. robert -Original

RE: [Q] how to get Form name in include JSP?

2003-03-13 Thread Robert Taylor
One solution would be to use a dynamic include instead of static. jsp:include page=a.jsp jsp:param name=formName value=MyForm/ /jsp:include In a.jsp: html:text property=start name=%=request.getParameter(formName)%/ robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[OT]RE: when should classes contain other objects?

2003-03-13 Thread Robert Taylor
Heather, Let me first say that this is considered off-topic and the subject of your email should indicate it as such if you post to this mailing list. Rick Reumann has set up a Yahoo Group http://groups.yahoo.com/group/model_struts/, for this topic. You can post to [EMAIL PROTECTED] That being

RE: How to populate a form with data and then have the DynaValidatorForm validate it afterwards

2003-03-14 Thread Robert Taylor
I think there is a disconnect caused by my course grained answer. Let me explain in further detail. OBJECTIVE: The objective is to request a URL which returns a .jsp page which is populated with information from the database. The subsequent objective is to return the .jsp page with any invalid

RE: design concern

2003-03-17 Thread Robert Taylor
Prepare SQL queries in a DAO which can live in the session bean. The Action class is in the web tier and should be void of any query/persistence logic. robert -Original Message- From: santhosh [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2003 8:02 AM To: 'Struts Users Mailing

FW: [struts-atlanta]

2003-03-18 Thread Robert Taylor
I am forwarding this question to the Struts mailing list as I don't know the answer, but I'm sure some one on Struts list does. robert -Original Message- From: Claude Glauser [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2003 10:19 AM To: [EMAIL PROTECTED] Subject: [struts-atlanta]

RE: struts jdk1.4 logging

2003-03-18 Thread Robert Taylor
I'm using JDK1.4 logging in parallel with Apache's Commons-Logging and it works fine. The Apache's Common-Logging should be using JDK1.4 logging as well for its underlying implementation since it (JDK1.4 logging) exists in my environment. robert -Original Message- From: Navjot Singh

RE: jdk14 log

2003-03-19 Thread Robert Taylor
Vic and Navjot, sorry I didn't respond sooner, I can't interact with the mailing list from work. I didn't really do anything special to get JDK1.4 logging to work with Struts. From what I understand, commons-logging will detect JDK1.4 logging, and use the logging.properties file for

RE: [Q] why bean:write can't be used without NAME as html:text can?

2003-03-19 Thread Robert Taylor
Use the nested taglib. nested:write .../ robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 19, 2003 1:58 PM To: [EMAIL PROTECTED] Subject: [Q] why bean:write can't be used without NAME as html:text can? Hello, from html:text

A dynamic way to reset/populate DynaXXXXActionForm

2003-03-19 Thread Robert Taylor
I recently decided to exercise my skills in using dynamic indexed properties with my DynaValidatorActionForm. I quickly realized that I will need to have some code in the DynaValidatorActionForm.reset() which must re-populate my indexed collection so that the RequestUtils.populate() can

RE: Control Access

2003-03-19 Thread Robert Taylor
Please search the archives. This has been discussed many times. You might also try a google search. I also remember reading a recent article in the Java Developer Journal on several strategies for this. robert -Original Message- From: mahesh kagitha [mailto:[EMAIL PROTECTED] Sent:

RE: Country select pull down.

2003-03-20 Thread Robert Taylor
Mick, Populate a collection of LabelValue beans with your countries (assuming your have something like countryId, countryName for each country) when your web app initializes (ServletContextListener-if 2.3) and place it in the ServletContext. Then on your .jsp page use the following syntax

RE: Country select pull down.

2003-03-20 Thread Robert Taylor
. Designer - Project Trust aUBS AG, Financial - Zürich Office: +41 (0)1/234.42.75 Internal: 48194 Mobile: 079.726.14.26 _ -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 2:52 PM To: Struts Users Mailing List Subject: RE

RE: Fine Grained Access Control in Sturts

2003-03-20 Thread Robert Taylor
+1 ... and if the docs don't have the answer, there is always the source code and DTDs. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED] Sent: Thursday, March 20, 2003 3:42 PM To: [EMAIL PROTECTED] Subject: Re: Fine Grained Access Control in Sturts I don't have

RE: Retrieving properties from a DynaValidatorForm

2003-03-22 Thread Robert Taylor
Marco, you should be able to use the get(). String name = (String)form.get(name); robert -Original Message- From: Marco Tedone [mailto:[EMAIL PROTECTED] Sent: Saturday, March 22, 2003 3:54 AM To: Struts-user-list Subject: Retrieving properties from a DynaValidatorForm Hi, I'm

RE: One tag in other tag's attribute's value

2003-03-24 Thread Robert Taylor
Couldn't you use this? html:link action=/Delete paramId=id paramName=row paramProperty=idDelete/html:link robert -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 9:45 AM To: Struts Users List Subject: One tag in other tag's attribute's

RE: Digester Error

2003-03-24 Thread Robert Taylor
I've seen this when a property is defined under the same name twice within a form-bean element. Not sure that really offers any insight to the problem other than I have seen it happen before. robert -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: Digester Error - Hey Robert!

2003-03-25 Thread Robert Taylor
of code, but based on your idea, my app compiles and runs. Thanks for the insight, d00d!!! Mark -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, March 24, 2003 3:54 PM To: Struts Users Mailing List Subject: RE: Digester Error I've seen this when

RE: Io exception

2003-03-25 Thread Robert Taylor
Sounds like the Struts Network Adapter isn't working... Sorry, I couldn't resist. This sounds like a database driver issue. How are you establishing your connections? You could do some preliminary testing before posting to the list. Create a small test application that simply tries to get a

Re: Design Advice - Relational Databases Java Objects

2002-06-06 Thread Robert Taylor
on topics not directly related to Struts. robert --- Adam Hardy [EMAIL PROTECTED] wrote: ... (still being dim) ... but how do the DAOs see the Transaction object? Robert Taylor wrote: The DAOs have a method called getConnection(). Inside getConnection() they call

Assertions

2002-06-06 Thread Robert Taylor
I'm using Struts 1.0, and have a process with a set of related event handlers which I have grouped into a single DispatchAction class. Each event has a set of assertions (some similar, some different) which must pass before any (even form validation) processing occurs. I have basically

RE: Assertions

2002-06-06 Thread Robert Taylor
- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 7:12 AM To: [EMAIL PROTECTED] Subject: Assertions 1. Assertions that are common to all events. 2. Assertions that are common to a set of related events. 3. Assertions that are specific to an event

image buttons and dispatching events

2002-06-06 Thread Robert Taylor
I want to be able to processes similar events with a single Action class. I know the Struts framework provides both DispatchAction and LookupDispatchAction. All my events where method=post are invoked with an input element of type image. The request parameters for such an element are name.x and

RE: [Struts Tips] #2 - Template Method Dispatch Action?

2002-06-06 Thread Robert Taylor
So if I had an Action that handled the following operations on an account: -createAccount -retrieveAccount -updateAccount -deleteAccount instead of having these 4 methods defined, in a single action class, you would define a business bean in the action mapping and something similar to the

RE: [struts-atlanta] populating Collections one time?

2002-06-07 Thread Robert Taylor
Rick, As for where to put them, I would place them in the ServletContext scope. As for how to manage them, you might consider having some sort of cache manager which periodically refreshes the cache. As for population, you could either use a lazy loading strategy or just initialize all static

RE: Java Website ISP

2002-06-07 Thread Robert Taylor
Mark, we use www.cqhost.com. Packages start at @ $150.00/yr. We've had them for about a year and I don't have any real complaints. robert -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 10:26 AM To: Struts (E-mail); Servlets (E-mail);

RE: Validating forms with the validator

2002-06-07 Thread Robert Taylor
I downloaded and ran the struts-validator.war example that comes with Struts1.1b1. I had two issues: I had to remove the extra password definition in the struts-html.tld and I had to add the jakarta-regexp-1.2.jar to the WEB-INF/lib directory. After that, it worked fine. robert

RE: Multi-part form

2002-06-07 Thread Robert Taylor
If you mean a form that is used across requests (ie some wizard process), then the struts-validator.war web app contains an example of using a single form and performing validation where user input is split across two screens. It is contained in the Struts 1.1b1 binaries which I believe is a

RE: Assertions

2002-06-07 Thread Robert Taylor
. -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 8:07 AM To: Struts Users Mailing List Subject: RE: Assertions Yep, that may be the approach I take although it circumvents the front controller. Not necessarily a bad thing. It just

RE: Validating forms with the validator

2002-06-07 Thread Robert Taylor
(Thread.java:479) From: Robert Taylor [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: Validating forms with the validator Date: Fri, 7 Jun 2002 13:28:05 -0400 I downloaded and ran the struts-validator.war

Struts Validator

2002-06-07 Thread Robert Taylor
I want to leverage the declarative validation functionality offered by the Struts Validator package, but I have some reservations about how it works. In my particular configuration, my application will use DispatchActions to process common events. In many cases I will use one ActionForm for all

RE: Struts Validator

2002-06-09 Thread Robert Taylor
formname=action2 fieldproperty=field1 /form /formset Your Form bean should extend ValidatorActionForm. The Validator will only validate fields configured for the given action. Hope this helps. P. Robert Taylor [EMAIL PROTECTED] wrote: I want to leverage

RE: SQL STatements in a Properties file.

2002-06-10 Thread Robert Taylor
I must agree. 2 years ago I designed a small web application where my SQL statements resided in a properties file and I cached them and retrieved them at run time from the cache. Although some SQL statements could be tweaked and cache updated without touching any code, some modified SQL

RE: Database access design question

2002-06-10 Thread Robert Taylor
It sounds like your DAO is really a business object and your db object follows the DAO design pattern. I think you have the right concept though. You may want to check out http://groups.yahoo.com/group/model_struts/. It is dedicated to discussing the model layer using Struts. robert

RE: Database access design question

2002-06-10 Thread Robert Taylor
This is a subjective area. The Data Access Object is a design pattern which really is just a recommendation on how to implement access to the data store. There are several approaches, from home grown to commercial O/R products. Take a look at Martin Fowlers site

RE: Struts Validator (resolved)

2002-06-11 Thread Robert Taylor
I just found out that the DynaValidatorActionForm provides this functionality (defined below). robert -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 6:53 AM To: Struts Users Mailing List Subject: RE: Struts Validator Thanks Peter

RE: Cannot reload web app because Digester is locking struts.jar file (SOLVED)

2002-06-12 Thread Robert Taylor
not sure if the resource location strategy is standard among servlet containers, but it seems to work for us. We use #2. robert -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 12, 2002 10:26 AM To: [EMAIL PROTECTED] Subject: Cannot reload web app

RE: Re[2]: If several JSPs share the same action mapping...?

2002-06-12 Thread Robert Taylor
Rick, if you have multiple JSPs all using the same action and need to determine where to send the user upon a validation error, why not just have several action mappings and explicitely define the appropriate input path for each one. That's what the action mappings are for. I don't think it is

RE: Problem with maintaining a database connection in a session bean

2002-06-13 Thread Robert Taylor
Georges, It is not recommended that you place the Connection in the users session. This is a potential hazard which can cause lots of open connections to the database. It is also not recommended that you have database interaction directly in your Action classes. Its best to encapsulate database

Re: DispatchAction with Image buttons

2002-06-13 Thread Robert Taylor
I haven't to date, but definitely will in my next project so I have done some research on it. From what I can tell neither DispatchAction nor LookupDispatchAction will support this out of the box, but there is a pretty simple modification that can be made to DispatchAction to make it work. I

RE: How to finalize a custom connection object?

2002-06-25 Thread Robert Taylor
Chris, wrap your SOAP reference in an object that implements HttpSessionBindingListener and place it in the session. When the session times out, the object will be notified and you can use an URL object to connect to the SOAP host and send a messages to release the appropriate resources. This is

RE: what to store in session?

2002-06-26 Thread Robert Taylor
I would say it depends. How expensive is a database hit and how many times do you find the need to hit the database to retrieve data? Is all the data used all the time or is just some of the data used? In your application is it acceptible to have a slight delay while loading the users profile?

RE: How to implement sturts on Servlet Exec

2002-06-26 Thread Robert Taylor
Nandkishore Rai -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 10:11 AM To: Struts Users Mailing List Subject: RE: How to implement sturts on Servlet Exec Yep. I've used Struts in ServletExec4.0, 4.1, and 4.1.1. I haven't had any issues

RE: How to implement sturts on Servlet Exec

2002-06-26 Thread Robert Taylor
on jakarta but not on servlet exec it is giving execpions i will tell you one second -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 26, 2002 10:34 AM To: Struts Users Mailing List Subject: RE: How to implement sturts on Servlet Exec

RE: problem with img and scriptlet variable

2002-06-27 Thread Robert Taylor
Try this: nested:define property=nodePix id=imgName/ % String imgSrc = images/ + imgName % html:img src=%=imgSrc% width=10 height=10 alt=/ %=imgName% html:img src=images/puce2.gif width=10 height=10 alt=/ The behavior you are seeing is the result of limitation in the

RE: Struts Examples

2002-06-30 Thread Robert Taylor
Download the Struts binary distribution and look at the examples that come with it. After you download it, point your servlet container to one of the example web apps (in .war format) and you have some pretty good examples. robert -Original Message- From: Manish_Purang [mailto:[EMAIL

RE: more than one input to an struts action?

2002-06-30 Thread Robert Taylor
Look into using DispatchAction. http://husted.com/struts/tips/002.htm. HTH, robert -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Sunday, June 30, 2002 6:55 AM To: [EMAIL PROTECTED] Subject: more than one input to an struts action? Subject: more

RE: How do I share ActionForm between multiple JSPs?

2002-07-05 Thread Robert Taylor
Define different action mappings that both map to the same DispatchAction. Each mapping will have the appropriate input attribute which will return the user to the correct JSP page from which the validation error occurred. robert -Original Message- From: Michael [mailto:[EMAIL

RE: [ANN] Chapter 11 of the O'Reilly Struts book now available

2002-07-09 Thread Robert Taylor
Perfect timing Chuck. I just started to dig in on this particular issue. Once again, great job. Below are my comments. Sections are demarcated using 'Section:' and quotes from the document are identified with double quotes around them. Section: Required Packages All of the dependent

RE: Struts without action and form classes

2002-07-10 Thread Robert Taylor
From what I understand, this is possible in 1.0x as well. This example if from the Struts1.0 example app where the action mapping path attribute simply forwards to the tour.htm page which could just as easily be tour.jsp. actionpath=/tour forward=/tour.htm /action From

RE: [ANN] Chapter 11 of the O'Reilly Struts book now available

2002-07-10 Thread Robert Taylor
William, I would be interested in your solution as I am making extensive use of DispatchAction and would like to use the Struts Validator with it and extend ValidatorActionForm. It seems that adding a 'parameter' attribute to the form element in the validation.xml file could further qualify a

  1   2   3   4   5   >