Re:

2001-09-20 Thread Craig R. McClanahan
On Fri, 14 Sep 2001, Thierry Cools wrote: > Date: Fri, 14 Sep 2001 15:38:33 +0200 > From: Thierry Cools <[EMAIL PROTECTED]> > Reply-To: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > Subject: > Hi, after a long absence, I'm back again in the struts world ;-) > > I have the following problem, I'd li

RE: Application scope objects

2001-09-20 Thread Craig R. McClanahan
The technique that Kimerly describes works well in many environments. In a Servlet2.3 environment (such as Tomcat 4), you also have the option to use an application event listener that is notified when the application is started, and when it is being shut down. For more information, see the Serv

template qn

2001-09-20 Thread Tricia Ong Cheah Yen
hi all, i'm new to struts and i have a qn on the use of template tag with the tag. i had used the tag to provide content in my template file. however, instead of displaying the text "Welcome" as stored in my MessageResources.properties file it display "" as it is. now shldn't

Re: dealing with HashMaps instead of beans

2001-09-20 Thread Erik Hatcher
I'm almost certain that syntax won't work with Struts 1.0 but mapped properties support has been added to the BeanUtils project and seems likely that it would work with a nightly build of Struts using the latest BeanUtils. Anyone know for sure? I'm sure I'll be in a position to try it out

How do I define the form bean and JSP for this

2001-09-20 Thread dd ss
Hi, I have a situation where I have a collection of Name/Value pairs. I want to define a JSP which will display the Name part of the Nam/Value pair and a text box for Value part of the Name/Value pair. Since this collection of Name/Value pairs could be having dynamically varying no of Name/Value

RE: a question

