Hi I have the following action defined:
action path=/admin/account/create parameter=create validate=true
unknown=false scope=session
type=com.tecmath.cms.mt.struts.UserDataAction name=userDataBean
set-property property=test value=test /
forward name=failure path=accountDef
Apologies if this topic has been covered before but I've searched the
archives and am still unclear.
I was wondering if there is an elegant way of having ActionErrors appear in
an input frame (should there be errors within the form) but having the
results of the action (a db lookup for example)
Hi,
you add the attribute className in the xml (struts-config.xml)
with your own class derived from ActionMapping, say
com.tecmath.cms.mt.struts.Mapping
which implements the method
public void setTest(String param)
{
//usually ...
this.test = param;
}
and you can use test as you
Hi
This question has probably been asked before, but I can't find it anywhere
in the archives :-(
I am trying to create a basic proof-of-concept demo using struts. Everything
is going great except I can't seem to get multiple languages going. I am
trying to create English (en_IE) and Swedish
You can add a user defined language in IE, say 'ss_IE' and make it the top
level language.
Add:
html:html locale=true
to JSP and then bean:message will pickup the correct resource file.
probably not quite what you were after but an alternative!
Rob
If you have an ear or war you should be able to deploy just like any other
web app. What do you mean by configure'? Beware that if you have a version
prior to 4.0.2 you will need a 'patched' version of struts.jar
Rob Breeds
Hi,
I just installed Tiles and it does not work because I have the wrong XML
parser.
Does anyone know which is the correct version?
By the way, I installed JDK 1.3.1. for Win2000, Struts last stable release,
TomCat 3.2.3
Ciao
Thomas
--
To unsubscribe, e-mail: mailto:[EMAIL
Thanks Rob,
Unfortunately I don't really know javascript at all - which is why I was
hoping to be able to do this using jsp's only and the struts framework
(which I have oooh, all of 2 weeks experience with now!).
I guess there's no easy way of doing this without resorting to javascript
hello what kind of patch is that?
-Ursprüngliche Nachricht-
Von: Rob Breeds [mailto:[EMAIL PROTECTED]]
Gesendet am: Tuesday, January 29, 2002 2:40 PM
An: Struts Users Mailing List
Betreff: Re: Struts on WebSphere 4.0
If you have an ear or war you should be able to deploy just like any
I think the problem is the ss. This is the country code not the language
code. I believe you have to use the format:
langaugecode_COUNTRYCODE_VARIANTCODE. The language code is required but the
other codes are optional. So you would use something like:
en_US or simply en
sv_SE or simply sv
Where
I have a better solution and unsubscribing all the time.
Subscribe to this yahoo group
http://groups.yahoo.com/group/struts
I set it up yesterday to archive all of the struts messages.
You won't receive any emails and you can just go to this website anytime to
view all struts-user messages since
Thanks you all. Turns out it was a combination of two things:
- My deploy script wasn't copying the localised resource file to the war
file
- It seems you do have to use a valid language/country code, although i'm
not 100% sure of that at this stage.
Cheers
Tim Wild
-Original
I have the following sequence of forwards.
(multipart/form-data) (handles multipart request) (handles standard get/posts)
form.jsp formaction --- viewaction
initially the request is enctype multipart/form-data the formaction
handles the processing of the
Does anyone know how to call a javascript function from an html link w/o causing the
parent page to reload, but still having the cursor change to a pointing finger when it
goes over the link?
I'm trying to implement the following basic situationuser clicks on a link, a
child window pops
it's a recompiled struts.jar with some function removed to make it work
with WAS 4.0.1 and earlier (which had a bug preventing struts from
working). Version 4.0.2 of WAS resolves it and you can use the standard
download.
See: http://jakarta.apache.org/struts/userGuide/resources.html for link to
this looks quite impressive.
Some thoughts...
The examples that you give should be more than just a
banking application I think.
I believe you should have some value-add in the book.
For example -- when to use session storage vs request
storage.
I know there are new featues such as
Make the href anything you want (# will work), but in the onclick handler,
do this:
onclick=openWidgetWindow();return false
the return false statement keeps the browser from following the link.
for a ridiculously complete discussion of the topic, including handling
non-javascript enabled
John...
You should be able to use something like this:
a href=javascript:openWidgetWindow() target=_selfClick here to see a
listing of Widgets/a
I think this will work. This will make the pointing finger when you do the
roll over and will link back to the calling frame since the target is
HUH?
what about the other online lists?
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 6:03 AM
To: 'Struts Users Mailing List'
Subject: RE: VIRUS WARNING - new photos from my party!
I have a better solution and unsubscribing all
I have now progressed further, and run into a few questions which I would
appreciate help with in order to be nudged in the right direction.
After a bit of work with the Struts basic JDBC-connection pooling system
and the struts-config.xml file, I found out that I can get access to my
database
I think that it is bad practice to to database connection inside the jsp
page. Make a seperate bean or different class that handles the
connection will help you in long run.
-Original Message-
From: Thorbjørn Ravn Andersen (Scandiatransplant)
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday,
This one worked beautifully! Thanks for the help!
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 8:55 AM
Subject: RE: Non-Struts Related JS Question
Make the href anything you want (# will work), but in the onclick
handler,
do
Hello!
My party... It was absolutely amazing!
I have attached my web page with new photos!
If you can please make color prints of my photos. Thanks!
begin 666 www.myparty.yahoo.com
M35J0``,$__\``+@`0```
Use CCS - only works in standards-compliant browsers to my knowledge:
a {
cursor: pointer;
}
--- John M. Corro [EMAIL PROTECTED] wrote:
Does anyone know how to call a javascript function from an html link w/o
causing the parent page to reload, but still having the cursor change to a
I am in the design phase of an application that will need to handle
100's and more likely 1000's of users simultaneously. The application
will consist of the typical create, edit, and retrieve functions for
information stored in a database. My question concerns how to design my
Action classes.
This is an intranet app and the popup won't be an issue. The popup acts as
a simple Yes/No dialog box for the app. I'll try the self.close approach.
Thanks for the responses.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 5:42 PM
That's weird because, I have been reading/posting to this list for at least
3 months and I have not received a single SPAM. Maybe the list just hasn't
been parsed recently, and I get to look forward to that crap later on! [Woo
Hoo!]
Nathan Anderson
-Original Message-
From: Barr, Scott
Pete,
You may want to read Boris Lublinski's article, The Key to Superior EJB
Design in January's Java Developer's Journal, pp. 20ff. While not
directly addressing Struts or servlets, he has some very enlightening
incites into data object design.
Mark
-Original Message-
From: Pete
Hi Matt,
I did not rename the war files, though I probably should have. The file
struts.jar contains all of my changes. I'll make a note to rename it for
the next release.
As for the source, it'll be handy to download if you need to do any
debugging.
Let me know how it works for you and
With an application like this, wouldn't the critical path (in terms of any
performance bottlenecks) be more along the lines of your database
communications? I've been finding that any bottlenecks I've had regarding
performance were almost always due to hitting the database in an inefficient
Indirectly yes. A declared exception (Checked) forces the caller to
implement code to check for that exception. So there is overhead to the
client and it can make the API more complex for the client. Generally, throw
a checked exception for conditions the caller can expect to recover.
Unchecked
Hi guys,
Does any one knows how to send strigs to a javascript function...
I have a function that receives three string parameters and what I'm trying to do is:
html:button property=oldDate value=checkDate
onclick=SelectDate(oldDay,oldMonth,oldYear)/
But of course, it's all mess up the
So, if I understand you correctly, placing a throws clause in the
signature for a runtime error does not burden the client, whereas the same
for a checked exception will burden the client (force the client to traverse
the exception tree)?
Does this operate similarly within a try-catch block?
Have you tried to escape the quotes with a \ character? Like this:
html:button property=oldDate value=checkDate
onclick=SelectDate(\oldDay\,\oldMonth\,\oldYear\)/
Nathan Anderson
-Original Message-
From: Marcelo Caldas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 9:23 AM
Greetings:
I have used this type of syntax:
onclick='SelectDate(%= oldDay %,%= oldMonth %,%=
oldYear %)'/
Note the single quotes on the outside.
Marcelo Caldas [EMAIL PROTECTED] on 01/29/2002 11:22:34 AM
Please respond to Struts Users Mailing List [EMAIL PROTECTED]
To:
Follow up:
This actual working code I have used with a static constant
onclick=submitReportForm('%= FcJspValues.REPORT_ACCOUNT_PERF_DATA %')
Though I think both would work..
[EMAIL PROTECTED] on 01/29/2002 11:35:43 AM
Please respond to Struts Users Mailing List [EMAIL PROTECTED]
Not quite. Placing a throws clause of a *RuntimeException* will not cause a
compile error, but it is not necessary - it misleads the caller into
thinking they should program for it. Its best to just javadoc the
RuntimeExceptions with @throws, and not to declare them in the signature.
Bottom
Thanks for the input; all of it is right on track of what others have been
mentioning. I plan to tackle many of the more finer-grained issues like
request versus session storage, when to forward versus redirect, wizards,
etc... I'm going to try to wrap them into real-world, albeit small,
Can somebody tell me if it is possible to use a scriptlet with the variable
from the iterate tag
For example iw ould like this :
logic:iterate id=listeArticlesCategorieItem name=listeArticlesCategorie
property=articles scope=session
%=listeArticlesCategorie.size()%
/logic:iterate
--
Hi,
Can someone tell me if he has integrated the Pager tag (pager-taglib-1.1) in
a struts iterate tag for paging results like alta vista in a struts iterate
tag.
I do it, but the pager:item tag don't understand the iterate tag as a for,
so no index pages construct.
Perhaps somebody use another
Can somebody tell me if it is possible to use a scriptlet with the variable
from the iterate tag
For example iw ould like this :
logic:iterate id=listeArticlesCategorieItem name=listeArticlesCategorie
property=articles scope=session
%=listeArticlesCategorie.size()%
/logic:iterate
Greeting:
I was reading with interest - the other disscussion on this topic (RE:
Adding/Modifying parameters in the Request object, ) and still need a bit of
clarification.
I am starting to convert a large model 1 app to struts.
All of our action logic is in jsp control files.
we pass
Did you convert all the struts-*.war files to use your new framework?
Initially looking at these war files, it doesn't appear so. Reference
implementation of a framework are always nice to look at ;)
Also, would you use your framework to construct an application like the
struts-example - where
Hello,
Please excuse this slightly off topic message, but I felt that this
discussion could be valuable to the group. Please ignore if you find it too
OT. I don't mind suggestions for other forums for this question.
My questions are listed at the end of this email, the rest is background.
No, I did not convert any of the other struts-*.war file to use the
XML/XSLT extensions. That would have requirement more time that I had to
put this together.
However, there is no reason why (other than bugs) that the struts-*.war
files should not still work as they were intended (using
Since my staff begun to constructing web applications with struts,
the major problem was a tool for this purpose.
Can somebody know a visual tool for struts development?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Is there any one who may send me a real JSP file with a form with the
struts tags of
text,
radio,
textare,
checkbox,
select,
hidden
?
Thanks,
---
Henry Lu
MCITphone: (734)
I haven't looked into this but here is one:
-Original Message-
From: John Yu [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 23, 2002 8:29 PM
To: Voss, Greg
Subject: Re: Camino documentation
Hi Greg,
Camino's distribution, available at
I must be missing something...
I have a class, Foo, whose data I want to display in a form. I have
defined an action (NavigateAction) that is invoked when the user makes a
selection which will move him/her to the page to disply Foo. This action
locates the correct instance of Foo and puts it in
Notepad? VI? EMACS? ;-)
In my 10-member dev team, just about everybody uses something different:
EMACS (really!)
JBuilder 6.0
Forte EE 3.0 (me)
JDeveloper 3.1
HomeSite 4.5
VisualAge 3.0
I don't know of any IDE that supports the particulars of Struts at this
time.
Mark
-Original
You can try out the Struts Console that I developed.
It has a tool/wizard for converting existing HTML/JSP
pages into Struts JSP pages. This is in addition to
the config file management stuff it has.
http://www.jamesholmes.com/struts/
-james
[EMAIL PROTECTED]
--- Rubens Gama [EMAIL
I also download the Camino's distribition.
And I thought it was weak.
Well, dreamweaver also have support struts,now..
But it still have problems related to nested tags...
-Mensagem original-
De: Voss, Greg [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 29 de janeiro de 2002 17:41
Bryan,
Isn't this really a question of how you want to do it?
You may want to duplicate the Foo bean interface in the
FooBean form bean, or you may access the Foo bean directly
from the session in your JSP.
Struts form beans provide a convenient way to represent
the values on a page, as well
Also, subscribing to a Yahoo group means giving an e-mail address. DO NOT give
an address that you care about. I had a pristine (no spam) address that I used
on Yahoo. It was the only place I had ever used it other then personal e-mails,
and now I receive 1 or 2 pornographic spam messages a
Hi, the following tools are the result of some hints I have got here and
there, in specialized sites and forums, but I have not used any of them yet:
http://www.objectwave.com/html/Main.html
http://www.objectventure.com/products/objectassembler.html
http://www.scioworks.com/scioworks_camino.html
I myself have been a member of various yahoo groups for the past 2 years and
have not had
spam problems with the email addresses that I use. I don't use the yahoo
email account, but instead use my own (you can link your own email to your
yahoo account). I agree that having a yahoo or hotmail
Since you want to referenct the object listeArticlesCategorie in the iterate tag, you
must have such an object in scope, so %=listeArticlesCategorie.size()% should work.
It would, in this case, write the value on each iteraration, I think. I've done
something similar when debugging, to see if
We have a different methodology that seems to work pretty well for us. Our
process is almost reverse of yours, since we stress the software engineering
and coding side of things and then worry about look-and-feel.
Part of our engineering phase is to determine what our screens are, what a
user
Not sure if this is the right place to post, but there
is no commons-user list. Has anyone tried to
integrate the workflow (from commons-sandbox) with
struts? I'm stuck just trying to deploy the wizard
test application. A java.lang.NoSuchMethodError at
Another alternative to consider is Enhydra XMLC. As explained on the web
site:
Enhydra XMLC radically simplifies web development by cleanly separating
presentation from code. Enhydra XMLC parses a HTML file and creates a Java
object that enables an application to change the HTML file's content
Have you ever read, The Inmates Are Running The Asylum?
Mark
-Original Message-
From: Jason B Menard [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 4:36 PM
To: Struts Users Mailing List
Subject: Re: Process in a struts project
We have a different methodology that seems to
Subject: Re: Process in a struts project
From: Vic Cekvenich [EMAIL PROTECTED]
===
Great.
A quick and dirty approach:
1. Have a prototype in HTML. Do all possible output/reports.
2. Look at the HTML and design your SQL data model relationships and
attribute it.
3. Rename *.HTML *.JSP
4.
I must apologise, the code for the SelectTag class I last posted was so wrong, it
wasn't funny. :(
Please ignore this terrible piece of code, I'll post a new, properly tested *blush*
version ASAP.
-Original Message-
From: Jakkampudi, ChandraseKhar [mailto:[EMAIL PROTECTED]]
Thanks for everyone's help. I was using v4.0.0 of WebSphere. I upgraded to
4.0.2 and now everything is working.
Lynn
-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 29, 2002 8:40 AM
To: Struts Users Mailing List
Subject: Re: Struts on WebSphere
Hello,
Using the STRUTS framework, a user can use html:cancel/ to cancel forms.
As I understand it, this action places a value as a request parameter with
the name of the constant at
org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY. If I use this
cancel button for navigation and I
Sorry to keep bugging this list, but you have all been so helpful...
I am getting an HTTP error 500 (internal server error) sometime after
the validate method in my form bean returns. I see all of my logging
messages, and there is one entry in the errors list. I see no indication
of problems in
Does this approach work for you?
Make sure your messages are filled in
(eng.admin.group.error.groupname.required) etc.
You should have no need to play with Request, the GET/SET methods should be
populated.
-Alex
public ActionErrors validate(ActionMapping mapping,
Alex-
I do need to get the session object from the request, so that I can
insure that an object has been set for the operation. It seems to make
no difference if I use it or not - I tried just creating/populating the
ActionErrors object and doing nothing else, and I got the same
results...
Do you have error.noCurrentObject in your
ApplicationResources.properties file? In your struts config, if there
is a validate=true then there needs to be and input=a jsp or action to
populate that jsp
cheers,
Phil Maher
-Original Message-
From: Bryan P. Glennon [mailto:[EMAIL
Does anybody know of any design considerations that would affect the
performance of a method that declares a throws in its signature vs. an
exception that is either caught or thrown new in the try-catch block?
Mark
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands,
Thanks for yor response Steve.
But then i think you have declare the Vector in the jsp:include tag before.
I dont understand why i have the message that the variable
listeArticlesCategorie was not found, because i declare it in the iterate
tag.
- Original Message -
From: Carter, Steve
Try this web page:
http://jakarta.apache.org/struts/userGuide/building_view.html#form_input
and explore this:
http://jakarta.apache.org/struts/userGuide/building_view.html#forms
It's all documented, if not all adequately...
There are even examples in the Struts binary distribution.
Thanks Michelle,
great idea!
-Original Message-
From: Michelle Popovits [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 30 January 2002 1:03 AM
To: 'Struts Users Mailing List'
Subject: RE: VIRUS WARNING - new photos from my party!
I have a better solution and unsubscribing all
Hi
I have an initialisation servlet which is run when my web app start up.
public class WebAppInit extends HttpServlet
{
public void init()
{
}
}
All it does is to set some application wide beans. I need to be able to
access the database I have defined in my struts-config.xml
Of course I can imagine writing a junit test suite on my own, but I was
wondering if there's something a bit more 'true and tested' out there.
Anybody found the holy gral of testing struts code? ;-)
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
I'm just a newbie to Struts and find it very interesting, I just want to ask
where is it best to start learning struts from... Is there a book out there
that I can buy
Thankz
Chetan
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL
Hi all.
I'm using an Action to figure out which document I need to serve, and
the document could be a pdf file. The problem is that when I forward to
a PDF file, the browser still thinks that it's on the action (get.do),
and tries to save the file as get.do. I've set the content-type so
it'll
tirsdag januar 29 2002 kl. 01:31 AM skrev Jon Ferguson:
Hey Adrian,
Take a look at Ed Hill's cool table taglib:
http://edhill.its.uiowa.edu/display-examples/
This looks like a real gem!Thanks for pointing it out.
This is an excellent list - lots of traffic, but worth it.
--
tirsdag januar 29 2002 kl. 02:53 AM skrev Antony Stace:
I have a Struts project with a number of files and want to compile the
source files quicker.
Does anyone know if the java compilers and runtime environments included
with Suns JDK 1.3 and 1.4 systems
take advantage of a
79 matches
Mail list logo