With struts 1.1b, the only way it will instantiate a bean for a form
correctly is if the bean actually extends ActionForm? The jsp works
fine on my JRun server running the old release of struts.
Im seeing that only my forms with specialized ActionForms seem to work
correctly with 1.1b; and
Barbara Post wrote:
did you redeclare the taglibs at the beginning at the included jsp ? it is
necessary.
I know, I did it. I've put this scriplet into main jsp file and the included one:
%
for(java.util.Enumeration enum=request.getAttributeNames();
enum.hasMoreElements();)
{ %
request
Hi,
Wanted to know whether or not Struts Framework scores over the jsp-
javascript combination in terms of validation of form elements.
I hope you are able to unedrstand what i am asking...? to make it clearer..
on one hand we have the jsp - javascript combination where in we can call a
Struts and Javascript don't compete in this area.
Keep in mind that some of your users might disable JavaScript; therefore,
anything you validate on the client should be validated again on the server.
-Vincent.
Wanted to know whether or not Struts Framework scores over the jsp-
javascript
Are Oranges better than fruit? ;-)
My understanding was that struts (ValidatorPlugIn actually) provided a means
(JavascriptValidatorTag) for generating javascript to do initial client side
validation based on rules you specify in an xml file. These rules may also
be used on the server side (I
Or you can even be wierd like me and use your own techniques.
I for example am manipulating xhtml DOMs at the server side to insert
dynamic data from the beans (and other bean-like things that don't quite
follow the bean rules but look bean-ish (naughty naughty! ;-)).
Im getting to the stage
I've got a Bean which contains an array of Objects.
Each of the containing objects has a datevalue.
In the JSP I want to display the date localized.
How do you solve this problem?
Thanks in advance. Matthias
and if I use js ans struts to populate comboboxes?? the users can't even use
the system if they have js disabled... and that's the way ti avoid entire
pages relaoads
Emerson Cargnin
SICREDI _ POA
-Original Message-
From: Vincent Aumont
To: Struts Users Mailing List
Sent: 01/07/02
Hi all,
I posted this question before, but no one answered -
Doesn't anyone understand my problem or
Does no one know any answer???
Here it is:
Hi,
I am trying to open a new window via javascript command that submits
command to an action path. As this action path needs a request
parameter,
Hi,
I am trying to use the method processPreprocess of the
RequestProcessor
in order to authenticate web clients in my struts application.
I am some doubt about the flow, when the index.jsp page is displayed
this
method is called, isn't it ?
Apart from the index.jsp, you would probably be best served by putting all
your other jsps (that require authentication) in the WEB-INF directory. This
way they can only be reached by an action forwarding to them and not
directly.
-Original Message-
From: Heligon Sandra [mailto:[EMAIL
Subject: Re: Graphics Objects
From: David Bolsover [EMAIL PROTECTED]
===
Hi again
My thanks to all - a number of excellent suggestions - just need to decide
which one...
David
[EMAIL PROTECTED]
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
The Struts book being reviewed at the ServerSide
(http://www.theserverside.com/resources/strutsreview.jsp)
has a good example using Struts V1.1 in Chapter 3.
Sample code is given to work with. I'm looking at it
now.
Only issue is that they've divided the Java packages
not by functionality
Subject: Re: formating
From: David Bolsover [EMAIL PROTECTED]
===
Hi Matthias
You don't say in what form your Objects store the datevalue but I'm assuming
that you are using java.sql.Date this being the class most easily used for
database update/retrieve methods.
If you access a from a
Subject: Struts ActionForm InstantiationException...?
From: Scott Curtis [EMAIL PROTECTED]
===
Hi,
I have written a Form class that extends ActionForm, called LoginForm.java
I have also written an Action class called LoginAction.java
I have written an ActionMapping as follows:
action
Hi !
I'm wondering if someone has ever tested to ask for a message that is not
present in the resource bundle. I'm using Struts 1.1 and configured null
parameter of the message resource to true. However i receive a Sevlet
exception which message is : Missing message for key mytest.test.
Reading
Glen,
Thanks for mentioning my example in chapter 3. In the chapter on packaging,
I mention the different ways that you might want to package your classes
and the pros and cons of each way. That chapter is finished, just not
posted yet. I wanted to provide an example of each way. As you said,
hi,
i installed the nighly version of of Struts 1.0.2, and accordingly i set
the classpath. and put the .jar, .dtd files according to the instruction.
the problem i am facing now is
MessageResourcesFactory.createFactory
java.lang.ClassNotFoundException:
Subject: Re: Struts ActionForm InstantiationException...? New Question
From: Scott Curtis [EMAIL PROTECTED]
===
It turns out that the problem was caused by my Form class having a
constructor with two parameters of type String. As soon as I removed this
constructor the code worked.
Therefore, I
Hi,
if you don't specify errors.header and/or errors.footer, a null string
is returned, in all other cases, you get the servlet exception.
fabrice dewasmes wrote:
Hi !
I'm wondering if someone has ever tested to ask for a message that is not
present in the resource bundle. I'm using Struts
thanks for your reply but i've got both header and footer and it does
nothing more...
Any other idea ?
Fabrice
-Message d'origine-
De : Nina-Annick Stranzenbach [mailto:[EMAIL PROTECTED]]
Envoye : lundi 1 juillet 2002 13:40
A : Struts Users Mailing List
Objet : Re: missing key
OOps sorry i didn't read your answer the right way. So i've removed both
errors.header and errors.footer and it still doesn't work...
So the question is still asked...
Fabrice
-Message d'origine-
De : Nina-Annick Stranzenbach [mailto:[EMAIL PROTECTED]]
Envoye : lundi 1 juillet 2002
Hi,
I have to write a document about Struts implementation in my
project.
Now I understand the Struts components well but I have
problems in explaining the request flow between the web browser
and Struts. More precisely the relation between the HTTP
Hello,
I'm looking at how the example .WAR applications
supplied by Struts 1.1 Beta release are expanded by
Tomcat.
Common/Shared packages, such as struts.jar,
commons-digester.jar, etc. are kept unexpanded in
the web-inf\lib directory. However, classes specific
to the application were
my problem is:
on one page i generate content from db depending on parameters
and in the same page i save the results(send by mail)
so i have that way 2 actions to do in my submit button (generate content
and save results)
The content may be also edited by user(and need validation)
What is the
Hi Glen,
This convention is followed to identify the third party or external jars
from the ones, which you had developed for your application - project.
This gives clear picture of external resources being used in the
project. There is absolutely no probs in putting all files in a single
jar, as
Hi Fabrice,
what I meant is:
if you don't have the errors.header/errors.footer specified, a null
value is returned for them. If ANY other key is not specified (in your
case mytest.test), the servlet throws an exception - so you got the
correct response.
--
To unsubscribe, e-mail:
...anyone remember DynaMen?
Anyhow... I got a Dynabean mechanism working that builds a DynaBean
based on the metadata of a SQL result set, populates and array of the
little buggers and passes it back to me. For displaying I have a tag
library that does not like a call to get('name') as
I have implemented the same approach: getting results from a database query
and wrap them in an ArrayList of dynabeans. In that way I can use the Struts
Customs tags in order to render the dynabeans content in the JSP.
Custom Tags rely on Commons BeanUtils package which is able to inspect any
OK this time i got it.
But i'm really disappointed that the framework doesn't handle this. It's
easy to do and i think i'm going to write a wrapper for this... Too bad !
Fabrice
-Message d'origine-
De : Nina-Annick Stranzenbach [mailto:[EMAIL PROTECTED]]
Envoye : lundi 1 juillet
Hi Nina-Annick,
There was a custom tag written by Phase Web that can do what you need.
James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the Open Minded Developer Network
http://www.open-tools.org/struts-atlanta
-Original Message-
From: Nina-Annick
Why don't you use Integer Objects as wrap arounds your integeres? This way
you can have nulls which will be blank on you form.
- Original Message -
From: Pete Serafin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 28, 2002 8:07 AM
Subject: html:form help
OK ... I have what
[EMAIL PROTECTED] wrote:
Anyhow... I got a Dynabean mechanism working that builds a DynaBean
based on the metadata of a SQL result set, populates and array of the
little buggers and passes it back to me. For displaying I have a tag
library that does not like a call to get('name') as the
There are varied opinions on doing as Andrew suggests.
I, personally, recommend that approach as it:
a) forces the users to go through index.jsp or an action
b) allows you to put your session validation/redirection in
one place (the action or base action class)
c) forces your developers
Hello,
I'm trying to get a parameter (dummy=.pdf) into my URL in order for IE to
realize that it should display the pdf with Acrobat. Unfortunately, I'm
hitting dead-ends. I'm running the action which generates the pdf via a
form submit in order to handle some input fields for the search
If I followed this approach and wanted to implement it across many
pages, would I just code the interface for every possible field that
could be returned? I am not sure and I left my patterns book at home
today (seriously).
-Original Message-
From: cliff [mailto:[EMAIL
Yep, the display tag library...
I spent some time looking at the source last night, and modifying it
should not be that bad...
Thanks for the feedback!
-Original Message-
From: pelly69 [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 11:05 AM
To: struts-user
Subject: Re:
I'll answer both mails at the same time ..
[EMAIL PROTECTED] wrote:
If I followed this approach and wanted to implement it across many
pages, would I just code the interface for every possible field that
could be returned? I am not sure and I left my patterns book at home
today
definatly will submit them... Tried contacting the author but no
response... I'll post patches or something...
I am going to take that approach methinks!
-Original Message-
From: cliff [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 12:17 PM
To: struts-user
Subject: Re:
Hi All,
I have several forms that I are getting checked by Validator before the
user fills out the form. This is because I used to load the forms by
calling the action servlet and seeing that it is a first load, skipping
validation and forwarding the form back... Kind of a self check...
Actually you create two action mappings in your struts-config.xml One with
validate=true and one with validate=false. Both pointing to the same Action
sub-class
-kevin
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 9:31 AM
To:
Cool - thats what I thought
-Original Message-
From: kevin.henrikson [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 12:30 PM
To: struts-user
Subject: RE: Validator and loading a form the first time
Actually you create two action mappings in your struts-config.xml One
with
If your forms are relatively well designed (see other threads in this
list for more info) then page reloads will not be a problem anyway. In
my experience trying to avoid page reloads opens a whole new can of
worms. If the content surrounding your forms is the problem, then
perhaps you
Hi,
Sorry to question about this newbie point but I don't find answer in
the Struts documentation.
I don't understand how the sessions are created in Struts ?
Which component is responsible of this task ? I think that it is
the controller but
Along this topic...
I've used tools like JOptimize and other java profilers in the past on
straight Java applications... Is there a way to do this against a web
server?
-Original Message-
From: cliff [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 12:45 PM
To: struts-user
[EMAIL PROTECTED] wrote:
Along this topic...
I've used tools like JOptimize and other java profilers in the past on
straight Java applications... Is there a way to do this against a web
server?
With my limited experience with that kind of thing I can't see any
technical reason why not
Digester, and all the other commons packages, are developed on the
COMMONS-DEV mailing list. There's also bugzilla categories to report any
problems that you have.
It's also important to be specific about *which* version of digester you
are talking about, because it's gone through several
It is correct to say that all of the automatic Struts machinery for form
beans only works if your bean is a subclass of ActionForm. (In Struts
1.1, that includes the DynaActionForm class as well.)
Craig
On Mon, 1 Jul 2002, Jacob Hookom wrote:
Date: Mon, 1 Jul 2002 01:23:40 -0500
From:
The validator framework can be used to generate client-side validation
JavaScript for Struts forms. However, you should *always* redo the
validations at the server side -- it is not safe programming to assume
that the user has JavaScript enabled.
The way I look at it, client-side validation is
I am new with Web and Struts and some items escape me.
I don't understand how the user can reach a page without
using action forwarding. I thought that all JSP pages had
to be associated with an action.
If the JSP page is not in the WEB-INF directory the user
can reach it with a simple URL ?
How
Hi,
My development environment is JBuilder5 + tomcat 4.0.3 + Struts 1.1
While working there evrything is ok but when i copy and paste my war in
tomcat 4 and try to launch tomcat stand alone(this means without jbuilder)
the messages can't be found and a servlet exception is thrown which message
On Mon, 1 Jul 2002, Struts Newsgroup wrote:
Date: Mon, 1 Jul 2002 05:25:03 -0700
From: Struts Newsgroup [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Struts ActionForm InstantiationException...? New Question
Subject: Re:
By using dynabeans should not need to modify the custom tags at all.
BeansUtils package is able to inspect dynabeans itself.
The advantage is that you have not to worry about making your modified
custom tags for each new release.
Adolfo
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing
Heligon Sandra wrote:
I don't understand how the user can reach a page without
using action forwarding. I thought that all JSP pages had
to be associated with an action.
You would access the JSP page indirectly through an action. Whether
that is an actual action, or a simple forwarding
On Mon, 1 Jul 2002, Heligon Sandra wrote:
Date: Mon, 1 Jul 2002 15:12:59 +0200
From: Heligon Sandra [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: Communication/Relation between Struts controller and HTTP
On Mon, 1 Jul 2002, Glen Mazza wrote:
Date: Mon, 1 Jul 2002 08:29:56 -0500 (CDT)
From: Glen Mazza [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: (newbie) using JAR files vs. explicit package classes
Hello,
I'm looking at how the
On Mon, 1 Jul 2002 [EMAIL PROTECTED] wrote:
Date: Mon, 1 Jul 2002 10:39:46 -0400
From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: DynaBeans, DynaClass, DynaMen
...anyone remember DynaMen?
Anyhow... I got a Dynabean
Hi all,
I'm new in struts and need help. How can I define a dynamic forward.
A user calls an ViewCompanyAction (/action/viewcompany?id=10)
stored in his Favorites.
The Action checks that the user is not logged in right now and forwards
him to login page.
Til there its not a problem.
Thanks for the clarification.
My thought was that struts w/should be able to accommodate pre-existing
beans on the system for ease of generating jsp's-- without generating
new beans that contain the same object definition and just extend from a
different class.
-Jake
-Original Message-
On Mon, 1 Jul 2002, Heligon Sandra wrote:
Date: Mon, 1 Jul 2002 18:58:07 +0200
From: Heligon Sandra [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: HttpSession initialisation
Hi,
Sorry to question
Craig R. McClanahan wrote:
The standard methods in BeanUtils and PropertyUtils know how to deal with
DynaBeans already (essentially your option (B)). That is why all of the
Struts tags can deal with DynaBeans or standard JavaBeans with no changes.
Is there a reason you can't use things like
I should be able to do bean write on them, but I would lose the pretty
functionality I get with the taglib...
-Original Message-
From: cliff [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 1:42 PM
To: struts-user
Subject: Re: DynaBeans, DynaClass, DynaMen
Craig R.
-Original Message-
From: Heligon Sandra [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 1:09 PM
To: 'Struts Users Mailing List'
Subject: RE: Login process
I am new with Web and Struts and some items escape me.
I don't understand how the user can reach a page without
using
[ServletException in:/WEB-INF/jsp/projects/mainmenu.jsp] Cannot find
bean rowset in scope session'
These are for DynaBeans incidentally... I am stuffing an array list and
then setting it like so:
---
System.out.println(Name is: + ((BasicDynaBean)
results.get(0)).get(name));
I just got over a bout with this same error, and after a day of
tail-chasing and not a little profanity I realized that I had not defined
the logic taglib. That error was coming from the write tag, because the
iterate tag was being ignored entirely.
[EMAIL PROTECTED]
07/01/02 02:25 PM
On Mon, 1 Jul 2002, Cliff Rowley wrote:
Date: Mon, 01 Jul 2002 18:42:24 +0100
From: Cliff Rowley [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: DynaBeans, DynaClass, DynaMen
Craig R. McClanahan wrote:
You mean this one:
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %
Nope, got that in there...
-Original Message-
From: Chris.Treglio [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:27 PM
To: struts-user
Subject: Re: Logic Iterate not finding my bean
I just got over
I just brought down the latest nightly build of Struts 1.1b. I'm now
getting the following error when I try to access my struts-tiles
definitions. Did something change?
Thanks.
Jerry
2002-07-01 13:50:04 - Ctx(/MemberSolutions) : Exception in R(
/MemberSolutions + /login.as + null) -
Okay, I cleared all my compiled files and everything and now the problem
is back...
Here is the error that is displayed:
javax.servlet.ServletException
at
org.apache.struts.action.RequestProcessor.processException(RequestProces
sor.java:499)
at
I have a simple ActionForm with one property: a reference to a value object. I'd like
to initialize that reference to point to the value object previously fetched by the
Action.
An Action typically takes form data passed to it in order to fetch (and perhaps
update) an object from the model.
Hello,
I have included both the Struts and Log4J packages in a webapp. Things
worked fine when I was using Struts 1.0.2. After I got the latest beta
realease of struts(1.1b1)..I get this error
log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.Digester).
log4j:WARN
Subject: Re: dynamic forward?
From: Matt Raible [EMAIL PROTECTED]
===
If you use container-managed authentication - bookmarking per se will work
just great. When a user tries to access a protected url, they are
forwarded to the login page, and then back to the URL they requested. Works
slick.
Subject: [Off Topic] Iterating through Parents/children help
From: Matt Raible [EMAIL PROTECTED]
===
I have an difficult architecture problem. Please help if you can. Below
are two tables that are linked by catalog_id.
catalog
--
catalog_id
catalog_name
parent_id
catalog_detail
Try to cast the value to a string.
html:checkbox property=carID value=%=(String)((CarBean)element).getId() %
/
Also you might want to check out multibox... Like this:
logic:iterate id=element name=cars
html:multibox property=carID
bean:write name=element property=id /
Hey all... I've done this in many languages including Java, but I can't
seem to figure out how to do it in struts. For some reason the struts
paradigm is very difficult for me. Enough whining though. My situation
is that I have a search page. I search a directory given a person's
name. I
Thanks for trying to help Kevin..comments below...
On Monday, July 1, 2002, 10:46:05 PM, Kevin Henrikson wrote:
KH html:checkbox property=carID value=%=(String)((CarBean)element).getId() %
/
The above wouldn't work since I can't cast a primitive int to a
String like that, but even
%=
I know Slava said he was going to work on this when he gets all
settled into Canada, but in the meantime, I'm curious if anyone else
is running into this problem and if so have they found a solution?...
It's becoming more common now that when I hit ctrl-s to save my buffer
it ends up switching
Oops...SO SORRY:) Meant to send this to the JEdit list. I apologize.
Been doing so much Struts stuff lately, becoming a habit posting to
this list. I apologize. Moderators feel free to delete this thread
from the archives if possible.
On Tuesday, July 2, 2002, 12:14:00 AM, Rick Reumann wrote:
Hi all,
I've seen in the Struts documentation that the logic:present tag has a
role attribute. Can anyone point me in the right direction to find out
more information about how this works, and where these roles are defined?
Thanks,
Andrew.
--
To unsubscribe, e-mail: mailto:[EMAIL
79 matches
Mail list logo