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

2001-09-20 Thread Craig R. McClanahan
On Sun, 9 Sep 2001, Trieu, Danny wrote: Date: Sun, 9 Sep 2001 14:46:17 -0700 From: Trieu, Danny [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Suggestion: Enhance Struts perfrommance. All, I am new to extending Struts. I alway know that Struts used

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

2001-09-20 Thread Craig R. McClanahan
Speaking only for myself, I'm not at all interested in hacking Struts to support non-spec-compliant servlet and JSP implementations. It's hard enough working around the bugs of servers that are mostly compliant but have a few bugs here and there. Craig McClanahan On Mon, 10 Sep 2001, Rohan

RE: getting jsp:include to work behind WEB-INF wall

2001-09-20 Thread Craig R. McClanahan
On Wed, 12 Sep 2001, Wong, Albert wrote: Date: Wed, 12 Sep 2001 10:55:56 -0700 From: Wong, Albert [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: getting jsp:include to work behind WEB-INF wall The spec is not explicit about a RequestDispatcher being

RE: logic:equal and dynamic value

2001-09-20 Thread Sean Gollschewsky
Can't you use strutslogic:equal name=optionWorkProfile property=workSchedule$WorkScheduleEid parameter=wsId 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

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 the

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,

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

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

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

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

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 new to

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: 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

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

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: 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

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

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: !-- == Data Source Configuration === -- data-sources ds1description="Data Source

Re: dealing with HashMaps instead of beans

2001-09-20 Thread Paul King
For HashMaps, would a property reference look like the following? bean:write name=product property=(productName)/ 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

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

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

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

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.

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 a

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: A href=input.do?name=John+Doeemail=#64;phone=888-yesno=yTes t Link/A The data went through the ActionForm.validate and through the Action.perform and ended up on my result page. No problem! Erich

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.*;

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 more.

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

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

2001-09-20 Thread David Corbin
I would have guessed, that instead of ds1, you'd need data-source name='ds1', but I have no specific knowledge to support my guess... - Original Message - From: Arkadiusz Janowski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 20, 2001 9:15 AM Subject: Several

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

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 ---

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

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

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

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: 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())); And in my

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

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

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

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

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

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

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.

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: 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

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 code:

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 html:errors/ does link in the style sheet. ANy idea why this is so? Thank you for your response. Thinh in ApplicationResources.properties: errors.header=hrspan class=errorErrors:ul

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

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

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: 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

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 bean:message tag. i had used the bean:message tag to provide content in my template file. however, instead of displaying the text Welcome as stored in my MessageResources.properties file it display bean:message

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

Re: html:img question

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: html:img question Hi, after a long absence, I'm back again in the struts world ;-) I have the following