The official Struts web site is at:
http://jakarta.apache.org/struts
If you need more than that site provides, you might want to follow the
Resources link. An excellent beginner's resource is at:
http://www.husted.com/about/struts
--
Martin Cooper
- Original Message -
From: Sudhir M
Thanks a lot Martin.
Regards
Sudhir M.
-Original Message-
From: Martin Cooper [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 12:11 PM
To: [EMAIL PROTECTED]
Subject: Re: Basics of STRUTS
The official Struts web site is at:
http://jakarta.apache.org/struts
If you need more
use an ArrayList in an iterate tag, to display a series of input boxes,
which will then be able to set the actionforms arraylist property, once the
form is submitted?
thanx
From: Alex Colic [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Struts [EMAIL PROTECTED]
Subject: how to forward page on logic:notPresent?
Date: Tue, 8 May 2001 16:47:12 -0400
Hi,
suppose you have an object in the session. If the user access a page that
uses this object you want data to
and if data was a collection of employees would you be able to do this?
document.form[data.employee[0].emplyeeName].value
-Original Message-
From: Will Spies/Towers Perrin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 8:12 PM
To: [EMAIL PROTECTED]
Cc: '[EMAIL PROTECTED]'
Hi !
How can I include Applet/Servlet dialog in Struts ? what is the method to keep a
session id (parameter
?)
Thanks ...
Arno
_
Le journal des abonnés Caramail - http://www.carazine.com
hello
I' ve
the same pb and i would like to know if you've find the solution
Thankx
-Message d'origine-De: Robert Taylor
[mailto:[EMAIL PROTECTED]]Envoyé: jeudi 26 avril 2001
20:52À: [EMAIL PROTECTED]Objet:
RE: Database access problem
The second way I tried to
} catch (Exception ex) {
ex.printStackTrace();
errors = new ActionErrors();
errors.add(beanErr,new ActionError(ex.toString()));
}
I posted a bug report and sent a patch for struts on this one. I think this was
last week. The committers decided not to include it, because the wrap attribute
is not in the HTML spec. This is really unfortunate, escpecially because the
little patch I already provided is just a minor change and
Use 'validate="false"' as an action attribute to
prevent a return to the input page after a failed validate. Struts will continue
on to the action, and you'll need to decide what to do there.
- Original Message -
From:
Jeff
Trent
To: [EMAIL PROTECTED]
Sent:
ActionError constructor wants a message key. not just a string.
you could do:
errors.add(beanErr,new ActionError(general.exception,ex.toString()));
and then have a general.exception in youre resouce bundle:
general.exception=An exception occured: {0}
johan
- Original Message -
From:
thank-you so much Great I appreciate it!!
-Original Message-
From: Johan Compagner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 1:19 PM
To: [EMAIL PROTECTED]
Subject: Re: please help...this doesn't want to display the exception,
is this correct?
ActionError
start reading the user guide
--
Da: Sudhir M[SMTP:[EMAIL PROTECTED]]
Risposta a: [EMAIL PROTECTED]
Inviato: mercoledì 9 maggio 2001 8:29
A:[EMAIL PROTECTED]
Oggetto: Basics of STRUTS
Hi there,
This is sudhir from India, and have just joined the mailing
Ah, okay. So I should call validate() within
the action class directly then? I'll play around with this
approach.
- Original Message -
From:
William
Jaynes
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 6:58
AM
Subject: Re: Override Input Form / JSP
when
Hi,
I *guess* that the html: tags require a form bean (please correct me if
this is wrong) so they won't work with dynamically created page elements
like input text fields.
I did the following and it works, got the idea from Scott Walter (thanks) -
see
In
that case try to move your validation into the Action class.
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 08, 2001 5:13
PMTo: [EMAIL PROTECTED]Subject: Re:
Override Input Form / JSP when Errors Are Encountered
That doesn't work -
Martin,
Thanks. You got me back on track. I guess I was staring at this too long
last night.
John Miaso
Martin Cooper wrote:
The error message you are seeing is not strictly accurate (which is a
problem with your JSP container). The real problem is that the
html:options tag should not
I believe in the erros tag you need to do something like this...
errors.add( (ActionErrors.GLOBAL_ERROR,
new ActionError(error.exception));
The reson is that the error msg which gets send back to the user is
internationalized (i.e a user in France sees the error in
I'm trying to iterate thru an array of objects in my
actionform(taxPayerForm)
here is my jsp...
logic:iterate id=taxPayerForm
scope=request property=taxPayers
tr
td align=center
I've modified the html-select.jsp example to include the script:
SCRIPT
function cbChanged() { document.testbean.cbSearch.value = Search
document.testbean.submit()
}
/SCRIPT
I'm setting a hidden property so that I can fill a select elements options in
the Action peroform
Hi,
I thought about login:forward but from what I know I would have to know
the name of the next page and place that in this tag. I don't want to do
that because if I change the order of my pages in the struts.xml file then I
have to remember to change this tag. I think what I am looking for is
Jim,
Trying to apply your code, I tried getting html:text tags work again, but I
could not get the thing I wanted, so I give up.
Let's hope you write a huge article once the project is over. :)
Turgay.
From: Jim Richards [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
If your User bean is constructed from data in a database ONLY, via the
constructor and not by set() methods, then the object can only contain info
it was constructed with. This means that you cant guess and pass whatever
parameters because they were obtained from the database. So unless someone
My mistake. I was testing all possibilities and I sent you a bad example.
This set of HTML code works:
IMG SRC=./Images/cancel.gif ALT=Cancel NAME=btnCancel
This struts code does not:
html:image src=./Images/cancel.gif alt=Cancel property=action
value=cancel /
When the page is resolved the
exactly
James
Hicks
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 08, 2001 7:28
PMTo: [EMAIL PROTECTED]Subject: Re:
Override Input Form / JSP when Errors Are Encountered
Interesting approach. Let me see if I can
explain this back to
Are u able to debug JSP Tags using emacs/JDE?
--- Jon Brisbin [EMAIL PROTECTED] wrote:
Emacs is geek overload.
nooo, emacs is geek heaven :-) it's like Coke or Pepsi. you have your
favorite, i have mine :-)
i've tried nearly every ide for java out there and none have the power
and
Briefly, this is what I am trying to achieve:
- Retrieve a list of items from a database
- Display each item with a corresponding checkbox
- Display a Delete button - which when pressed deletes all checked items.
Unfortunately, although I have managed to display the items correctly and
set the
Hello all,
I think I got the framework working with Visual Age but when I try to run
the index.jsp file I get a document contains no data error from the
browser. With a little debugging, I isolated the line
titlebean:message key=index.title//title (or any line using the
bean: tag) to cause the
I'm struggling with the same problem as you are (well similar) and general
lack of information / not being able to find information.
I think you may need the following method in your ActionForm bean:
public TaxPayerData getTaxPayers( int index )
{
return taxPayers[index];
}
as well as:
I have had other similar issues and I think a very useful enhancement to all
Struts tags would be to make them more granular so that they could be easily
sub-classed and modified. Currently methods such as doStartTag() tend to
have one big lump of code which means if you want to change it
I am able to debug standard JSP pages inside JBuilder environment, but
when it comes to custom tags, it does not let me set break points on a
line which has a struts tag.
Has anybody debugged JSP tags with JBuilder?
Thanks,
Rajan
__
Do You
I put a selectedDate of type Calendar in my session then if I use struts
bean tag like this
bean:write name=selectedDate property=time/
it will give me: Wed May 09 12:17:05 EDT 2001
fine.
but what can I do to get the year only what should I put in the property=???
to represent this:
Thanks for that (although I don't like inserting scriptlets!).
My problem, though, is that the underlying value in my form bean is not being
displayed in the checkbox - it is set to FALSE, and yet the box appears checked.
Is this an error in Struts? Also, am concerned that the HTML spec is
Here's a related question. I use JBuilder3 for regular development and also
for JSPs. But with JSP's it is little more than a text editor. Does anyone
have any suggestions for how to get introspection to work while editing a
JSP page(so I get drop-down's with methods after I type .)? Thanks
- Original Message -
From: Rajan Gupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 11:47 AM
Subject: Re: Struts debugging in Emacs/JDE
Are u able to debug JSP Tags using emacs/JDE?
yes. what i did was to set up the right parameters in my jde environment by
Sorry about that - here is the code again - there should be a zip file
attached. I do not think that this code is going to be included in
Struts because it relies on some java script and therefore may not be
100% with all browsers, and would not work if a user disable j.s.
However it works well
Hi Craig,
I work with Nic and have done a lot of work extending Struts in the areas
of generic validation, including crossfield and multi-page/channel form
support.
I'm not sure exactly how one contributes as I am new to this open source
game so point me in the right direction and I'll do my
The problem is the CheckBox tag currently sets the HTML name attribute to
the property, so your JSP will produced something like this:
input type=checkbox name=delete
So all the checkbox fields will have the same name.
In order for Struts to populate your Retailer bean with the delete
Title: ConnectionPooling in struts
Hi All,
Could somebody help me in solving this issue.
I need an example of connection pooling in struts.
I had to use the oracle thin driver
The files needed are:
i) struts-config.xml
ii) java class
I want to know how I must write the datasource
Upgrade to Jbuilder 4 Enterprise edition - tablib debugging, JSP debugging,
introspection, etc.
1) It does have it share of bugs however...hint: don't use the built-in
browser.bug city.
2) Requires minimum 256mb Windows box / 128mb Linux box - 500 mhz processor
or better
-
I'm using MySQL rather than Oracle...
--Struts-congif.xml-
struts-config
data-sources
data-source description=MySQL-test
driverClass=org.gjt.mm.mysql.Driver
url=jdbc:mysql://localhost/test
Where can I download emacs/JDE from?
--- Jon Brisbin [EMAIL PROTECTED] wrote:
- Original Message -
From: Rajan Gupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 09, 2001 11:47 AM
Subject: Re: Struts debugging in Emacs/JDE
Are u able to debug JSP Tags using
A reply to my self for the benefit of other (maybe)...
getTimeinMills is protected ! end of the story.
And I should use a bean to stock up info in the session. And i will.
But this one is good. Maybe there is a solution maybe it's a bug for in
Taglibs.
My browser language is in french so this
The problem is the CheckBox tag currently sets the HTML name attribute to
the property, so your JSP will produced something like this:
input type=checkbox name=delete
So all the checkbox fields will have the same name.
In order for Struts to populate your Retailer bean with the delete
emacs is part of the gnu project, and is at any gnu.org mirror...i'm using
the windows version as well (NT/Emacs), which is discussed on the emacs home
page...
jde can be obtained at jde.sunsite.dk...
jb
- Original Message -
From: Rajan Gupta [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Title: RE: Struts debugging in Emacs/JDE
http://www.xemacs.org
-Original Message-
From: Rajan Gupta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 12:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Struts debugging in Emacs/JDE
Where can I download emacs/JDE from?
--- Jon
I think I am doing the same thing that you want to do using the
html:multibox. When the form is submitted you get an array of the ids that
are checked and then you can go delete them.
in the jsp form (where restaurant id is a key for the item being deleted):
logic:iterate id=restaurant
I have a requirement that my application be able to allow multiple browser
windows, sharing the same HttpSession, to access two separate instances of a
business process simultaneously. For example, if I have a form that allows a
user to change their address information my application must allow
In Form.Validate()
{
...
if
(getCustomerContactName().length() =
1)
errors.add("customerContactName", new
ActionError("error.customercontactname.required"));
if
(getCustomerContactPhone().length() =
1)
errors.add("customerContactPhone", new
Keep the ActionForms in 'request' scope. Then each page will have its own
ActionForm. The problme occurs when you want to store these forms in session
scope.
cheers,
Amar..
-Original Message-
From: TJM Todd McGregor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 4:49 PM
To:
I
don't think it is a bug. I think the html:error is using an Iterator.
there is no guarantee of ordering in an Iterator. Correct me if i am
wrong.
cheers,
Amar..
-Original Message-From: Jeff Trent
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 09, 2001 4:47
PMTo: [EMAIL
Hello Folks,
A quick design question. This might be nit
picking from a design standpoint but still a
valid question.
Struts uses the Action.perform(...) API for
action hadling/controller. I am curious to know
why Servlets can't be used for the Action Handling
layer. That way there is no need
Title: RE: Basic Design Question...
Read up on the MVC/Model 2 design pattern. Struts is based on this design pattern. It much better to have one servlet (controller) and several actions (models), than to have serveral servlets.
-Original Message-
From: Prakash Dominic [mailto:[EMAIL
http://jakarta.apache.org/struts/api/org/apache/struts/taglib/template/package-summary.html#package_description
The URL above includes the following statement regarding the Struts Template
Tags library: These templates are best used when it is likely that a layout
shared by several pages in
Christian...are you lurking about?
Yeah, but I'm really behind on my reading. :-)
IHMO, I thought that the comment someone made about keeping
security ouside of the application was the best idea anyway.
If someone has a good reason for implementing security IN THE
APPLICATION rather
But that's exactly my problem. I have forms that may span multiple pages and
the ActionForm needs to be available across multiple requests. Any ideas
-Original Message-
From: Nanduri, Amarnath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 1:53 PM
To: '[EMAIL PROTECTED]'
Unless its implemented in terms of a hashtable,
no.
- Original Message -
From:
Nanduri, Amarnath
To: '[EMAIL PROTECTED]'
Sent: Wednesday, May 09, 2001 4:54
PM
Subject: RE: Bug in order of error
presentment (html:error)
I
don't think it is a bug. I
Hunkpapa,
Could you give me more information? What's the enctype of your form? What
OS, Container, and Struts build are you using?
-Original Message-
From: hunkpapa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 3:33 PM
To: [EMAIL PROTECTED]
Subject: ServletException:
Hi all,
Has anyone been successful in getting the localization features to work in
struts? I am getting all text strings from the properties file using
bean:message key=some key. This works fine for english, but when I add a
spanish translation with a _es suffix, I can not get it to appear. I am
Title: RE: Localization
It works fine for be, even with double byte lanuguages. The one thing I had to do was to set the charset in the jsp page so it would display properly.
-Original Message-
From: Whitney Hunter [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 3:27 PM
To:
Never mind. I figured it out... My fault :O
-Original Message-
From: Whitney Hunter
Sent: Wednesday, May 09, 2001 3:27 PM
To: 'Struts User List'
Subject: Localization
Hi all,
Has anyone been successful in getting the localization features to work in
struts? I am getting all text
I understand MVC/Model 2. And I don't
think Action layer in Struts map to Model in MVC.
Actions in Struts are -Controllers- in the MVC pattern as they translate user actions
to the Model and select the appropriateView.
The point I was trying to make was that, instead of
creating a whole new
Mindaugas,
The return type from that hashtable will be String[], not String
-Original Message-
From: Mindaugas Idzelis [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 7:08 PM
To: struts
Subject: MultipartRequestHandler broken in nightly builds
Given the following code snippet:
Title: ConnectionPooling in struts
I met the same
problem: after submitting unsubscribing letter, still receive mails. Please
unsubsribe me either.
-Original
Message-From: Natra, Uday
[mailto:[EMAIL PROTECTED]]Sent: Thursday, May 10, 2001 3:28
AMTo: '[EMAIL
Title: ConnectionPooling in struts
me too
- Original Message -
From:
Natra, Uday
To: '[EMAIL PROTECTED]'
Sent: Thursday, May 10, 2001 3:28
AM
Subject: UnSubscribe please!!
UnSubscribeme please!
When the form tag creates its form bean it doesn't invoke reset() on the
form. This (or similar) behavior would be really useful to me - I'm
populating the form with runtime-computed default values.
Right now I'm considering hacking in a create and a call to reset() on
the page (or in a
Switching from a May 2nd build of struts
to a May 9th build of struts gives the error below.
Switching back to the May 2nd jar fixes the error.
When switching I am also updating the tld files.
Internal Servlet Error:
javax.servlet.ServletException
at
Title: ConnectionPooling in struts
I have
tried repeated times to unsubscibe and still recieve emails! Could you
pleas unsubscribe me also..
-Original Message-From: Cao Jue
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 09, 2001 5:46
PMTo: [EMAIL PROTECTED]Subject: RE:
I was wondering if anyone has configured STRUTS 1.0
on TOMCAT 4.0 B3, I seem to be having some errors on startup of the
server. The example, blank, test, and upload applications are not
deploying correctly. Below is a sample of the error being thrown in my
server log file. Any help would be
My request attributes seem to go away sometime between forwarding from
an Action and when the JSP is processed. Any ideas what's going on?
John
Ack! The 'forward' was a redirect...
John Raley wrote:
My request attributes seem to go away sometime between forwarding from
an Action and when the JSP is processed. Any ideas what's going on?
John
The order of errors for a given property name will be preserved. However,
the error lists are stored in a HashMap with the property name as the key,
so the iteration order of those is not defined.
If you are just using html:errors/ (that is, you are not specifying the
property attribute), then
Hi All,
I've just loaded struts and am having a little problem. I started by
placing the *.war files in webapps directory. After copying xalan xerces
jar files into the lib directory almost all of the example apps worked.
My next step was to setup the struts-blank then modify it to get a
Better still, wait for JBuilder 5. It's just around the corner and has
better support for WAR files, etc.
-Original Message-
From: Mark Simms [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 10 May 2001 5:19
To: [EMAIL PROTECTED]
Subject: Re: JBuilder Tags
Upgrade to Jbuilder 4 Enterprise
Thanks for the input Martin. This is helpful. Just curious, what is the
advantage in using the property name as opposed to GLOBAL_ERROR?
- Original Message -
From: Martin Cooper [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 10, 2001 12:02 AM
Subject: Re: Bug in order of
Hi guys, I haven't been participating lately in the mailing list because
I recently moved from the US back to Canada so I haven't had too much
spare time. Any how, now that I am settled in I would like to start
work on the Struts Workflow TODO. I was wondering if anyone other than
my self and
76 matches
Mail list logo