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
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
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
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
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
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
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
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
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:
...
...
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
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
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
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.
>
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
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
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
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
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
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
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
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-
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
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
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
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
---
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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
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
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!
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
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
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
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
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
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
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,
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
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
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?
>
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
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
56 matches
Mail list logo