Re: How to get posted data into a nested object ?

2005-06-08 Thread gdeschen
Hubert Rabago <[EMAIL PROTECTED]> wrote on 08/06/2005 02:15:20 PM: > I would think so. I'm not as familiar with the internals of BeanUtils > as I'd like to be, but since your form is in request scope, that means > it'll create a new instance upon submission. From that, it'll call > getDependent(

Re: Highly dynamic forms

2005-06-08 Thread gdeschen
The section I was refering you to is the Hand Cranking the lazy List in the Action Form. This is a small section squeezed in between lazy list information. This does not require any other class but the ActionForm. All that is needed is to add code to grow the list and to get the proper objects ba

Re: Pb with html:link

2005-06-08 Thread gdeschen
Just as a double check Jean Marie. You need to have the taglibs in both the resultat.jsp and the headerRecherche.jsp. This is how I do my include: Do try with the attribute flush to true. - Glenn JM Tinghir <[EMAIL PROTECTED]> 08/06/2005 08:02 AM Please respond to "Struts Users Mailing Lis

Re: How to get posted data into a nested object ?

2005-06-08 Thread gdeschen
Is this the only way to do it ? I have always never coded anything additional in the getter/setter methods. - Glenn Hubert Rabago <[EMAIL PROTECTED]> 07/06/2005 05:42 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: How to get posted data into

Re: How to get posted data into a nested object ?

2005-06-08 Thread gdeschen
Thanks for the warning ! Not all of the properties are shown to the user. The date gets formatted based on a locale. I will certainly look into the FormDef. - Glenn Hubert Rabago <[EMAIL PROTECTED]> 07/06/2005 05:43 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing

Re: How to get posted data into a nested object ?

2005-06-07 Thread gdeschen
Thanks Dave. This is what is defined. The JSP posts here: But the DependentForm bean has a bean defined within it. It is this bean that I need to put data into it. Dave Newton <[EMAIL PROTECTED]> 07/06/2005 03:57 PM Please respond to "Struts Users Mail

How to get posted data into a nested object ?

2005-06-07 Thread gdeschen
Hello, Short description: - How do I get posted data into a bean within the form bean ? The JSP has this code. The page is posted and I get this error: [07/06/05 15:15:22:743 EDT] 6aa06aa0 WebGroup E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.Illega

Re: i18n url link problem

2005-06-07 Thread gdeschen
The problem is that you have a tag nested within a tag. In order to do this you need to use the html-el:link tag. The el is Expression Language. However, I am having difficulties with applying the el tags... so I cannot yet help you. One quick way around this is to do it this way: HTH, G

Re: Highly dynamic forms

2005-06-07 Thread gdeschen
http://wiki.apache.org/struts/StrutsCatalogLazyList Look at the section: Hand Cranking lazy List in the ActionForm. This is possible with the version you are currently using. HTH, - Glenn Stéphane Zuckerman <[EMAIL PROTECTED]> 07/06/2005 12:28 PM Please respond to "Struts Users Mailing List"

Re: Validation Help On Large Dynamic List

2005-06-07 Thread gdeschen
This may help you: http://wiki.apache.org/struts/StrutsCatalogLazyList http://www.developer.com/java/ejb/article.php/3321521 http://www.developer.com/java/ejb/article.php/2233591 - Glenn "Scott Purcell" <[EMAIL PROTECTED]> 07/06/2005 09:19 AM Please respond to "Struts Users Mailing List" T

Re: html-el:checkbox quandary

2005-06-07 Thread gdeschen
Oh sh&* ! Hubert you had your finger on the problem all along... Now that I have had my first coffee of the day things are falling in place. The problem is that the JSP is posting to an action which did not have the correct form bean. So it wasn't able to find the property method. This raises a

Re: html-el:checkbox quandary

2005-06-07 Thread gdeschen
As Hubert suggested here are some of the details. ... public class DependentForm extends ActionForm { private DependentVO dependent; public DependentVO getDependent() { return dependent; } public void setDependent(DependentVO dependentVO) {

Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
Yes the form bean is associated with the HTML form. If I simply do this: It writes out the contents. This takes care of the value attribute. My question is for the property. Can a nested bean property be used in the html-el:checkbox as the property? - Glenn Hubert Rabago <[EMAIL PROTECTED]

Re: Best Place for config values

2005-06-06 Thread gdeschen
Currently we have an XML. This file is loaded in a filter using apache digester. HTH, Glenn "Brian McGovern" <[EMAIL PROTECTED]> 06/06/2005 03:51 PM Please respond to "Struts Users Mailing List" To cc Subject Best Place for config values Whats the best place / access method to stor

Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
Apolgies it is my typo... I have property twice... one should be value. - Glenn "Martin Gainty" <[EMAIL PROTECTED]> 06/06/2005 03:46 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" , "Hubert Rabago" <[EMAIL PROTECTED]> cc Subject Re: html-el:checkbox quanda

Re: html-el:checkbox quandary

2005-06-06 Thread gdeschen
I gave it a go and I get this error now... more precise but an error none the less... [06/06/05 15:40:53:846 EDT] 5dc35dc3 WebGroup E SRVE0026E: [Servlet Error]-[No getter method for property dependent.healthEligibilityIndicator of bean org.apache.struts.taglib.html.BEAN]: javax.servlet.js

html-el:checkbox quandary

2005-06-06 Thread gdeschen
Okay okay it is one of those mondays where your physically at work but mentally still Saturday afternoon ! I have a form bean: DependentForm which also contains a value object bean: dependent which has a property called: healthEligibilityIndicator Now I'd liket to reference the property in the

Re: [OT] Business Layer Ideas

2005-06-01 Thread gdeschen
Come on guys... it is much tougher today than back when you and I were young! Programming is programming: things haven't changed that much. ;) I started out doing Assembler. Then moved on to Cobol and CICS. I remember the excitement when Cobol II came out wow 4 new instructions... learnt it

Re: [OT] Business Layer Ideas

2005-06-01 Thread gdeschen
I have these 2 phrases posted in my office as a reminder... " Simplicity is the ultimate sophistication " - Leonardo da Vinci " The ability to simplify means to eliminate the unnecessary so that the necessary may speak" - Hans Hofmann - Glenn Leon Rosenberg <[EMAIL PROTECTED]> 01/06/2005 1

RE: Seeking Advice Error Handling

2005-06-01 Thread gdeschen
Umh... I have seen in the past that at times the connection pool believes that the DB is still there even when it is not. I'm not a Tomcat user... at least not yet ! In my case... the infrastructure has a gateway between the application server and the database server. The web application is sess

Re: Seeking Advice Error Handling

2005-06-01 Thread gdeschen
In what application server is your application running? Do you have any connection pooling? - Glenn "Scott Purcell" <[EMAIL PROTECTED]> 01/06/2005 10:05 AM Please respond to "Struts Users Mailing List" To cc Subject Seeking Advice Error Handling Hello, I have created a site with a

Struts-1.2.7

2005-05-30 Thread gdeschen
Hi, I'm upgrading my project to the latest version of struts 1.2.7. In the Wiki under the Dependency section (http://wiki.apache.org/struts/StrutsRelease127) it mentions that the Common BeanUtils version 1.7.0 is required. When I look at the Manifest.mf file found in the struts-1.2.7\lib direct

Re: migration from Struts 1.0 to Struts 1.2

2005-05-27 Thread gdeschen
http://wiki.apache.org/struts/StrutsUpgrade HTH, Glenn Thibaut Lassalle <[EMAIL PROTECTED]> 27/05/2005 11:28 AM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject migration from Struts 1.0 to Struts 1.2 Does anyone have documentation on how to migrate

Re: Global scope

2005-05-10 Thread gdeschen
True for the Action and Action Form, but the original code snippet is a ServletContextListener and that the methods get called once when the application is deployed and undeployed. At this point (since I'm no expert in the specification) I believe that the Request object is not yet available

Re: Global scope

2005-05-10 Thread gdeschen
Take a look at this: public class ApplicationContextListener implements ServletContextListener { private ServletContext servletContext = null; public void contextInitialized(ServletContextEvent arg0) { servletContext = arg0.getServletContext(); Ap

Re: Switch Tags

2005-05-09 Thread gdeschen
JSTL... HTH, Glenn "Marsh-Bourdon, Christopher" <[EMAIL PROTECTED]> 09/05/2005 09:14 AM Please respond to "Struts Users Mailing List" To 'Struts Users Mailing List' cc Subject Switch Tags Classification I will of course be going off to Google in a moment

Re: upgradation details of 1.1 to 1.2

2005-05-09 Thread gdeschen
http://wiki.apache.org/struts/StrutsUpgradeNotes11to124 HTH, Glenn asai thambi <[EMAIL PROTECTED]> 09/05/2005 02:44 AM Please respond to "Struts Users Mailing List" To user@struts.apache.org cc Subject upgradation details of 1.1 to 1.2 Classification hi. can any one provide the u

Re: Calendar control

2005-05-04 Thread gdeschen
I've used this in the past and it works well. [JavaScript] http://www.mattkruse.com/javascript/calendarpopup/ HTH, Glenn Rafael Taboada <[EMAIL PROTECTED]> 04/05/2005 01:15 PM Please respond to "Struts Users Mailing List" To Struts List cc Subject Calendar control Classification

Re: [OT] DOM & JavaScript

2005-04-28 Thread gdeschen
Well thanks again ! I did remember that thread and did not have the time to follow its lengthy trail. - Glenn "Frank W. Zammetti" <[EMAIL PROTECTED]> 28/04/2005 12:54 PM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc "Struts Users Mailing List" Subject

Re: [OT] DOM & JavaScript

2005-04-28 Thread gdeschen
Excellent Frank, thanks a million !!! What was your inspiration for this ? - Glenn "Frank W. Zammetti" <[EMAIL PROTECTED]> 28/04/2005 10:47 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc "Struts Users Mailing List" Subject Re: [OT] DOM & JavaScript Cla

Re: [OT] DOM & JavaScript

2005-04-28 Thread gdeschen
Merci Laurent ! Okay so then when you say that it must be functions.. I presume that the HTML with coded attributes such as onMouseOver and onMouseOut... in IE the browser parses the data and internally creates functions to handle the mouse events. So when I try to dynamically modify the DOM for

Re: [OT] DOM & JavaScript

2005-04-28 Thread gdeschen
I also gave this a try without any succcess. Thanks for your time and patience Frank ! (see my reply to Laurent). - Glenn "Frank W. Zammetti" <[EMAIL PROTECTED]> 28/04/2005 09:10 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc "Struts Users Mailing List

Re: [OT] DOM & JavaScript

2005-04-28 Thread gdeschen
Okay Frank I gave it a shot and still nothing. I believe that the setAttribute is the proper way according to the DOM API. The other way may be supported depending on the browser. But in the end it is still not working. I'm thinking of an alternate solution, since the page is complete except for

Re: [OT] DOM & JavaScript

2005-04-27 Thread gdeschen
Curiously... the mouse events are all in lowercase when they are shown in the dump. Effective Date CWW Schedule Type Delete - - - - - This is from the JSP - - - - - - - 03 January 2004 1 Week Cycle 2 Week Cycle 3 Week Cycle 4 Week Cycle Regular Week Schedule - - - - - - - This is

[OT] DOM & JavaScript

2005-04-27 Thread gdeschen
Greetings, Once again I call on my trusted community for insight ! I'm adding a row to a table dynamically. All is working well except for one thing the Mouse events. Here is the code for adding a row to the table. There is more code that adds the cells to the table (not shown). ... // Only add

Re: Filter Being Called Repeatedly

2005-04-27 Thread gdeschen
Oh yes... I carefully looked at the code. Apologies for misleading the list. - Glenn Dave Newton <[EMAIL PROTECTED]> 27/04/2005 10:42 AM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Filter Being Called Repeatedly Classification [EMAIL

Re: Filter Being Called Repeatedly

2005-04-27 Thread gdeschen
Umh... I believe that you don't need the return after the chain.doFilter if (req.getServletPath().equals(onFailure)) { log.info(" equals "); chain.doFilter(request, response); remove --> return; } HTH, Glenn "Scott Purcell" <[EMAIL PROTECTED]> 27/04/2005 10:19

RE: html:link invalid for DTD???

2005-04-21 Thread gdeschen
LOL... apologies... I meant in which page is the link? "Scott Purcell" <[EMAIL PROTECTED]> 21/04/2005 02:01 PM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subject:RE: h

Re: html:link invalid for DTD???

2005-04-21 Thread gdeschen
The slash is okay in the action. Where is exactly this snippet of code in the welcome.jsp?: Jeff Beal <[EMAIL PROTECTED]> 21/04/2005 01:10 PM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: (bcc: Glenn Deschenes/NAT/CMHC-SCH

Re: html:link invalid for DTD???

2005-04-21 Thread gdeschen
What does the Action Mapping look like for /welcome ? "Scott Purcell" <[EMAIL PROTECTED]> 21/04/2005 12:07 PM Please respond to "Struts Users Mailing List" To: cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subject:html:link invalid for DTD??? Clas

Re: DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-21 Thread gdeschen
Thanks Hubert ! Perhaps the wiki: http://wiki.apache.org/struts/StrutsCatalogLazyList is not correct or I am interepting it falsely, It has this note in the section LazyDynaBean/LazyValidatorForm: N.B. Solutions here require Struts 1.2.4 and Bean Utils 1.7.0 - Glenn Hubert Rabago <[EMAIL

Re: DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-21 Thread gdeschen
Oh man... I'm slightly confused this morning... perhaps an espresso is required ! I have been reading and searching based on the links below... however I am stuck. For the time being this is what I have done; upgraded to : - Struts 1.2.4 - BeanUtils 1.7 - Collections 3.1 - Digester 1.6 - Logging

FW: DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-20 Thread gdeschen
I'm browsing thru the source code... any help would be extremely welcomed ! In addition this is the dump: [20/04/05 13:10:31:116 EDT] 67e967e9 WebGroup E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.ArrayIndexOutOfBoundsException at java.lang.Throwable.(Throwable.java

DynaActionForm: ArrayIndexOutOfBoundsException

2005-04-20 Thread gdeschen
Hello, I have a DynaActionForm such as: If I assign a size to the array such as: It works fine. My problem is two fold: 1. The HistoryVO[] can be of any size... therefore I cannot assgin a size to the 2. The user can add rows dynamically to DOM usi

[Slightly OT] Upgrading WSAD to Struts 1.2.4

2005-04-20 Thread gdeschen
I'm currently using WebSphere Studio Application Developer v5.1.2. Struts v1.1 is already included in this release. What I'd like to do is to update the IDE to Struts v1.2.4. This way any new projects will include the latest version of Struts. I do know that I can add the jars and taglibs to the

Re: nested within a Help!

2005-04-15 Thread gdeschen
Here is what I know: http://struts.apache.org/faqs/struts-el.html http://struts.apache.org/userGuide/building_view.html section 3.4.6. HTH, Glenn David Johnson <[EMAIL PROTECTED]> 15/04/2005 12:52 PM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List

Re: nested within a Help!

2005-04-15 Thread gdeschen
David, Sounds like the same thing I was having fun with yesterday. I'm just back into the code... seems like the best would be Struts-EL tags. I have not looked into how to use them in the current environment (WebSphere Studio Application Developer). - Glenn David Johnson <[EMAIL PROTECTE

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Umh... I am now getting this error: Attribute addTableRow( has now value. I have downloaded the Struts 1.2.4 and noticed that there is a lib directory and then there is a contrib/lib. What is necessary to use the Struts-EL tags? I think that with RT the attribute is all expression or no express

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Okay... I tried the following: ')"> and I get this error: Error 500: /WEB-INF/personal/timeAndAttendance/cWWHistory.jsp(215,129) Attribute status has no value I'd really like to get this working, I will then spend some time looking into upgrading to a later version of Struts ti use the E

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Okay... I am not using the Struts EL taglibs. Should I be using them? You choose to use the struts EL tags by a) using the struts EL tld (like struts-html-el.tld) and b) by having the struts-el tag JAR file. I don't know if they come by default with the latest release or not; you'd have to che

Re: JSTL simply love it however ...

2005-04-14 Thread gdeschen
How can I tell which version of the struts tags? Dave Newton <[EMAIL PROTECTED]> 14/04/2005 10:53 AM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subject:Re: JSTL simply love

RE: JSTL simply love it however ...

2005-04-14 Thread gdeschen
Niether solution works... The expression is never evaluated. The output is: "Abdullah Jibaly" <[EMAIL PROTECTED]> 14/04/2005 10:06 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)

JSTL simply love it however ...

2005-04-14 Thread gdeschen
I have started to use JSTL this week. I simply love it !!! However, I have one small problem that I cannot seem to get working. Here is a snippet of code that works fine: What I need to do is add an onChange event for

Re: [OT: JSTL] Re: for an object that extends ArrayList in Application **and** Session

2005-04-13 Thread gdeschen
David, can you post the code that defines the PortfolioBean. David Johnson <[EMAIL PROTECTED]> 13/04/2005 04:21 PM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subject:Re:

Re: c:forEach tag and indexed properties problem

2005-04-13 Thread gdeschen
Ah yes... you do not have the tag? According to the Developer Guide ( http://struts.apache.org/userGuide/struts-html.html#text) Render an input button of type text. This tag is only valid when nested inside a form tag body. Try wrapping it in the tag. Axel Sachmann <[EMAIL PROTECTED]> 1

Re: c:forEach tag and indexed properties problem

2005-04-13 Thread gdeschen
Have you included the taglb in the JSP ? <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> Axel Sachmann <[EMAIL PROTECTED]> 12/04/2005 05:49 PM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: (bcc: Glenn Deschenes/NAT/CMH

Re: c:forEach tag and indexed properties problem

2005-04-12 Thread gdeschen
Any data in the dynamicArrayForm.map.artikel ? Axel Sachmann <[EMAIL PROTECTED]> 12/04/2005 04:11 PM Please respond to "Struts Users Mailing List" To: user@struts.apache.org cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subject:c:forEach tag and ind

Re: [REFERENDUM] Struts is a Community

2005-04-11 Thread gdeschen
It is simply a community. I my case I had started my own version of Struts without realizing that there was already one created but with a community behind it ! I soon stopped using my own and switched to Struts. [Okay, I still have on application in production yet to be converted] In the end S

Re: Authorized Site Creation With Struts

2005-04-08 Thread gdeschen
Scott. I have architectured an application a little over a year ago... And opted to use a filter to handle logic before getting into the Struts portion of the application. At first... I was unsure if this was the best way to go... but today I am sure glad I did so. The users started making ridu

RE: Anxiously awaiting...

2005-04-07 Thread gdeschen
What is the difference between the two: <%@ taglib uri="http://java.sun.com/jstl/core_rt"; prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %> - Glenn "Brad Balmer" <[EMAIL PROTECTED]> 07/04/2005 01:17 PM Please respond to "Struts Users Mailing List" To:

Re: Anxiously awaiting...

2005-04-07 Thread gdeschen
Tried it and just writes the out the string ${emply.firstname} - Glenn Stéphane Zuckerman <[EMAIL PROTECTED]> 07/04/2005 11:39 AM Please respond to "Struts Users Mailing List" To: Struts Users Mailing List cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA) Subj

Anxiously awaiting...

2005-04-07 Thread gdeschen
Hi, I am anxiously awaiting for the thread between Stéphane, Rick and Niall to continue. I am experimenting with trying to do the same thing as Stéphane. In the mean time I am having one of those mornings where nothing seems to be going my way. I am trying to use JSTL for the first time and the

re: Session Idle

2005-04-06 Thread gdeschen
Perhaps a different approach can be used for processes that are time consuming. Some form of batch process. The user can submit a request... this is queued... and then processed by a DB trigger (as an example). The results of the processing is stored and the user can view the status of their req

HTML Map Definition

2005-04-06 Thread gdeschen
Greetings, I have a small problem that I'd like to resolve. I have just upgraded (sometimes it feels more like a downgrade!) from WebSphere Studio Application Developer (WSAD) v5.1.1 to v5.1.2. The issue is that I now have a warning that the hrefs below: targets cannot be resolved. It is just a

Re: How to submit a variable number of text fields ?

2005-04-05 Thread gdeschen
Hello Rick, Let me try to define a simular problem that I have that would most probably answer Stéphane's. But only Stéphane can confirm this. :) I have classes such as: public class Description { private String id; private String Description; ... } public class HistoryItem {

Dynamic Tables and Data

2005-03-30 Thread gdeschen
Greetings, Apologies if this has already been posted... but since the List Archive is not available I must post. I have a requirement to display rows of the the same data such as: Date Description Delete indicator The user can change any data in any row at any time. Additionally, the user can a

Re: OT: Handling concurrency issues with web apps

2005-02-07 Thread gdeschen
You can use a timestamp rather than a count... more meaningful. In the current application I'm developing, the user is informed of the interim update along with the new data. HTH, Glenn Lee Harrington <[EMAIL PROTECTED]> 07/02/2005 11:08 AM Please respond to "Struts Users Mailing List"

Links and Targets

2005-02-03 Thread gdeschen
Hi, I'm very very discouraged with not being able to resolve this problem. I do know that this is a WebSphere Studio Application Developer (WSAD) related problem but I have being searching the web for half a day now without any success. So I'm turning to you for help. I have imported a project

Re: format attribute of the Bean:Write tag

2005-01-20 Thread gdeschen
After waiting sometime for any suggestions I decided to download the source code and look at the format attribute of the Write tag. String values are never formatted. // Return String object as is. if ( value instanceof java.lang.String ) { return (String)value;

format attribute of the Bean:Write tag

2005-01-19 Thread gdeschen
Hi, 1. I'd like to find some documentation on the possible values for format attribute of the Bean:Write tag. 2. What I'd like to do is to convert to lowercase the property value during a Bean:Write. TIA, Glenn

Multiple ImageButtonBeans

2004-10-13 Thread gdeschen
Greetings, I have searched the lists for some time without any success. I have a Session Form Bean (this is necessay to do a unit of work that spans many pages...) On a page I have 3 ImageButtonBeans. Update, Cancel and Beneficiaries. My problem arises in the Validate method of the Form. In orde

Re: JSP / ActionForm / Action design quesetion

2004-07-27 Thread gdeschen
Non technical advice. :) Since I've been doing Web applications for some years now, one of the most enduring processes is educating Users. Web applications have many benefits as well as drawbacks, the User must understand the differences and accept them. You cannot always do what the 3270 termin

# anchor

2004-07-09 Thread gdeschen
Hi, This is what I have defined: What happens is that the Page.do allows a user to enter report parameters. The PageSubmit.do builds the report and then returns the report to the Page.do. Once here, the user has the report parameters at the top and the repor

RE: [OT] Session facade

2004-07-07 Thread gdeschen
Well. In my case I used the Facade pattern without the Session. I did have a discussion with a friend as to determine if it is closer to a Delegate or a Facade. Facade... eventhough it does not adhere to the J2EE Pattern 100%. "Matthias Wessendorf" <[EMAIL PROTECTED]> 07/07/2004 04:45 PM Ple

Re: [OT] Session facade

2004-07-07 Thread gdeschen
:) Perhaps I could have used Exceptions but well at least I use a Constant file a little better! The more I think about the better it seems to get damn I have some code rewriting to do... Thanks Bill. Bill Siggelkow <[EMAIL PROTECTED]> Sent by: news <[EMAIL PROTECTED]> 07/07/2004

Spring or Tapestry Framework

2004-07-07 Thread gdeschen
I'd like to thank both Robert and Jim for yesterdays help with my "Request bean is lost". After a small 30 Km bike ride I decided to go with the hidden field to track the First time the page is accessed. But I digress... Espresso time! I decided to start another discussion... I am in the process

RE: Session facade

2004-07-07 Thread gdeschen
my 2 cents... I am using the Facade in my current project. Firstly, just in case that EJBs will be introduced in subsequent phases. Secondly, the DAO throws exceptions of DAOException & a FatalException. Say that a Stored Procedure returns an application error (invalid parameter in a SP); this

RE: Request bean is lost

2004-07-06 Thread gdeschen
:) I was just contemplating while browsing the code... Getting the the data from the DB requires lots of work such as setting a Transfer Object, calling a Facade and the error handling should the DB return an error. If this still out weighs the use of a Session Bean then so be it I will code i

RE: Request bean is lost

2004-07-06 Thread gdeschen
Exactly. My Page.do has as a parameter the jsp page along with its Form Bean. So it will get overwritten. Now what is the best clearest way to get this done? Must I absolutely use a Session Bean to maintain the List and the Form Bean for the user inputted data? "Jim Barrows" <[EMAIL PROTECT

RE: Request bean is lost

2004-07-06 Thread gdeschen
Umh... Let me try to express myself more clearly! Page.do - My Page.do obtains 3 lists from the DB based on the user's security attributes. Default values are set for 2 of the lists such as month and year. All of this is done in the Form Bean. PageSubmit.do --- T

RE: Request bean is lost

2004-07-06 Thread gdeschen
My lists are specific to each user based on security attributes obtained from the database. Therefore, the application scope solution is not acceptable for these lists. If I go the first solution route, then I have my 3 Lists as part of the Form bean. The user selects from the list and submits

Request bean is lost

2004-07-06 Thread gdeschen
Greetings, I have an action Page.do that gets 3 lists from a database. It then places the lists inside a bean which is set in the request. The Page.jsp iterates thru the bean to display the data. The form is posted to the PageSubmit.do. But before the PageForm.validate() is executed. Assume that

Re: Form bean scope question

2004-07-06 Thread gdeschen
I have had a problem like this before and what I did is add the <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> in the included/inserted jsp pages. HTH, Glenn John Moore <[EMAIL PROTECTED]> 06/07/2004 06:24 AM Please respond to "Struts Users Mailing List" To: Str

Message Resources Confusion

2004-07-05 Thread gdeschen
Greetings, I am somewhat unclear with the Message Resources. I have defined in my struts-config: In my Action class I have the following code: if (getSPName() == null) { MessageResources errorMessages = (MessageResources) request.getAttribute(Globals.MESSAGES_KEY); String erro

Re: ServletContextListener

2004-06-16 Thread gdeschen
Sure, my idea of using a Bean in the application scope is to not have to do the creation of the List of months in every Action class and just reference the Bean in the application scope from the JSP page.. So I guess that the Action class can obtain the Months from the Bean in the application s

Re: ServletContextListener

2004-06-16 Thread gdeschen
My apologies for being unclear... Yes the Bean has one method called getMonths()... and in this method I will return the appropriate months based on the locale. It is just that getting/passing the Locale to the getMonths() in a JSP is not really elegant. JSP code: And wondering if there

ServletContextListener

2004-06-16 Thread gdeschen
Greetings, I have created a ServletContextListener that sets a Bean in the application scope. This Bean contains 2 list of Months... and these lists contain LabelValueBeans. My uncertainty is on the best way to get my JSP to use the appropriate List depending on the locale. JSP code:

One Forward Action Multiple JSPs

2004-06-03 Thread gdeschen
Greetings, What I would like to do is to be able to display different JSPs for the same ForwardAction. I now have this: What I would like is based on the Locale show a different JSP. I cannot use the i18n for this with resource bundles since the page contains lots of text and the format is d

Re: Undeliverable Message

2004-05-28 Thread gdeschen
Yes so do I. "Henrique VIECILI" <[EMAIL PROTECTED]> 05/28/2004 09:00 AM Please respond to "Struts Users Mailing List" To: "Struts Users Mailing List" <[EMAIL PROTECTED]> cc: Subject:Undeliverable Message Hi all, every time I send a message to the

Re: Logic Tags using OR

2004-05-25 Thread gdeschen
Hi, The can only used to test against one value. Perhaps in your example you can us something like: ...do this - Glenn "Ciaran Hanley" <[EMAIL PROTECTED]> 25/05/2004 03:15 PM Please respond to "Struts Users Mailing List" To: "Struts User Mailing List" <[EMAIL PROTECT

Submit Design Question

2004-05-25 Thread gdeschen
Hi, I have an application that permits a user to view and update Contact information. /app/Contact (gets data from the DB) --> posts to --> /app/ContactSubmit (updates the data after validation) I would like to ensure that the application is solid and executes smoothly (doesn't eveyone!). ;>

Message Resources

2004-05-21 Thread gdeschen
Greetings, The following code snippet is from my ActionForm.validate() method. What I don't like and wonder if there is a better way to this: is the loading of the Message Resources. I need to do this to get a value that is passed as a parameter to a message. private static MessageResources mes

FormBean Irregularities

2004-05-20 Thread gdeschen
Hi, I am having a problem with a JSP not displaying the latest ActionForm data. A very light use case: - The application is simple; a user views their Contact information. The user can change the information and save it. The application does the following: --