2001-09-20 Thread Yang, Sharon
Hi Ted, Thanks a lot for pointing it out, I fully agree. We should conform to Struts ActionForm and ActionClass, but that does not mean for every button in the form, we have to use a different form, a different action class. Thanks, Sharon -Original Message- From: Ted Husted [mailt

Re: a question

2001-09-20 Thread Ted Husted
There's no requirement that 3 different pairs of ActionForms and Actions be used. They could just as easily be handled by one. That's an architectural decision that is up to the developer. The greatest advantage is that using an Action can remove scriplets from the JSP. The Action can acquire wh

a question

2001-09-20 Thread Yang, Sharon
Hi, If every request to be mapped to an Action class, what advantage of this approach? For example, if originally I have 3 buttons within one HTML form in the old design, Now I want to change to use 3 different pairs of Struts ActionForm and ActionClass, just try to gain

style class not rendered for errors

2001-09-20 Thread Thinh Doan
The following setting for error display did not seem to affect eventhough the jsp that contains does link in the style sheet. ANy idea why this is so? Thank you for your response. Thinh in ApplicationResources.properties: errors.header=Errors: errors.footer= in jsp: ... ...

Re: ActionMessages throwing NullPointer and message is in properties??

2001-09-20 Thread Matt Raible
I was setting messages to null in previous code - thanks for the tip! Matt --- [EMAIL PROTECTED] wrote: > First idea... >ensure that neither messages nor aTimesheetDO is null > > On Thu, 20 September 2001, Matt Raible wrote: > > > > > I am getting a NullPointerException on the following c

Re: Struts JBoss / Tomcat and From

2001-09-20 Thread Gregor Rayman
Title: Struts JBoss / Tomcat and From Why do you use ActionForm as value object in EJB? I thnik, this is not a clean design, since you make your EJB code dependent on Struts. Struts beloongs to the web layer, EJB to the businness layer. Your EJB do not need things like HttpRequest, so'd try

Struts and Websphere Test Environment 3.5.3

2001-09-20 Thread West, Tedie
Hi All, Has anyone been able to get the Struts examples to run under the Websphere Test Environment in VisualAge for Java v3.5.3? Which configuration files need to be adjusted? What are the steps you took? I am getting a HTTP error 503 when trying to run the examples? I have been referencing an

Re: Implementation of Synchronizer Token

2001-09-20 Thread steven . valin
Many thanks Ted for a point in the right direction. I'll let you know what I come up with. Steve On Thu, 20 September 2001, Ted Husted wrote: > > It's not mentioned in the UserGuide, which is an oversight. It is used > in the Examples application. The implementation is part of the Action. >

RE: indexed attribute on TextTag not in tld

2001-09-20 Thread Candiloro, Heidi
Download a nightly build from the past month or so, they have been recently included. Heidi -Original Message- From: Paap, Keith [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 20, 2001 4:57 PM To: [EMAIL PROTECTED] Subject: indexed attribute on TextTag not in tld I'm trying to us

indexed attribute on TextTag not in tld

2001-09-20 Thread Paap, Keith
I'm trying to use the 'indexed' attribute on the html:text tag and I receive the following error: Parse Error in JSP page: The attribute 'indexed' for custom tag 'text' on line '46' of page '/jsp/map/setup/updateObjectives.jsp' is not declared as an attribute for this tag, perhaps it should be ad

Struts JBoss / Tomcat and From

2001-09-20 Thread Nortje, Andrew
Title: Struts JBoss / Tomcat and From I have deployed my app using JBoss/Tomcat. I recently started using the ActionForm as value objects in my EJB's. JBoss now needs struts.jar in the class path, so it can find ActionForm, so I put sturts.jar in JBOSS_HOME/lib/ext. This works fine put it kill

Re: Implementation of Synchronizer Token

2001-09-20 Thread Ted Husted
It's not mentioned in the UserGuide, which is an oversight. It is used in the Examples application. The implementation is part of the Action. http://jakarta.apache.org/struts/api/org/apache/struts/action/Action.html If you find a good place to insert coverage in the Users Guide, don't hesitate

RE: [ANNOUNCE] Struts Console

2001-09-20 Thread Nick Chalko
That is why I always use a PrintWriter instead. java.io.StringWriter sw = new java.io.StringWriter(); java.io.PrintWriter out = new java.io.PrintWriter(sw); out.println("Hello Sailor!"); out.println("Hello World!"); String result = sw.toString(); -Original Message- From: [EMAIL PROTE

Implementation of Synchronizer Token

2001-09-20 Thread steven . valin
The Struts documentation doesn't seem to indicate that Struts provides an implementation of the Synchronizer Token described on p.77 of Core J2EE Patterns. Can somebody tell me if I have overlooked something in the documentation? If I haven't, does anybody have any suggestions for a custom Sync

Re: ActionMessages throwing NullPointer and message is in properties??

2001-09-20 Thread steven . valin
First idea... ensure that neither messages nor aTimesheetDO is null On Thu, 20 September 2001, Matt Raible wrote: > > I am getting a NullPointerException on the following code: > > messages.add(new ActionMessage("timesheetManage.reset.success", > aTimesheetDO.getEmployeeName())); > > A

ActionMessages throwing NullPointer and message is in properties??

2001-09-20 Thread Matt Raible
I am getting a NullPointerException on the following code: messages.add(new ActionMessage("timesheetManage.reset.success", aTimesheetDO.getEmployeeName())); And in my ApplicationResources.properties file, I have the following entry: timesheetManage.reset.success=Timesheet for \"{0}\" re-

Re: Navigation history

2001-09-20 Thread steven . valin
One implementation has been to subclass the Action object with another object (named something like OurGeneralAction). All of your other Action objects, such as LogonAction, LogoffAction, DoSomethingAction then subclass OurGeneralAction. Just prior to returning an ActionForward from your speci

Navigation history

2001-09-20 Thread Thinh Doan
Would you please give me some ideas on how to implement a bread crumb scheme to keep track of where the user has been navigated around the application? Each menu has been implemented with a html:link with a forward name in the global-forwards definitions in struts-config.xml. I'm planning to have

Mixing indexed displays and forms

2001-09-20 Thread Candiloro, Heidi
I am running into a road block in my development and I would appreciate any feedback on the approach and decisions that I have made thus far in my design. I briefly looked through the struts-catalog on Husted.com and through the mail archives but I have not seen anything that addresses these issue

Re: Validator going into infinite loop

2001-09-20 Thread David Winterfeldt
I didn't pay attention that you had your input set to the action. Since you had valdiate="true", it would try to validate before the Action's perform method was called, but if validation failed it would try to go to the action again. So it would validate, fail, go to the action, etc. David ---

RE: Several Data-Sources in struts-config.xml

2001-09-20 Thread Geddes, Mark (ANTS)
Look at struts-config.dtd. It documents the required attributes. The one you are looking for seems to be 'key'. Mark -Original Message- From: David Corbin [mailto:[EMAIL PROTECTED]] Sent: 20 September 2001 15:36 To: [EMAIL PROTECTED] Subject: Re: Several Data-Sources in struts-config.xml

Re: Several Data-Sources in struts-config.xml

2001-09-20 Thread David Corbin
I would have guessed, that instead of " To: <[EMAIL PROTECTED]> Sent: Thursday, September 20, 2001 9:15 AM Subject: Several Data-Sources in struts-config.xml Hi All, how can I define more than one data-source for one struts-application? I want to read data from two separate databases in one appl

Re: Validator going into infinite loop

2001-09-20 Thread Mike Bridge
Hi David, I'm using Struts_Validator-2001100702.jar with Struts 1.0. I am confused about how to make this work, so I turned the automatic validation off and validated it manually in my Action class, the same way as in the multipage form example. I'm not sure where I went wrong, but I had troub

Re: Validator going into infinite loop

2001-09-20 Thread David Winterfeldt
What version of Struts are you using and what version of the Validator? David --- Mike Bridge <[EMAIL PROTECTED]> wrote: > Hi- > > When I submit (or access) a ValidatorForm, it goes > into an infinite > loop. I had this working with 0.5, but after > upgrading, it doesn't > seem to function any

AW: AW: AW: Digister

2001-09-20 Thread storck
What is wrong mith those classes ? If I debug Digister in "startElement"-Methode the "localName" is rss? Thanks - package de.tecmath.cms.util.ejb.valueobjectholder.conf; import java.util.*; import org.apache.commons.digester.Digester; import java.net.*; i

RE: Links versus forms and Struts

2001-09-20 Thread Kilmer, Erich
Actually I just tried it with no problems. Here is what the HTML looked like: Tes t Link The data went through the ActionForm.validate and through the Action.perform and ended up on my result page. No problem! Erich -Original Message- From: Kilmer, Erich [mailto:[EMAIL PROTECTED]] Sent: T

Re: AW: AW: Digister

2001-09-20 Thread Ted Husted
The only documentation I know about is the package.html file in the SOURCE distribution (repeat SOURCE distribution). Like all of Craig's Javadocs, it does tell you most of you what you need to know to get started. storck wrote: > > Thanks > That has helped a litle, but doesnt their exists

AW: AW: Digister

2001-09-20 Thread storck
Thanks That has helped a litle, but doesnt their exists a documentation where it is explained when to use wich methodes of digister ? (maybe a stupid question, but it is very new for me) -Ursprungliche Nachricht- Von: Ted Husted [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 20. Sep

Links versus forms and Struts

2001-09-20 Thread Kilmer, Erich
In our current application which is Model 1 architecture, many screen transitions are initiated by links instead of forms. These links many times are appended with query strings with name/value pairs of parameters that give context to the next page. These links could be used with Struts right? I

Re: AW: Digister

2001-09-20 Thread Ted Husted
I've used the RSS package to parse a RSS file, but haven't written any of my own rules. To parse a RSS file, it goes like this: /** * Read and parse RSS file found at a given * path, save the Channel bean in request scope, * and forward to "continue". * @expects path={uri} on command line or

RE: Digister

2001-09-20 Thread Toni Charlot
Here is a sample use of the digester. //== ConfigMaker.java package isMan.util; import java.io.Serializable; import java.io.InputStream; import java.io.FileInputStream; import java.io.BufferedInputStream; import org.apache.struts.digester.Digester; public class ConfigMake

Re: dealing with HashMaps instead of beans

2001-09-20 Thread Paul King
For HashMaps, would a property reference look like the following? My understanding is that this would translate to product.get("productName"). That would be fine for extracting data, which is the primary issue. paul Erik Hatcher wrote: > Check out BeanUtils: > > http://cvs.apache.org/viewcvs

Several Data-Sources in struts-config.xml

2001-09-20 Thread Arkadiusz Janowski
Hi All, how can I define more than one data-source for one struts-application? I want to read data from two separate databases in one application.   I tried it this way:       description="Data Source Description"   driverClass="org.gjt.mm.mysql.Driver"   password="*"   url="jdbc:mysql:

AW: Digister

2001-09-20 Thread storck
Do you have used digister by your own? -Ursprungliche Nachricht- Von: Ted Husted [mailto:archive@jab.org] Gesendet: Donnerstag, 20. September 2001 14:32 An: [EMAIL PROTECTED] Betreff: Re: Digister Look for the package.html file in the SOURCE distribution, or in the digester package in

Re: ActionForm

2001-09-20 Thread Jonathan M Crater
the user guide and java docs are always a good place to start: http://jakarta.apache.org/struts/userGuide/building_model.html#actionform http://jakarta.apache.org/struts/api/index.html "Eydelman, Andriy" wrote: > > > Hi,All > sorry for stupid question, I'm just a novice in Struts > > What is a

ActionForm

2001-09-20 Thread Eydelman, Andriy
Title: ActionForm Hi,All sorry for stupid question, I'm just a novice in Struts What is a purpose of org.apache.struts.action.ActionForm and its' subclasses and their using with Actions? Where can I find documentation about it? Eydelman Andrey

Re: Digister

2001-09-20 Thread Ted Husted
Look for the package.html file in the SOURCE distribution, or in the digester package in the 1.0 Struts source distribution. For an example, look at the RSS package (and, well, Struts). -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-34

RE: logic:equal and dynamic value

2001-09-20 Thread Matt Raible
Nope: 2001-09-20 06:25:57 - error-the file '\WEB-INF\pages\resourceWorkProfileManage.jsp' generated the following parse exception: org.apache.jasper.compiler.CompileException: C:\iPlanet\iPM6\ias\APPS\timetracker\timetracker\WEB-INF\pages\resourceWorkProfileManage.jsp(255,12) According to the TLD

Digister

2001-09-20 Thread storck
HI, I try to use use digister from org.apache.commons.digester by my own but without luck. Does any doc exist to digister or any "How To" ? Thanks!

Re: Newbie : More than one propertyfile?

2001-09-20 Thread Ted Husted
The usual advice is to have Ant concaternate them into a single file when the application is built. -- Ted Husted, Husted dot Com, Fairport NY USA. -- Custom Software ~ Technical Services. -- Tel +1 716 737-3463 -- http://www.husted.com/about/struts/ "David A. D. Konrad" wrote: > > Hi, > Im ne

Re: Suggestion: Enhance Struts perfrommance.....

2001-09-20 Thread Ted Husted
Personally, I've yet to see any actual benchmarks whatsoever on this issue. I have seen postings from people with access to unpublished benchmarks that say the idea that there is a performance hit for introspection is obsolete with late mode JVM's. (We've come a long way, baby;-) My personal op

Re: CVS or 1.0

2001-09-20 Thread Ted Husted
I would use the 1.0 production release. The Website is being updated to clarify that we recommend that production sites use the production release. All the changes proposed for 1.1 at this point are really add-ins, and the bug fixes have been minimal. -- Ted Husted, Husted dot Com, Fairport NY U

CVS or 1.0

2001-09-20 Thread Jake Thompson
Hi All, I am using struts for an internal, almost production system. I can handle quirks, but it obviously still must perform correctly and be easily updated in the future. Is my best option to use 1.0 as the foundation, or should I use the CVS devel version? I will be developing for 2 mon

Re: Suggestion: Enhance Struts perfrommance.....

2001-09-20 Thread David Corbin
The collection thing was only an analogy. You missed the general point that struts has fine performance for many applications as is, and it allows you to create great/powerful/flexible/maintainable code. No one would deny that there are cases where introspection might destroy performance, but in

org.apache.commons.beanutils.PropertyUtil

2001-09-20 Thread storck
Hi, I would like to use the PropertyUtil-class from "org.apache.commons.beanutils" to copy the properties from one bean to another. For Example I have a bean bVO from type BBDetailVO and I have a bean bForm from type ShowBlackBoardDetailsForm If I do something like PropertyUtil.copyProper

Newbie : More than one propertyfile?

2001-09-20 Thread David A. D. Konrad
Hi, Im new to struts and servlets, so maybe is this a question answered many times before. How can i have more than one .properties file? For instance, i would like to have a property-file for errors, for buttons, for labels and so on...? regards,

RE: Suggestion: Enhance Struts perfrommance.....

2001-09-20 Thread Trieu, Danny
Craig, Thanks for you reply. I agree with all the points you said. My only 2cents was in the use of introspection that Struts used, and not the big spectrum of the Collection. Notice, The BeanInfo and the introspector hardly use any Collection at all. May this is because of the late adoption

Re: Broadvision 6.0 and context-relative path in form mappings

2001-09-20 Thread Ted Husted
Rohan Oberoi wrote: > This issue raises the issue of whether Struts can work properly on > Broadvision ( and whether BV6 is servlet 2.2 compliant). Perhaps > there should be a BV section on the Struts installation instructions > (http://jakarta.apache.org/struts/installation.html) ? Nearly all t

Re: wrong behavior of checkboxes in forms?

2001-09-20 Thread Rakesh
Try to use multibox Regards, Rakesh - Original Message - From: "Brad Reneer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 19, 2001 10:40 PM Subject: RE: wrong behavior of checkboxes in forms? > I'm having the same problem. Did you ever get this to work? >

RE: logic:iterator Class cast exception

2001-09-20 Thread Claudio Parnenzini
Sorry for late answer I was sick for a couple of days. Yes, I have imported in my JSP page all relevant classes. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, September 16, 2001 5:14 AM To: [EMAIL PROTECTED] Subject: Re: logic:iterator Class cast exc

RE: logic:equal and dynamic value

2001-09-20 Thread Sean Gollschewsky
Can't you use to save having to use a scriptlet in the value attribute? Cheers, Gollo -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] The compiler is probably getting confused by the two sets of double quotes in your value specification. Try using single quot