Hi struts-user,
How to add new tag into struts-config.xml ?
Or
In my application, there is a framework jsp file that fixed included three jsp page
components. And I call them 'header', 'left', and 'right' .
So I want to setup these components in my action and then the framework jsp file can
Can you switch between the two, i.e. make struts use redirect?
-Original Message-
From: Jim Richards [mailto:[EMAIL PROTECTED]]
Sent: 25 April 2001 04:09
To: [EMAIL PROTECTED]
Subject: Re: why does struts use forward instead of redirect
At 11:13 PM 24/04/01 -0400, you wrote:
Anyone
In your code you can, I don't think there is a run-time parameter between them
because it would affect code quite drastically if you switched from forwards
to redirects.
At 08:40 AM 25/04/01 +0100, you wrote:
Can you switch between the two, i.e. make struts use redirect?
At 11:13 PM 24/04/01
Hi,
I wrote:
Specifically, an application that uses "wizard" style, multiple-page
input forms would be very nice. Couple of Struts documents I looked
mention that Struts works well with wizard style application,
but I get confused when it comes to writing struts-config.xml,
JSPs that share
Hi,
I have downloaded binary / source version of strut's
examples. I kept file in proper directory. I am
getting following error. It's searching for
MESSAGE.java. But that file is not there in the
directory. I have downloaded again and searched the
same file, but it was not there. Please
hi kazumi
Sorry i dont understood what you want to say
I'm looking for an real example for you
-Message d'origine-
De?: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Envoye?: mercredi 25 avril 2001 10:27
A?: [EMAIL PROTECTED]
Objet?: RE: wizard style example, anywhere?
Hi,
I wrote:
i dont
understand the strory of deperacted taglib especialy form taglib
Please
explain me
Tankx
-Message d'origine-De: Iraklis Kourtidis
[mailto:[EMAIL PROTECTED]]Envoyé: mercredi 25 avril 2001
01:21À: [EMAIL PROTECTED]Objet:
RE: needed taglibs
Gary,
I
Hi All,
Are there any plans to include an xml (or configurable) validator such as
that written by David Winterfeldt within Struts ?
Jon Ridgway
Hi,
Not sure if this has been answered, but I had a similar problem which I
resolved by adding the classes dir of my webapp to the VisualAge workspace
classpath (Window-Options...Workspace Classpath).
Hope this helps,
Jon Ridgway
-Original Message-
From: Fei Xie [mailto:[EMAIL
i think i'll add my $.02 here...
what craig says on this matter is perfectly reasonable [i previously
felt this was an issue, but not a big enough one for me to raise a
flag about].
something that i would like to see though is a hook into this mechanism
so that if a developer desires or
It is a good idea to add . ( current directory ) to your CLASSPATH -also get
in the habit of compiling your classes so that any required package
structure is created properly. You do this by specifying an output
directory for the javac command.
If you wanted to compile the class starting from
As a satisfied customer, I would vote for it myself, but we're in
feature freeze for 1.0, so this would come up in the 1.1 timeframe.
Jon.Ridgway wrote:
Hi All,
Are there any plans to include an xml (or configurable) validator such as
that written by David Winterfeldt within Struts ?
Hi,
I have problems building the Web Server Adapter mod_jk for Apache (1.3.19)
and Tomcat (3.3).
The apxs Perl-Skript failed:
troubadix[DB000]:[dl17]:/nt/U/mcs/tomcat-src/jakarta-tomcat/src/native/mod_
jk/apache1.3 (213) build-unix.sh
Compiling mod_jk
cc -DSOLARIS2=260 -DUSE_EXPAT
Both are available in most cases. Forward is most often used since we
usually we want to send the current request along, rather than create a
new one (which is what redirect does).
Jonathan Asbell wrote:
Anyone know why struts uses forward instead of redirect?
Hello,
I need help, because I don't find how to iterate over a Vector of Beans?
It would be great if you would post a simple example of doing that.
Thank you.
_
Hartmut Bernecker
Dipl.-Wirtschaftsinformatiker (BA)
Electronic Publishing
ASIM(r) - CONTENT
on a utility note, having the source available allows me to step into struts
code while debugging using an IDE...
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 4:31 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Packaging
I have created page linking something like below, but I do not know the
syntax how I can accomplish this with html:link
Can anybody help me to translate a href=addRCard.do?bean:write
name=pagelink/Customer Cards: bean:write name=pagelink//br/a
into html:link tag.
%
java.util.ArrayList cards =
I think it would be something like this:
%
java.util.ArrayList cards = new java.util.ArrayList();
cards.add(101);
cards.add(102);
cards.add(103);
cards.add(104);
pageContext.setAttribute(mycards, cards, PageContext.PAGE_SCOPE);
%
logic:iterate id=pagelink
Sorry, no red code for me. ;-)
If the action= is the only change between your forms, you could just define
a bean with the action name and then use it in the form tag, e.g.:
logic:notPresent name=user
bean:define id=formAction value=/eFilerAddNoUser /
/logic:notPresent
logic:present
Did you try to put your property file in your project resources
(ide/project_resources/myproject) and add your project
to the project classpath of TomcatRunner (Tomcat Runner - properties - classpath) ?
I use to have problems when putting the property files in the \WEB-INF\classes
directory.
As I understand it, the flow is:
1. User hits submit button to submit against an Action, e.g., /logon in your
example
2. This is actually redirected to and handled by ActionServlet
3. ActionServlet instantiates/finds LogonForm instance
4. ActionServlet populates LogonForm from same named
EXTREMELY useful!! Please continue to do so. It allows me to go beyond the
User Guide and Javadocs to understand how things work and so how to make
them work for me.
Thanks!
Scott
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001
I've been trying without luck to unsubscribe with
the official mechanism even though my subscription
note says the userid IS correct. Notes to
[EMAIL PROTECTED]
have gotten no response.
subscriber id: [EMAIL PROTECTED]
try also: [EMAIL PROTECTED]
[EMAIL PROTECTED]
and any
Please do the same for me
Thanks much!
From: "Frank Lawlor" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Please Unsubscribe Me!
Date: Wed, 25 Apr 2001 11:46:05 -0500
I've been trying without luck to unsubscribe with
the official mechanism even though my
I find having the source available is VERY useful when developing a
struts-based application. When writing your own tags it's nice to see how
Struts does it as an example.
Alan Yackel
[EMAIL PROTECTED]
Creatrixs Inc.
Mac Ferguson wrote:
on a utility note, having the source available allows
Please do the same for me
Thanks much!
MRS
-Mensaje original-
De: Frank Lawlor [mailto:[EMAIL PROTECTED]]
Enviado el: Wednesday, April 25, 2001 1:46 PM
Para: [EMAIL PROTECTED]
Asunto: Please Unsubscribe Me!
I've been trying
Hi all,
I was wondering what your views on the following are:
JavaBeans seem to only allow fixed properties (say foo and bar), and the
tags that operate on them (e.g. bean:write) essentially call getters
getFoo() and getBar(). However, this means that any time we're in the
action class and we
Title: Java Bean log file.
Does any one out there have an experience of how to set up log file for java bean.
Struts gives a way to log contains in servlet.log file.
I am curious how to set up log file name, location etc. for the log/trace in java bean.
Thanks
--Michael
I agree 100%. We do the same thing. Most of our
DBAccessor classes fill a HashMap from the DB
tables and we use bean.getProperty(name) to access
them.
This means we do not need to do maitenance on the
classes to add new properties. Just add it to the
database and use it in the JSP.
This
Title: Java Bean log file.
It's
set up at the container level. For example, Tomcat sets this up in the
server.xml file.
-Original Message-From: Michael Wang
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, April 25, 2001 2:39
PMTo: '[EMAIL PROTECTED]'Subject: Java Bean
log file.
Me too please!
[EMAIL PROTECTED]
From: Azeem Niazi [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Please Unsubscribe Me!
Date: Wed, 25 Apr 2001 12:07:06 -0500
_
Get your FREE
Have u thought of using XML for passing generic data around. A Tag using
XPath can be used to access the data from this generic XML document.
--- Iraklis Kourtidis [EMAIL PROTECTED] wrote:
Hi all,
I was wondering what your views on the following are:
JavaBeans seem to only allow fixed
Look at LOG4J
--- Michael Wang [EMAIL PROTECTED] wrote:
Does any one out there have an experience of how to set up log file for
java
bean.
Struts gives a way to log contains in servlet.log file.
I am curious how to set up log file name, location etc. for the
log/trace in
java bean.
Title: Java Bean log file.
Hi
Guys,
Can anyone tell me
the difference between 'Page Scope' and 'Request Scope'. What is the boundaries
set by each one.. Thanks a lot.
cheers,
Amar..
I have a design question regarding file upload/download which is not
completely Struts related but I was hoping someone could provide some
suggestions. I have succeeded with the upload using the struts upload
package, and then I load the file into an Oracle BLOB field. Now I need to
get it back
Thanx everybody for clarifying.
cheers,
Amar..
-Original Message-
From: Peter Alfors [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 3:50 PM
To: [EMAIL PROTECTED]
Subject: Re: simple question
From the pageContext javadoc:
PAGE_SCOPE
page scope: (this is the default) the
Hi All!
I am creating a membership form as follows:
I first create a form dynamically with information
from the database (using logic:iterate)
The user enters information and indicates how many
associates he would like to add.
If the user selects to add 1 or more associates, I
would like to
Title: Java Bean log file.
page scope does NOT HOLD VALUES BETWEEN
pages. request scope holds values UNTIL THE END OF THE REQEST which could
be one or more jsps/servlets. That is, the page request is like a variable
useful within the jsp page and not from another page. You can ask the jsp
Let me add some more to this question. If it is possible to send files down
the network (to the client), and an Applet is
receiving the file. Is it possible for the Applet to display the file
(within itself or using a plugin) no matter what kind
of File is send down (like Word, Powerpoint
From the pageContext javadoc:
PAGE_SCOPE
page scope: (this is the default) the named reference remains available
in this PageContext until the return from the current Servlet.service()
invocation.
REQUEST_SCOPE
request scope: the named reference remains available from the
ServletRequest
I asked this question a little while ago, and the answer was quite
usefulI have copied the text of those emails below...email me if you
need more help...
keith
From: Keith Morrell [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Iterate over a bean full of
I asked this question a little while ago, and the answer was quite
usefulI have copied the text of those emails below...email me if you
need more help...
keith
From: Keith Morrell [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Iterate over a bean full of
I am using a bean:size tag to get the size of an array (and if I print
out the result, the value is zero, as expected in this instance) then
using a logic:equal to test this value, as in:
logic:greaterThan name=mobileSize value=0 /
Size of mobile accounts is : bean:write name=mobileSize /
The
Can anybody point me to the Struts mailing list URL.
Thanks you very much in advance.
Uday.
Hi,
Can anybody tell me how I can simulate the functionality of
Img Type = Submit /
I mean I need to use an Image as a submit button.
Thanks,
Uday.
The best way I've found of doing this is with a little javascript as
follows:
a href=javascript:submit();
img src=images/buttons/save.gif name=save border=0
/a
For the purposes of using Struts we made a custom tag to create these...
-Original Message-
From: Natra, Uday
Hello,
I would like to know what is the significant of the token in the
Action class.
Also I would like to know when/Why/Where to use it.
Thanks in advance,
Senthil Kumar.S
**
The Information transmitted herewith
Thanks for the response.
Whether we use XML and access elements through XPath, or use a Hashmap of
Hashmaps,
the idea is still the same: Javabeans are not flexible enough to allow you
to
codify display information - which is an irony considering that's what
Javabeans
were created for. What we'll
Um, I thought the html:image tag did this and doesn't it generate an
input type=image tag?
Scott
-Original Message-
From: Kyle Robinson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 4:00 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How can I use a Image as a submit button
This is a reply to Uday's question, as well as a reminder on how to
unsubscribe.
The emails that have been sent out on this list can be found on
http://www.mail-archive.com/struts-user@jakarta.apache.org/
before you ask a question, it might help to look at this archive and see if
it's been
That will make a gray button with the image on top of it. I think that
looks ugly. The version I use makes only the image the button so you can
make your web apps look alot nicer.
-Original Message-
From: Scott Cressler [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 16:08
When creating a FormBean (a class extending ActionForm), do they need to be
thread-safe?
Ryan Rich
Bitek, Inc.
2569 West Woodland Dr.
Anaheim, CA 92801
(714) 828-8388
I use something like the following in my struts-config.xml file:
actionpath="/signup"
type="SignupAction"
name="signupForm"
scope="session"
input="page1.jsp"
forward name="page1" path="page1jsp"/
Im not sure...but if you get more please pass one my way
- Original Message -
From: Suriyanarayanan, Senthil Kumar
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 25, 2001 7:00 PM
Subject: What is token and When/Why/Where to use it?
Hello,
I would like to know what is
Hello,
My jsp is coded as ..
html:link page=/navigation.do?nav=bean:message
key=profile/ClickMe/html:link
and I get the following error..
/common/navigation.jsp(8): no corresponding open tag for tag extension
close:
probably occurred due to an error in
Mostly to keep people from pressing submit more than once, which can
result things like duplicate sales.
In the action that prepares the form, call saveToken(request).
In the action the processes the form, check isTokenValid(request)). If
it is not valid, you can send them to an error or help
Ted,
Can you please elaborate prepares the form and processes the
form. Preferably with an example or code snippet.
Thanks
Senthil Kumar.S
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 7:59 PM
To: [EMAIL PROTECTED]
Subject: Re:
1. Setup an action to be called before the form you want to protect.
2. Before the action returns with a forwards to the form, call
saveToken(request)
3. The form will submit back to an action, in that action call
isTokenValid(request) to see if you have a valid token. If so, call
resetToken;
It is not clear to me exactly whatthese values
could or should be. I understand that the ".do" is stripped of the
request, so does that mean I only have to match everything up to the ".do"
? Why is a "/" used? To me this means "root", and in fact in the
Login example the path changes from
I found that some classes in taglib and taglib/html ot taglib/bean have the
same names. For example taglib/MessageTag.java and taglib/bean/MessageTag.java.
Could someone explain why we need both and if I use bean:message. which one is
used. BTW, there are many duplications like that.
Greetings and salutations,
What I currently have is a page
with a form that is populated from a DB. What I wish to do is once the user has
made changes to the fields and has clicked the save button, I would like to take
them to another page in whichthe fields that they havechanged are
now
61 matches
Mail list logo