You do understand that SelectAction is actually just a helper, and the
real story is DialogAction, do you? Have you seen the Login Control
example?
On 6/7/05, Dakota Jack [EMAIL PROTECTED] wrote:
SelectAction is really old news and is what all the apps that use
multiple select image buttons do
The properties file should be in the application's classpath, typically
under WEB-INF/classes
-Original Message-
From: Paul Goepfert [mailto:[EMAIL PROTECTED]
Sent: 08 June 2005 07:03
To: user@struts.apache.org
Subject: Question about property files
Just a quick question, I have
How do you dynamically create a select with options for example from a
DB and flag one of the options to be selected.
The only way I can think of is to write my own tag.
Regards
Dave.
This e mail is from DLA Piper Rudnick Gray Cary UK LLP.
The contents of this email and any attachments are
Dave,
You can use the select and options tags provided in the struts-html
taglib
Example :
html:select name=form property=selectedOption
html:options name=form property=collectionOfOptionsValues
labelName= form labelProperty=collectionOfOptionsForDisplay/
/html:select
Regards,
Abhinav
Michael,
I too like Jack concentrated on SelectAction, purely because it was
first in the text.
Looking at your description of DialogAction, I read the first paragraph
about DialogAction and didn't feel it was worth reading further - having
read about SelectAction (on the basis of your
if you're running servlet container that supports 2.4 servlet specs
and you web app is also configured to be of version 2.4, thru webapp
element in your xml:
${myobject}
in your JSP should print it. in scriptlets:
%=session.getAttribute(myobject)%
should work.
session is reference to current
Sorry the late reply, had som problems with me mailserver last night.
*
Why do I need the /DB/home url in web.xml.
Is't this enough url-pattern/HelpDesk/bruger/*/url-pattern in the
security-constraint?
Marc
Adam Hardy wrote:
Sorry the late reply, had some problems with me mail server.
Yeah I got the security-role.
Why do I need action path=HelpDesk/bruger/DB/home ??
Shouldn't this url-pattern/HelpDesk/bruger/*/url-pattern in me
web.xml, just restrict me
It also works as follows;
I have an entry within the struts config file that looks like;
message-resources parameter=com.mycompany.resources.ApplicationResources /
And within the package com.mycompany.resources i have the resource files;
ApplicationResources.properties
How do you write a regular expression for allowing single quotes in a
word eg.
O'reilly
Many thanks
Dave.
This e mail is from DLA Piper Rudnick Gray Cary UK LLP.
The contents of this email and any attachments are confidential to the intended
recipient. They may not be disclosed to or used by
I don't know! It's not clear what you want.
Let me turn the question round: in your web.xml why do you think that
protecting /HelpDesk/bruger/* should also protect /DB/home?
Adam
PS: as an OO developer, your action class's name ToDBAction makes me
writhe in agony - hoping I'm not being
type Status report
message No action instance for path /Admin could be created
description The server encountered an internal error (No action instance for
path /Admin could be created) that prevented it from fulfilling this request.
i am facing these problem
I have properly configured
\' should work
Thanks
Guru
-
As dark as the inside of a needle
-Brodsky
- Original Message -
From: Harland, David [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Wednesday, June 08, 2005 1:07 PM
Subject: How do you write a regular expression for allowing single
Did you check, that your own Action extends the
org.apache.struts.action.Action class?
HTH
John
-Ursprüngliche Nachricht-
Von: shailesh agarwal [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 8. Juni 2005 12:25
An: user@struts.apache.org
Betreff: No action instance for path /Admin could
Hello all,
I have a little problem with displaying an Invalid login message on
my login page. I am using tomcat 5.0.28 and struts 1.2.4
I have a login.jsp that looks like this:
html:form action=login
!-- table stuff mostly snipped --
tdbean:message key=logon.title//td
tdbean:message
My app contains a few forms. Each form has one ActionForm and one
Action class associated. Each time page with form is displayed I see
that ActionForm::reset method is displayed. After submitting I can see
that reset method is launched again, and right after that
ActionForm::execute.
Is it proper
Yes, It extends org.apache.struts.Action class.
I am putting files that I have used:
struts-config.xml
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE struts-config PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 1.2//EN
I have created an array several namevalue objects and put them in the
request object for the html:options to use.
How do I flag one of those options to be selected.
Many thanks
Dave.
This e mail is from DLA Piper Rudnick Gray Cary UK LLP.
The contents of this email and any attachments are
I have a question about the validation in struts.
Imagine that we have:
- jsp page containing the form to be validated
- formbean extending from ValidatorForm
- action to be executed on submit
- validation rules using the validation plugin
If we put the 'validate' attribute to true in the
Hi Peter,
The validation that is basically performed in the approach you have
specified is client side validation.
Please elaborate more why you want to make a server hit before the data
is validated and corrected in Client side itself.
Thanks and Regards,
Arun Sakthi
-Original
Hello,
I have been puzzled by this problem for a while.
I inherited a Struts application which regularly sets collections as
request attributes and accesses them in jsps.
I tried to add Validation to this app using Validator framework and
let the jsp be reloaded if something goes wrong.
Two
Thanks for the warning !
Not all of the properties are shown to the user.
The date gets formatted based on a locale.
I will certainly look into the FormDef.
- Glenn
Hubert Rabago [EMAIL PROTECTED]
07/06/2005 05:43 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Did you include a taglib reference in headerRecherche.jsp? Something
like this:
%@ page language=java%
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean%
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic%
In this case, you need the html
Yes I did.
I have a html:rewrite/ in it that works correctly.
Jean-Marie Tinghir
2005/6/8, Chris Loschen [EMAIL PROTECTED]:
Did you include a taglib reference in headerRecherche.jsp? Something
like this:
%@ page language=java%
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@
Is this the only way to do it ?
I have always never coded anything additional in the getter/setter
methods.
- Glenn
Hubert Rabago [EMAIL PROTECTED]
07/06/2005 05:42 PM
Please respond to
Struts Users Mailing List user@struts.apache.org
To
Struts Users Mailing List user@struts.apache.org
cc
Just as a double check Jean Marie.
You need to have the taglibs in both the resultat.jsp and the
headerRecherche.jsp.
This is how I do my include:
jsp:include page=/includes/header.jsp flush=true/
Do try with the attribute flush to true.
- Glenn
JM Tinghir [EMAIL PROTECTED]
08/06/2005
No /HelpDesk/bruger/* in web.xml should not protect /DB/home.
But roles=admin in
action path=/DB/home
type=wilson.helpdesk.actions.menu.ToDbAction
roles=admin
when the user has the admin role,
should protect it. Should't ??
Marc
Adam Hardy wrote:
I don't
jsp:include page=/includes/header.jsp flush=true/
Do try with the attribute flush to true.
You got it!
Thanks a lot, I was going mad for such a little problem.
Jean-Marie
JM Tinghir [EMAIL PROTECTED]
08/06/2005 08:02 AM
Please respond to
Struts Users Mailing List user@struts.apache.org
In my new application design I am employeeing this strategy and using
custom ExceptionHandler classes to catch, log, and redirect the user
to the appropriate pages. In my Exception classes, instead of a
non-localized string as the exception message, I use a message key
which I can then retrieve
Whats the best place / access method to storing and retriving config
attributes like administrator email addresses and directories to store
uploaded files in a multi-tiered webapp, web.xml? Resources file? Both
servlets and non servlets need to access these values. Opinions greatly
Peter-
I assume you have redirected your forms submittal to your customised
Validator? e.g.
hmtl:form tag displays onSubmit=return validateMyForm(this)
Martin-
- Original Message -
From: Peter Maas [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent:
I will be out of the office starting 06/08/2005 and will not return until
06/13/2005.
I will respond to your message when I return. If you need assistance on
CIT-related matters in the meantime, you can email [EMAIL PROTECTED] or call
919-660-5806.
I agree, my stratagey is a separate XML config file. I've also gotten in
the habit of using Digester to read it. Makes life easier.
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
On Wed, June 8, 2005 8:44 am, Leandro_Dorileo/[EMAIL
Hello all,
I am writing a jsp that retrieves a row of a table in my database and
allows the user to modify the fields using a form. For example, if I have
the following table in my database:
NAME GENDER
John Male
Ann Female
and the following code in my action class
...
RowSetDynaClass
I am populating following simple List in action class and putting that in form
class.
private List getSystemTableList(ConfWizardBean confwizbean, HttpSession
session){
ArrayList outerList = new ArrayList();
for (int i = 0; i 2; i++)
{
I solved it, removing redirect=true from the action-mapping tag in
struts-config.xml solved it.
Ian.
On 6/8/05, Ian van der Neut [EMAIL PROTECTED] wrote:
Hello all,
I have a little problem with displaying an Invalid login message on
my login page. I am using tomcat 5.0.28 and struts 1.2.4
Hi all,
I want to show list of currently logged in users. Now in my idea this is
something which should belong into application context. Putting it in there
Is not too difficult. I do it in my extended ActionServlet. But how do I get
it outta there? What listeners do I use in order to get
Hi all,
I want to show list of currently logged in users. Now in my idea this is
something which should belong into application context. Putting it in there
Is not too difficult. I do it in my extended ActionServlet. But how do I get
it outta there? What listeners do I use in order to get
If you knew the underlying data type associated with each of the
((DynaProperty)col).getName() calls in your example then you could
create the input type appropriate to that data type. So, you would also
need to expose the underlying datatypes to the JSP so that it could
conditionally create the
Le Mercredi 8 Juin 2005 15:44, Nils Liebelt a écrit :
Hi all,
I want to show list of currently logged in users. Now in my idea this is
something which should belong into application context. Putting it in there
Is not too difficult. I do it in my extended ActionServlet. But how do I
get it
Nested properties with DynaActionForms actually require you to nest
objects. :) Using a property name like iterationLength.time would
be like saying getIterationLength().getTime(), and this is what
BeanUtils would try to do.
Hubert
On 6/7/05, Laurie Harper [EMAIL PROTECTED] wrote:
I'm
As you've seen, the dynaClass is required before you use a
DynaActionForm. The dynaClass is what tells BeanUtils what properties
your DynaActionForm has. To create a DynaActionForm with the
DynaClass initialized, call formBeanConfig.createActionForm(). You
can get a formBeanConfig instance
To do this, prepopulate an instance of the form bean that the form
will be using, and set the value of the select field to the value of
the option you want selected.
Hubert
On 6/8/05, Harland, David [EMAIL PROTECTED] wrote:
Sorry I deleted replies by accident
I have created an array
Yes. Is this causing a problem for you? Please note that reset() is
not where you should be prepopulating fields. As it says in the
javadoc:
In practice, the only properties that need to be reset are those
which represent checkboxes on a session-scoped form.
... and ...
You mainly need to
So where is the proper place to prepopulate fields? [I know I am a noob]
On 6/8/05, Hubert Rabago [EMAIL PROTECTED] wrote:
Yes. Is this causing a problem for you? Please note that reset() is
not where you should be prepopulating fields. As it says in the
javadoc:
In practice, the only
That's not the problem. Where do you get your ApplicationContext map from?
Clearly not from SessionBindingEvent. So stick another Observer pattern to
notify your application context?!?
Regards,
Nils
-Original Message-
From: delbd [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08,
Adam, did you manage to read the full description DialogAction? ;-) I
know, I know, that the first paragraph is very generic, but that is
what the action does. Can you suggest some better wording?
I would appreciate if you tried the examples, especially the one
called Login Control.
I guess I
In a matter of a few minutes, I suddenly got three offline messages
with follow up questions. I usually don't mind, though each time I
reply to such messages, I include the text below. In this case, I
thought I'd share these thoughts with the rest of the list.
- - - -
There are very good
Minor additions
:
Hubert Rabago wrote:
1) People on the list help each other out voluntarily.
So thank the people that help you, even if they help you off-line.
If they help you a LOT, thank them even more, especially for off-topic
or RTFM/STFW answers, even MORE especially if you ask a lot
From: Hubert Rabago [EMAIL PROTECTED]
In a matter of a few minutes, I suddenly got three offline messages
with follow up questions. I usually don't mind, though each time I
reply to such messages, I include the text below. In this case, I
thought I'd share these thoughts with the rest of the
Wendy Smoak wrote:
Hubert, when I reply to one of your messages, the 'To:' line comes up with
both the Struts list _and_ you personally. It happens (to me) with several
people on the list, but not everyone. I don't know if it's something on my
end, or something in the messages you're sending,
I don't know if this is a good practice or not, but my app uses two
entries in struts-config. One with validate=true and one with
validate=false. When linking to the page for the first time, I link to
the action with the validation turned off. When submitting the form, I
submit to the
Suzanne Rizzo wrote:
I don't know if this is a good practice or not, but my app uses two
entries in struts-config. One with validate=true and one with
validate=false.
I 've never actually used the validate=true in my code; I have an
action superclass that checks for the request type. If
Yes, that happens with gmail users. Usually though, the first reply
shows *both* struts list and the gmail address, and if I reply to that
and they reply back, then it's just the gmail address. With the three
I refer to, they all just went to me.
If you three are reading this, btw, I'm still
On 6/8/05, Hubert Rabago [EMAIL PROTECTED] wrote:
In a matter of a few minutes, I suddenly got three offline messages
with follow up questions. I usually don't mind, though each time I
reply to such messages, I include the text below. In this case, I
thought I'd share these thoughts with the
[EMAIL PROTECTED] a écrit :
http://wiki.apache.org/struts/StrutsCatalogLazyList
Look at the section: Hand Cranking lazy List in the ActionForm.
This is possible with the version you are currently using.
Actually, the LazyValidatorForm class only exists since struts 1.2.6,
that is why I was
while we're on the subject of mailing list rules/etiquette/pet peeves:
i despise ppl who purposely post messages that are future dated so they
remain at the top of your inbox messages list.
this is the worst offense imho. i promptly delete these without
hesitation.
woodchuck
--- Michael
The section I was refering you to is the Hand Cranking the lazy List in
the Action Form.
This is a small section squeezed in between lazy list information.
This does not require any other class but the ActionForm.
All that is needed is to add code to grow the list and to get the proper
objects
woodchuck wrote:
while we're on the subject of mailing list rules/etiquette/pet peeves:
How about... top posting and NOT trimming the previous post? ;)
At least trim your posts. Please, do it for the archives if nothing else.
There are so many posts that have the previous two, three, and more
Shailesh,
I had a whole set of questions written down before I saw the REAL problem.
Prepare yourself, it's one of those DUH! answers because it was a simple
typing mistake. You listed your action like this:
action path=/Admin
type=shailesh.AdminAction
forward name=x type=/admin.jsp /
hehe, i see your point. but i'm generally neutral on the top posting
issue.
it's nice because everything can be found in one post, esp. if you
haven't been following and just jumped in to the latest post.
but if you have been following the thread, then it's unnecessary.
some threads take on a
Agreed to everything, but perhaps we can think more about what Mr. Smoak
said get more personal replies, personal replies are good because you
can see in your mailbox that there is a reply especially to you and that
would be good you read that (it's only my opinion and I even do that), but
we
I would think so. I'm not as familiar with the internals of BeanUtils
as I'd like to be, but since your form is in request scope, that means
it'll create a new instance upon submission. From that, it'll call
getDependent(). If that returns null, I'm not sure what BeanUtils
would do. I'd bet
I'm pretty sure it's Mrs/Ms Smoak since Wendy is usually a female name (please
correct me if I'm wrong Wendy) :)
-Abdullah
-Original Message-
From: Leandro_Dorileo/[EMAIL PROTECTED]
[mailto:Leandro_Dorileo/[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 12:57 PM
To:
Wendy is my sister's name. If you're expecting her to be a he and not a she,
think again. :)
-David, a man with a SISTER named Wendy. LOL
-Original Message-
From: Abdullah Jibaly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 2:16 PM
To: Struts Users Mailing List
Subject: RE:
Hubert Rabago [EMAIL PROTECTED] wrote on 08/06/2005 02:15:20 PM:
I would think so. I'm not as familiar with the internals of BeanUtils
as I'd like to be, but since your form is in request scope, that means
it'll create a new instance upon submission. From that, it'll call
getDependent().
On 6/8/05, Wendy Smoak [EMAIL PROTECTED] wrote:
How about... top posting and NOT trimming the previous post? ;)
I'm not sure I've encountered an email app where top posting was not
the default. It'll probably be hard to convert entire populations to
put their replies at the bottom if the
But I set up iterationLength as a HashMap; I thought BeanUtils could
handle maps, so it'd do getIterationLength.get(time). Perhaps I'm
mixing up BeanUtils and JSTL semantics.
L.
Hubert Rabago wrote:
Nested properties with DynaActionForms actually require you to nest
objects. :) Using a
If use the tag like this
s:commonsValidator type=mask mask=[0-9*#NPX]$ arg=To
message=#{messages['lcrArsNplNode.nplNumberNotMatch']}
server=true client=true /
I need implement the server side validation ? or this is inside de shale?
All validations can
Execuse me Wendy if you are she and not he, I've never known anyone called
Wendy (Internet troubles);-(
Dorileo
David G. Friedman [EMAIL PROTECTED]
08/06/2005 14:19
Favor responder a
Struts Users Mailing List user@struts.apache.org
Para
Struts Users Mailing List user@struts.apache.org
cc
I have beat this situation to death without coming up with an answer.
I want to create a tile layout that includes a composed tile in the layout
definition.
Any suggestions would be appreciated
It needs to look like
table border=0 width=100% cellspacing=5
trtd colspan=2
use tiles:insert attribute=navi/
the navi is defined in tiles definition file like header does.
Ray Madigan [EMAIL PROTECTED] wrote:I have beat this situation to death
without coming up with an answer.
I want to create a tile layout that includes a composed tile in the layout
definition.
Any
Ray,
What architectural problems prevent you from either using a TilesAction,
instead of a regular action, or a tiles controller to look those things up
and set them for you so the page doesn't need to be 'that smart?'
Regards,
David
-Original Message-
From: Ray Madigan [mailto:[EMAIL
header is defined in the page that implements the layout. I don't every
page to add the line to compute this attribute if I don't have to.
Thanks
-Original Message-
From: Xinsheng [mike] Huang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 08, 2005 1:57 PM
To: Struts Users Mailing List
I'm still spinning my wheels on this -- does anyone have any ideas?
Quick synopsis: I have localized i18n messages defined in my tiles
definitions which are sometimes empty. I need to test that the value
associated with a given key is not empty before I proceed with further
processing. I can test
hihi all,
i noticed that the Struts 1.2.7 distribution includes many JAR files
with the same name as the Jakarta Commons project JAR files.
however, i discovered that there are real differences between them.
for example, there are a lot more classes in the Struts
commons-fileupload.jar than in
I have a fairly simple situation where a set of pages are used throughout
the application. Based on a set of crriteria known about the user, I want
the page to use a set of common tiles to fill some parts of the page, like
the header of the page. Other parts of the page are filled with specific
i noticed that the Struts 1.2.7 distribution includes many JAR files
with the same name as the Jakarta Commons project JAR files.
however, i discovered that there are real differences between them.
for example, there are a lot more classes in the Struts
commons-fileupload.jar than in the
Ray,
If Xinsheng [mike] Huang's suggestion about using the JSP ($) dollar sign
notation doesn't work, I'd suggest looking at giving your template a tiles
controller so you can set the navi attribute to some object and scope. That
way the controller can specify the insert automatically before the
Well I've read it now ;)
I see you've based the Action around the Post-Redirect-Get pattern. I
use it all the time. It's good.
I don't understand how you managed to get the page with validate-error
not to make an entry in the browser history. I see you've turned off
automatic validation but
I guess I'm not sure about Mike's suggestion.
He wrote:
use tiles:insert attribute=navi/
the navi is defined in tiles definition file like header does.
Is this in the layout file?
maybe im mixing up which file is which.
I have a layout definition that includes the code in my original post.
Ray:
Did you check out this article by Chuck Cavaness?
http://www.oreilly.com/catalog/jakarta/chapter/ch14.html
Martin-
- Original Message -
From: Ray Madigan [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Wednesday, June 08, 2005 8:59 PM
Subject: RE:
--- Leandro_Dorileo/[EMAIL PROTECTED] wrote:
I think (not sure) their versions are different. Take a look at the
dependencies section in the struts release page[1] and see if they
are the
same ;-)
1- http://struts.apache.org/userGuide/release-notes.html
Dorileo
thanks! i realized
have been trying to configure my NetBeans 4.1 to use subversion (SVN)
i've downloaded the svn module (beta) but can't seem to figure out how
to configure it.
the website (http://www.apache.org/dev/version-control.html) does not
_seem_ to give how to annonymously check out data.
if anybody
hi,
if u want to prepopulate the form from form then the proper place is
constructor but remember 2nd time u wouldn't get the form populated as
to resuse the form actionservelet call the reset method befor resuing
any existing form. so u can place same code into the reset method.
the best way is
I read the paper
http://www.browsermedia.com/devcorner/whitepapers/tiles201.jsp
which explains how to add attributes into a tile of a definition then it
invokes the page.
Unfortunatly all I want to do is replace the page that the layout uses to
render the layout, without the calling page having
86 matches
Mail list logo