Action BEFORE a page is constructed?
As far as I understood the working of struts, you inherit the FORM and
the ACTION classes. The forms are constructed BEFORE a page is shown -
if values
are already available, they will be shown. AFTER the page is submitted,
the
ACTION is called with the FORM
Hi,
in my struts-config.xml the fallowing forwards:
forward name=Edit path=/verwaltung_2.jsp?action=Edit/
forward name=Create path=/verwaltung_2.jsp?action=Create/
And in the verwaltung_2.jsp I want to do this:
logic:equal name=verwaltung_2 property=action scope=request
value=Create
action path=/prepareorder type=sandwich.web.order.PrepareOrderAction
forward name=success path=/order.jsp/
/action
If you want to do some preparations before you create the form you can make
a new actionclass without a form class.
action path=/prepareorder
Hi
The parts you show look correct to me. It seems that the problem lies in
the code of method OverDueOrderView.getOrderNo(), which you have not copied
to the mail.
Guido
Purely using the struts-config.xml/struts tags, it is not possible to have
two forms for one mapping.
But why do you need this?
I suppose you want one HTML form to populate two form beans, is this right?
My suggestion then would be to either give up on this idea or to have a
third form that
How can I get UML diagrams of Struts (specialy the class model diagram) ?
Thanks.
Bruno Morin
it is goes something like this .
private String orderNo ;
public String getOrderNo() {
return orderNo ;
}
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 8:28 AM
Subject: Re: Iterate problem
Hi
The parts you show look correct
Hello!
I already wrote small struts-applications and never had to fill in an
input-Attribute in the struts-config.xml file.
Now Struts complains, that the input-attribute is missing:
2001-07-10 01:37:31 - Ctx( /test): 500 R( /test+ /ServiceOrderAction.do +
null) No input attribute for mapping
Incident Information:-
Originator:Helmut Rubasch [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject: No Input Attribute...
Message from Helmut Rubasch [EMAIL PROTECTED] was quarantined
because it contained banned content.
Sorry, I'am somewhat at a loss...
I had a similar problem, where it helped composing the property-term to a
variable first, and using double quotes for the property value:
...
td
% pVal = view[ + index+ ]+.orderNo; %
html:text property=%=pVal% /
/td
...
but I never understood why (can anybody
Hi Bruno
You could try donwloading a copy of TogetherJ and pointing it at a copy of
the source. It will automatically generate a class diagram for you. See
www.togethersoft.com
Jon.
-Original Message-
From: MORIN BRUNO [mailto:[EMAIL PROTECTED]]
Sent: 10 July 2001 09:23
To: '[EMAIL
In your struts-config.xml, try changing this :
action path=/test/ServiceOrderAction
type=com.xxx.web.ServiceOrderAction name=serviceOrderForm/
- Original Message -
From: Helmut Rubasch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 10, 2001 3:41 PM
Subject: No Input
Incident Information:-
Originator:Pham Thanh Quan [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject: Re: No Input Attribute...
Message from Pham Thanh Quan [EMAIL PROTECTED] was quarantined because
it contained banned content.
Hi again!
I think i found it myself... its because of the validate-method in the form...
Helmut Rubasch
At 01:41 7/10/2001 -0700, you wrote:
Hello!
I already wrote small struts-applications and never had to fill in an
input-Attribute in the struts-config.xml file.
Now Struts complains, that
Incident Information:-
Originator:Helmut Rubasch [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject: Re: No Input Attribute...
Message from Helmut Rubasch [EMAIL PROTECTED] was quarantined
because it contained banned content.
Here we go UML diagrams of Struts (specialy the class model diagram) ?
this was forwarded on as Jonathan Asbell visual a few day's ago i found
it pretty good.
All the Best Chuck.
Thanks.
Bruno Morin
--
The views expressed by the sender of this message don't
necessarily represent those of
ANT is part of the Apache Jakarta project i know, and is fast becoming
the defacto
build tool for Java projects.Pls can anyone suggest a good src other
than within netbeans Ant 1.3 manual as it is difficult to print intact
and will take a bit of editing.Thus any other src doc's ie. ant's made
If anytime use make for build process then Ant is
similar to that except Ant is platform independent building process .Same
ant build.xml will work on all platforms as it is purely a XML tag based . If u
want to know more about Ant then there was a good article on www.JavaWorld.com few days
I still struggling with iterate problem still . Any solutions . I do
have the proper getter methods in the OverDueOrderView .
getting Here I'm getting **in side the getView of UpdateOrder Form 0 **
printed
with following error message javax.servlet.ServletException: Exception
thrown
Hello,
I did not get it.
Rather than directly forwarding to /order I now forward to /prepareorder. Is
this right?
However, it looks that I still have an error, because the forwarding from
one action
to another does not work - and even give any helping error message:
After the jsp in action tag
Hi Suhas,
I seem to remember a problem with arrays being used in this way. Someone on
this list created some new indexed tags you can grab from Teds site. Not
certain but have a look at:
http://www.husted.com/about/struts/resources.htm#contributions
Specifically have a look at the Indexed
Jonathan Asbell wrote:
I wanted to know what you finally decided on regarding my recent
documentation submission. Also, I wanted to know if you saw the
pictorals and thought they were accurate.
We should probably continue this on the DEV list so the threads don't
get tangled ;-)
On a
The Struts html:link tag offers three distinct advantages
1) It URL encodes the link to retain the actor's session as needed
2) If global forwards are used for all entry points, then different
installations of the application can use different servlet paths
(/do/action versus /action.do).
3)
If you have an image for the button, put it where the bean:message is.
If you have i18n images, use the Struts html:img tag instead.
If you do not have an image, then use html:form and a hidden field for
action with the value create.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom
Hi, this is my modified ActionForward class that i believe i made a serious bo
bo.
package classes.org.apache.struts.action;
/*Accessing Relational Databases
*Struts can define the datasources for an application from within its
standard configuration file. A simple JDBC connection pool is also
I use Ant on a regular basis and I've found the O`Reilly java site at
www.onjava.com to have a couple of good articles, covering both
introductionary and more advanced topics.
IBM's developerWorks site mentiones Ant from time to time.
BEA's beta release of WLS6.1 has Ant scripts for building
Pls could you post this ant website address or link. Cheers chuck.
Mikkel Bruun wrote:
Part 1.1Type: Plain Text (text/plain)
Encoding: quoted-printable
--
The views expressed by the sender of this message don't
necessarily represent those of Brecon Beacons National Park
http://jakarta.apache.org/ant/
.trond strømme, software engineer, mogul technology, norway
[EMAIL PROTECTED]
-Original Message-
From: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sent: 10. juli 2001 12:03
To: [EMAIL PROTECTED]
Subject: Re: Ant build tools - Need address to get grips with.
Can you post some of the code you are working with?
Given a method getDirectoryName() you should be able to pass the same
collection to both the labelName and labelProperty properties.
Though, you may need to expose the collection as a bean (in page scope).
The tags are not written with the
The default reset() method does not do anything, so the fields you do
not change yourself would not be changed.
The general advice is to use booleans for checkboxes and set them to
false in reset().
Reset() is called before the ActionForm is populated from the request,
and would not change
Paul,
The problem you are facing is exactly what I tried to solve in the mapper
framework I'm developing. I'm still working on it, but plan to have another
more mature release within a week. In the meantime you can see an early
release on Ted's site
sure ;-)
http://jakarta.apache.org/ant
-Oprindelig meddelelse-
Fra: Chuck Amadi [mailto:[EMAIL PROTECTED]]
Sendt: 10 July 2001 12:03
Til: [EMAIL PROTECTED]
Emne: Re: SV: Ant build tools - Need address to get grips with.
Pls could you post this ant website address or link. Cheers
Hi Raffaele,
Although I have not worked with BV 6 (only 4/5), we have had BV here
talking to us recently and I quizzed them about struts and the implication
was that even when it ships it would ship with struts 0.5. I don't know
that this is the case but I expect that is why you are seeing
These are both very nice. As to the first one, that mentions
struts-config at the top, I would change the top caption to read
The Action classes you created which are registered with the
ActionMappings loaded from the struts-config.xml.
And the second to read
A request for ... registered in
The Struts framework implements the Front Controller pattern as its
ActionServlet.
Using that vocabulary, the ActionMappings are the Dispatcher.
The advantage of Struts is that the Front Controller, Dispatcher, and
several other J2EE patterns have already been implemented for you, and
are
Are struts tags currently designed to handle this
for me?:
package com.vnu.models;
public class JumpUrlsBean extends
java.lang.Object{
private String targetUrl =
null;private String successUrl = null;private String
failureUrl =
Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com
Point 4 could be described in more detail:
methods: reset and validate
--
gR
One way to populate a form before it is used (say you
want to load user information for editing) is to
create an action called preloadUserAction. In the
config file create an action mapping such as
actionpath=/edituser
type=actionbeans.PreloadUserAction
Look at the Java2D api.
http://java.sun.com/products/java-media/2D/index.html
You can create a custom action handler for struts that uses the Java2d api
to check the image as well as apply transformation to it.
I know this is a little vague but it's always more rewarding when wee
discover
I'm hoping someone can help me understand this better. In web.xml, I have the
following entries -
error-page
exception-typejava.lang.Exception/exception-type
location/errorpage.jsp/location
/error-page
error-page
Ted Husted [EMAIL PROTECTED] wrote:
2.1) Before populating the ActionForm bean, the servlet calls the bean's
reset() method. After filling the bean from the reqeust, the servlet
calls the bean's validate() method. If validate returns false, the
servlet forwards the ActionForm bean to the
I tried importing it all. It worked fine with NT but failed using Windows
2000.
When I reverted to IBM's MO there were no probs.
brgds,
S. Bro
-Original Message-
List: struts-user
Subject: RE: RE: WTE/Struts parser incompatibilities - pandoras box?
From: Jon.Ridgway [EMAIL
If any of you have already tried the mapper framework, the next release
planned for next week will make some of the elements in the mapper-config
DTD obsolete (nested-mapper, converters, validators, conversions,
validations) and will add a couple new elements (declarations, rule). This
means
Beans
need to have public. no-argument constructors, unless they are explicitly
created and stored in the required scope.
RegardsMeeraj/
-Original Message-From: Jonathan
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, July 10, 2001 3:01
PMTo: [EMAIL PROTECTED]Subject: can Struts
On Tue, 10 Jul 2001, Ted Husted wrote:
Can you post some of the code you are working with?
Given a method getDirectoryName() you should be able to pass the same
collection to both the labelName and labelProperty properties.
Though, you may need to expose the collection as a bean (in page
Excuse me 4 mailing u direct. I have just seconded a linux box for home
use as well as my home windox box is practically full). Thus as per your
mail u mentioned i should try and compile it via the command line(ant
prferrably) that would give you sufficient data to work with.
Thus it may
Hi,
In our application, we are using XML/XSL to generate JSP and plan to use
Struts for submitting data from HTML forms. Has anyone used / know
if this architecture works. my thinking is ( correct me if wrong ) , we
will not be able to use tag libraries coz of XML/XSL combination for
generating
put
the ApplicationMapping under
classes/org/apache/struts/action
the
package declaration is "package org.apache.struts.action; "
when
compiling the classes directory struts.jarshould be in the
classpath.
-Original Message-From: Chuck Amadi
[mailto:[EMAIL PROTECTED]]Sent:
Lots.
- No java code in JSP pages is achievable if you're willing to write tags
- Look for reuse between forms beans and between actions.
- Call the same field the same name on all forms
- Keep all data necessary to process the request either in the request or
in an easily accessible bean.
-
Hi NGUYEN,
This is a problem with WebLogic.
Basically one of the custom tags is Barfing in between the html:form ...
tags. It can be any of the following:
1. A tag has a syntax error.
2. Open tag without a properly nested close tag.
3. Some of the logic tags need logic:present tags to wrap
that's a interesting point. any experieence about orion-server?
-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 4:49 PM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml
I'm hoping someone can help me understand this better. In web.xml, I
I am trying to migrate my web app from WLS 6.0 to a WLS 5.1 SP8, but i've encountered
some setbacks. I verified that the service pack was installed then registered my WAR
file in weblogic.properties. I then added my ApplicationResources file into the
_tmp_xxx directory. My final result: a 404
It looks as though you named the file ActionMapping.java when it should
be ApplicationMapping.java.
The file name must be the same as the class name.
HTH,
Pete
Chuck Amadi wrote:
Hi all , well i have tried everthing in the book/doc's to no avail, I
would like to know that say for
Object
construction is expensive as well. This is an interesting question and I
like to add some. I hope that Craig, Ted, Martin and some others senior
member can answer the scalabilities of struts. I wonder
if
struts
use instant poolling for from bean. If so, then how do strusts reset the
Thanks
Hello,
I have struts 1.0 app running on tomcat and I noticed that one of my pages
(output after uploading a file) is not cached by the browser (IE 5). By
default ActionServlet doesn't include any headers prohibiting from caching.
I tried manually set headers inside of the action prior to
this a known problem with sp8. If you install sp9 you will know what the
actual exception is.
-Original Message-
From: NGUYEN G InfoEdpMsiVdf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 2:26 AM
To: [EMAIL PROTECTED]
Subject: WEBLOGIC 5.1SP8 issue
Hi!
I've got some problem
Good Morning:
I have a question for the iterate property update with indexed tag.
Normally I use my own tag to show the real name of the iterate property for
update purpose, then just read them out from the HTTPRequest on my action
class, that works well until recently I have to add a upload
Hi Suhas,
No sure what you mean by that...
By the way, do you have to have an array? If you make it a collection, you can
do away with the index altogether!
Dave
suhas [EMAIL PROTECTED] on 07/10/2001
11:52:20 AM
Please respond to [EMAIL PROTECTED]; Please
respond to suhas [EMAIL
[EMAIL PROTECTED] wrote:
I could go on and onbut the good news was Struts was an immense help.
Please do -- I think the world may be ready for The Elements of Struts
Development
http://husted.com/about/struts/elements.htm
The avoid transient beans point sounds especially interesting ...
Yes I know, but when you create a value object you
dont want setters. What I want is a bean like structure that has no
setters. I want to be able to create it by passing values to a
constructor.
- Original Message -
From:
Meeraj Kunnumpurath
To: '[EMAIL PROTECTED]'
Good Morning:
I have a question for the iterate property update with indexed tag.
Normally I use my own tag to show the real name of the iterate property for
update purpose, then just read them out from the HTTPRequest on my action
class, that works well until recently I have to add a upload
Incident Information:-
Originator:Jason Rosenblum [EMAIL PROTECTED]
Recipients:Struts (E-mail) [EMAIL PROTECTED]
Subject: WLS/Service Pack 8 Troubles
Message from Jason Rosenblum [EMAIL PROTECTED] was quarantined
because it contained banned content.
I have a small and simple web app that I have working with vanilla
struts. I am trying to incorporate the struts validator mechanism by
converting just one form. To do so, I have done the following:
Placed the Struts_Validator-20010702.jar into the web app's lib dir.
Place the
Thank you very much
I have downloaded the most recent binary version of Struts, changed TLD file
by adding
this new property, and it works !
Thanks a lot !
Jerzy Kalat
- Original Message -
From: Niall Pemberton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 09,
As far as I know, db-Kona is weblogic specific implementation instead of
JDBC.
It might have some performance benefits over JDBC but at the price of
portability.
I am not sure if db-Kona is totally different beast from Kona itself!
With regards
-Srini
-Original Message-
From: Trieu,
Struts does check to see if an ActionForm bean in the appropriate scope
already exists before creating another, and then calls the standard
reset() method before populating it from the current request (which is
one reason why we have a reset() method ;-).
Struts tries to be parsimonious with
Hi
What exactly does this error mean??
I have a JSP (using a few Struts tags) with the action beans working with a
couple of EJB's. I have successfully deployed it in the Websphere Test
Environment using VA 3.5.3.
I am trying to deploy the same application on WAS 3.5 Patch 2 and I get the
Do you have the ActionServlet init-param nocache set to true?
From ActionServlet.java:
nocache - If set to true, add HTTP headers to every response intended to defeat
browser caching of any response we generate or forward to
HTH,
Pete
Zeltser, Mark wrote:
Hello,
I have struts 1.0 app
Hi,
When I try a Strust example , http://localhost:7001/strutsexample/index.jsp, the
following exception is thrown. I've tried deploying the example as a .war file
as well as in the extracted format. ANy ideas ?
Wed Jul 11 08:57:29 GMT+10:00 2001:E WebAppServletContext-strutsexample
Servlet
I am trying to get the example application to work on Websphere 3.5.4.
I followed the additional steps from the installation page and I can now
see the index.jsp page and the tour, but when I try to register or logon
I get the following error.
Has anyone else seen this or know of a solution?
Thanks Abraham,
When I replaced sp9 with sp8 the example works fine. I deployed as a .war so i
did not need to make the classpath changes.
Cheers
Neil
Abraham Kang [EMAIL PROTECTED] on 11/07/2001 09:36:06 AM
Please respond to [EMAIL PROTECTED]; Please respond to
[EMAIL PROTECTED]
Standard out goes to the console window not to the log
file. If you are starting Tomcat as a background
process, don't. Then as it starts you will see some
Struts and Validator print out.
David
--- David White [EMAIL PROTECTED] wrote:
My web app is called my-struts-example. The servlet
log
Hi Everyone,
Anybody knows how to use the indexId in the logic:iterator tag?
Will it give us indexed html form element?
Please hell...
Thanks,
Lucas
Hi,
I have an application in which I havent used transactional tokens. I have a
text field where I defined a onchange=preprocess() which sets a value and
then submits the form. Heres the behaviour I see:
a. It works 'perfectly' when I change the value and move the focus out of
this text box (it
check if u specified the applicationResourcefile in the web.xml
as
init-param
param-name
application
/param-name
param-value
example.applicationResource
/param-value
/init-param
If u using bean:message tag in the Jsp then the application REsources
should have been loaded before
Check
Incident Information:-
Originator:suhas [EMAIL PROTECTED]
Recipients:[EMAIL PROTECTED]
Subject: Re: Error: org.apache.struts.action.MESSAGE
Message from suhas [EMAIL PROTECTED] was quarantined because
it contained banned content.
78 matches
Mail list logo