Sorry, I couldn't resist.
On 7/26/07, souravm [EMAIL PROTECTED] wrote:
Regarding going for JSF due to componentization, I'm again not sure what
additional componentizations JSF does compared to struts. Apart from the fact
that JSF does not need a layer like Action Classes, all other
There are differences in how a user interacts with html:button and
html:submit. For instance, pressing enter on some fields can trigger
a submit button, but not a regular button. You can get the best of
both worlds letting your javascript method determine whether the
submit should happen at all
Your form field will come in as String. If you'll be storing the data
as string as well, maybe you don't need any more conversion between
the two.
Hubert
On 4/26/07, Givler, Eric [EMAIL PROTECTED] wrote:
I was reading on the Formdef site about using a formatter (converter) for
handling a
the incoming form.
Hubert
On 4/26/07, Givler, Eric [EMAIL PROTECTED] wrote:
Thanks for the quick response.
The field in the db is to be stored stripped of formatting. However, the
display and entry of the field should include the formatting.
-Original Message-
From: Hubert Rabago
the source and
destination types. Even if they are the same data types, I can at least see if
the destination type is a subclass of Actionform and format accordingly. Sound
ok?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 26, 2007 12:37 PM
The fields of action forms, including DynaValidatorForms are populated
from request parameters, and these values are all in String variables.
I suggest using a String variable for the dyna validator form field
as well, and just parsing it to get the java.util.Date equivalent when
you use it in
Benedict [EMAIL PROTECTED] wrote:
I believe you could try to do this in the form's constructor or reset()
method?
Hubert Rabago wrote:
Are you talking about prepopulating the form? Yes, a FormUtils method
helps with that. I don't know if that qualifies as manually
populating the form, though
-- Initial Header ---
From : Hubert Rabago [EMAIL PROTECTED]
To : Struts Users Mailing List
user@struts.apache.org
Cc :
Date : Thu, 18 Jan 2007 09:52:57 -0600
Subject : Re: Form population and locale
On 1/17/07, Zero [EMAIL PROTECTED] wrote:
Hi everybody
On 1/17/07, Zero [EMAIL PROTECTED] wrote:
Hi everybody,
I use Struts 1.2.9 and I would like to know if there is any
way to link the user locale (available with
RequestUtils.getUserLocale(HttRequest)) with the form
population process.
In fact, I have many forms which have date field (with the
If not this specific implementation, an otherwise clean way to handle
view preprocessing after a validation failure. It can build on the
action-forward-specific command chain, but a solution that's more
tightly integrated with action objects should be considered as well.
Hubert
On 11/30/06,
Did you declared the variable that holds the 1896 / 100 value as int?
On 11/28/06, robin bajaj [EMAIL PROTECTED] wrote:
Sorry I forgot to mention,
I am actually dividing the 1896 cents by 100 before the jsp page
to make the value 18.96 and then display it using the formatkey as
$18.00.
I would
If you consult the documentation for the reset() method [1], you'll
see it's mainly for resetting checkbox values:
This method is not the appropriate place to initialize form value for
an update type page (this should be done in a setup Action). You
mainly need to worry about setting checkbox
I think he's looking for:
action path=/showListsOfLists
forward=listsOfLists.jsp/
Daniel, ForwardAction is no longer needed because you can now forward
directly without using an Action class.
Hubert
On 11/21/06, Laurie Harper [EMAIL PROTECTED] wrote:
daniel blanco cuadrado wrote:
Struts is getting confused by:
public List getSkills() {
return skills;
}
public void setSkills(Product skill) {
this.skills.add(skill);
}
The getter and setter should be consistent.
-
Hmm... I just looked at the link you sent and it looks
Adam,
Try adding a getResultsPage() that doesn't take params and always
returns a valid collection. (Throw in the setResultsPage() that
accepts a collection as well.)
Hubert
On 11/17/06, Adam K [EMAIL PROTECTED] wrote:
This has been driving me nuts for the past little bit.
I have a page that
cause. Would it
be correct in stating that this will not work using ActionForm (what I was
using) and that I must instead use DynaActionForm ?
Thanks for the time thus far.
On 11/17/06, Hubert Rabago [EMAIL PROTECTED] wrote:
Adam,
Try adding a getResultsPage() that doesn't take params
So what does happen when you submit the form? Are you getting NPEs?
By the time Struts attempts to populate the form bean, the nested
forms should already be instantiated. You should have getters and
setters for af1 and af2, and getAf1() and getAf2() should not return a
null. This could be an
]
Author of Practical Ajax Projects With Java Technology
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
On Fri, September 22, 2006 1:10 pm, Hubert Rabago wrote:
So what does happen when you
- http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
On Fri, September 22, 2006 1:10 pm, Hubert Rabago wrote:
So what does happen when you submit the form? Are you getting NPEs?
By the time Struts attempts to populate the form bean, the nested
it!
On Fri, September 22, 2006 2:53 pm, Hubert Rabago wrote:
It still sounds like Struts is getting nulls for the subbeans when it
tries to populate subbean.fieldX. Put some more logging, this time in
the getters for the subbean in MasterForm, and log what it's
returning.
Hubert
On 9/22/06
On 8/2/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
On 7/20/06, Hubert Rabago [EMAIL PROTECTED] wrote:
FormDef support nested beans, and nested collections of beans. If you
had a nested Address object, your form would look like:
html:text property=name/
html:text property=hireDate
typically be
through Commons Validator (like most dyna forms). Conversion happens
based on convention but can be configured by the user.
Hubert
On 7/20/06, Hubert Rabago [EMAIL PROTECTED] wrote:
(was: Is there any direct link between model and view in struts..)
On 7/20/06, Michael Jouravlev
(was: Is there any direct link between model and view in struts..)
On 7/20/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
Another library,
FormDef, can build a dynaform based on properties of nested business
object
Hey Michael,
Just thought I'd set the record straight.
FormDef does not
That's how I do it most of the time. If your POJO is in session
scope, your Action won't even have to do anything.
I usually only use ActionForm when there's a corresponding HTML
form. If I'm just displaying data on the page, I just pass the
POJO.
Hubert
On 7/18/06, Mississippi John Hurt
On 7/17/06, Michael Jouravlev [EMAIL PROTECTED] wrote:
On 7/17/06, Adam Hardy [EMAIL PROTECTED] wrote:
In fact, in Struts 1.3, some of the same convention of configuration practices
are applied in the configuration files: you can define mapping conventions in struts-config.xml
without having
Do you mean something like ActionRedirect?
String key = task;
String value = displayAccountDetails; // this value changes
return new ActionRedirect(mapping.findForward(fwdDetail))
.addParameter(key, value);
It still won't allow you to redirect to a tile, though.
Hubert
You have a few options, and most of them are described by Rick R's
Validate Manually article [1]. I would avoid the first three and
only consider the last four. There's a couple of other ways to do
this but you should be able to pick an appropriate solution from
Rick's list.
Hubert
[1]
This topic has come up several times already on this list. Try
searching one of the mailing list archives listed on
http://struts.apache.org/mail.html#Archives.
On 7/8/06, Abhimanyu Koul [EMAIL PROTECTED] wrote:
hi all!
can anyone tell me about a good and cheap struts(java) web hosting
On 4/28/06, Craig McClanahan [EMAIL PROTECTED] wrote:
Yes. The way to do this would be to define a phase listener for Render
Response phase, and do your data collection in the beforePhase event
handler. You also have to remember that your listener is going to receive
beforePhase() calls for
On 4/28/06, Craig McClanahan [EMAIL PROTECTED] wrote:
Sorry for not being clearer.
You can indeed register a listener with a phase-listener declaration --
you get an application wide singleton that has the same lifetime as your
application. However, it's also possible to add a phase listener
On 4/13/06, Craig McClanahan [EMAIL PROTECTED] wrote:
Not without taking the JAR apart and removing the faces-config.xml that is
there. Auto-loading such files is a feature required by the JSF spec.
Craig
Thanks Craig. I knew it was in the spec, I was just curious if there
was a way around
Rick,
My tiles:insert uses name instead of attribute.
tiles:insert name=header flush=false/
Then again, I'm no Tiles expert and I don't know what attribute is for.
Hubert
On 4/14/06, Rick Reumann [EMAIL PROTECTED] wrote:
I've used Tiles in the past. Started to implement it in this new app,
references my tiles def containing
put name=title value=Test/. Perhaps the f:verbatim is the
answer to my problem.
Perhaps you could include your /baseTemplate.jsp in your response.
Thanks for your help.
Dick
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent
On 4/11/06, Gary VanMatre [EMAIL PROTECTED] wrote:
From: Hubert Rabago [EMAIL PROTECTED]
I request /myapp/testing.jsf which renders ok.
I type in a value in a text field and submit the form.
In the RI's ViewHandlerImpl.restoreView(), it's looking for
viewid=/testing.jsp, but the viewid
I'm including shale-tiles.jar in my app, but overriding the
TilesViewHandler with my own implementation. However, just including
shale-tiles.jar in the app autoloads the META-INF/faces-config.xml,
which loads Shale's TilesViewHandler.
Is there a way I can include shale-tiles.jar but not autoload
I thought it would have to be something like that.
Thanks, Gary.
Hubert
On 4/11/06, Gary VanMatre [EMAIL PROTECTED] wrote:
I've not made time to check out the shale tiles plugin but I know that the RI
and Myfaces do handle the viewid differently. This is a bug in the RI.
Myfaces will
I'm trying to use Shale-Tiles with RI and I'm having trouble submitting forms.
The page renders okay (once I start using f:verbatim all over the
place), but the submit doesn't work.
I stepped through the code and it looks like there's a viewid mismatch.
Here's my tile definition:
definition
Al,
Not everyone who posts on the lists are insiders.
If you want some insider info, go to the actual people doing the work,
like Don Brown.
http://marc.theaimsgroup.com/?l=struts-devm=114369603519450w=2
Hubert
On 3/30/06, Al Eridani [EMAIL PROTECTED] wrote:
On 3/29/06, Craig McClanahan
The primary motivation for the recent 1.2.x releases were security
issues [1] [2]. Because of this, the goal was to minimize possible
upgrade issues, so the changes were limited to security fixes.
The upgrade notes on the wiki for 1.2.8 and 1.2.9 [3] mentions that
the user may wish to upgrade
Maybe you can leverage the LazyActionForm:
http://struts.apache.org/struts-action/userGuide/building_controller.html#lazy_action_form_classes
Hubert
On 3/24/06, Will Hartung [EMAIL PROTECTED] wrote:
Simply put I have a need for a configurable form that can have any mixture
of fields on it
You know, you're right. I don't know why we list those there since
DynaActionForm can support any type. (pause, think.) Hmm, maybe next
week I'll find time to fix that. (Patches to docs are welcome!)
Anyway, I think you missed a statement a few paragraphs down the same
section: And, of course,
On 3/24/06, Rahul Akolkar [EMAIL PROTECTED] wrote:
On 3/24/06, Hubert Rabago [EMAIL PROTECTED] wrote:
You know, you're right. I don't know why we list those there since
DynaActionForm can support any type. (pause, think.)
snip/
The intent probably was to mention that those converters
On 3/24/06, fea jabi [EMAIL PROTECTED] wrote:
thankyou for your response and clear expaination.
If I use String for the formbean do I have to convert it to Double before i
validate?
Is there an easier way to convert all form-properties in the form at the
same time?
Yes.
I'm not sure how the books didn't fit your needs, but maybe you can
give this a try: http://www.learntechnology.net/
It's one of the most common tutorials we pass around in here.
Hubert
On 3/24/06, Andreas [EMAIL PROTECTED] wrote:
Hi, I'm a newbie in Struts so I'm looking for a struts tutorial
: Hubert Rabago [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
To: Struts Users Mailing List user@struts.apache.org
Subject: Re: formbean of double type value chages when submitting the form
Date: Fri, 24 Mar 2006 08:49:50 -0600
On 3/24/06, fea jabi [EMAIL PROTECTED
I wouldn't subclass ActionServlet just for this. Try doing this in a
Struts plugin instead:
package edu.uga.itos;
public class HobbsPlugIn
implements PlugIn {
public void init(ActionServlet servlet, ModuleConfig config)
throws ServletException {
String
OOPS! Copy-paste busted.
I meant to say, in your struts-config.xml:
plug-in className=edu.uga.itos.HobbsPlugIn/
:D
Hubert
(ps. what? you think I have all this in memory?)
On 3/24/06, Hubert Rabago [EMAIL PROTECTED] wrote:
I wouldn't subclass ActionServlet just for this. Try doing
If you're looking for the User Guide for 1.3, you can get to it from
the Struts Action Framework page. On the nav menu on the home page,
the Frameworks section has a link to the Action and Shale
frameworks.
From the Action page, a link to the User Guide is available under the
Quick Links
Since no one has mentioned it...
Vaneet, before posting your questions, please read the guidelines we
have for the list on http://struts.apache.org/mail.html
Hubert
On 3/8/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I advise taking out the disclaimer. The addressee is a bot, and if you
The FormDef version that has built-in support for nested beans
actually requires Struts 1.2.7 or higher.
I'm not aware of a concise document that covers what you're asking.
However, there are upgrade notes you can check for upgrading from 1.1
to 1.2.4, then from 1.2.4 to 1.2.7 [1]. There's not
Hans,
You're using request scope for your form. When Struts processes the
submitted form, it will create a new instance of your ActionForm. The
question now is, is the new instance ready to deal with setting values
on your ArrayList field? Struts will not instantiate that list for
you, it
On 3/6/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
form-bean name=SalesProspectForm
type=com.globallink.glr.dataentryweb.form.AddSalesProspectForm
public class AddSalesProspectForm extends ValidatorForm
form name=AddSalesProspect
Since you're extending ValidatorForm,
On 2/7/06, Tom Ansley [EMAIL PROTECTED] wrote:
action path=/addCamper
type=com.camp.actions.camper.addCamperAction
name=CamperForm
scope=session
validate=true
parameter=submit
input=/addCamper.jsp
So, it's looking for getFirstName, which
Try something like:
String propertyValue = getResources(request).getMessage(propertyName);
Hubert
On 1/30/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Is there a way to get handle on Application property file handle in action
class.
What I mean is if I specify in struts-config.xml
Struts won't change the value of request parameters. I'm certainly no
encoding expert, but if you want to narrow down the cause, try playing
with a basic servlet and see what it gets from request parameters.
Hubert
On 1/30/06, David Delbecq [EMAIL PROTECTED] wrote:
Hello dear members,
We
This is what's happening:
1) User submit form with invalid data to /Control.do
2) Struts finds action mapping for /Control.do and sees validate=true
3) Struts call's the form's validate()
4) validate returns false
5) Since validation fails, Struts forwards to the input url
6) Go to step 2
There
If there's a form associated with a request, Struts automatically
populates the form bean for you. Just submit the form to a URL with a
proper form bean mapping, and struts will populate the form bean with
values from request parameters for parameters whose names match those
on the form.
It
Günther,
Can you file a Bugzilla issue for this?
thanks,
Hubert
On 1/30/06, Günther Wieser [EMAIL PROTECTED] wrote:
hi,
just for future reference (in case somebody searches for the same problem),
i found the solution in the README.txt for verson 1.2.8.
=
KNOWN
If all the config files are for the same module, make sure you put the
request processor definition in just one of those config files. In
cases where multiple files (for the same module) carry request
processor definitions, the last definition processed upon startup
would be the definition that
Wien
Austria
http://www.creative-it.com
2 Dinge sind unendlich: Das Universum und die
Dummheit der Menschheit, aber beim Universum
bin ich mir nicht so ganz sicher.
Albert Einstein
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, January 30
If the request being submitted doesn't include form values, I'd say
skip the ActionForm.
Hubert
On 1/27/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
My question concerns jsp pages that provide a read only view of data. In
other words, there won't be a form submitted from the page. Is
What about, uhm, BeanUtils?
What's your hestitation in using BeanUtils in your EJB tier? AFAIK
there's nothing that limits BeanUtils to the presentation tier.
Hubert
On 1/24/06, Sharon Jolly [EMAIL PROTECTED] wrote:
Hi,
Am working in a project where I need to get information from a legacy
You'd have to write an Action which reads the image from the DB and
writes it onto the servlet's output stream. There was a thread just
yesterday which discussed how to do this. You can set your image URL
to that action and provide it with enough parameters to find your
image in the DB.
Hubert
On 1/24/06, Niall Pemberton [EMAIL PROTECTED] wrote:
However I have just created some new date validation functions that
can do this for you. They are only currently in subversion, the
package javadoc has some examples here:
http://tinyurl.com/cc7a2
Niall
From above URL:
1. Overview
You'll need to rename your iDef property if that is what you're
calling it, via getIDef/setIDef. That pair will result in a property
name of IDef. If you'd rather not change your accessor methods,
then use IDef.partNumber instead of iDef.partNumber. [Wendy can
quote the JavaBean spec related to
On 1/6/06, Frank W. Zammetti [EMAIL PROTECTED] wrote:
The interesting thing is, there are some relatively minor tweaks that
could be done to Struts that would solve a lot of problems. How about
creating Actions per-request? Not at all a significant enhancement, but
think of all the things
On 1/6/06, Niall Pemberton [EMAIL PROTECTED] wrote:
This will be easier to do in Struts 1.3 because rather than having to have a
custom RequestProcessor you simply need to replace the Command that gets the
Action instance with your own version that instantiates a new Action every
time. So
On 1/6/06, Craig McClanahan [EMAIL PROTECTED] wrote:
IIRC, Craig implements Commands the way he did Actions, so there's one
instance of it for the whole app (per jvm, etc, you know what i mean).
That's what the default Commons Chain imlementation does, so that's what the
current 1.3 code
On 12/21/05, Alexandre Poitras [EMAIL PROTECTED] wrote:
I think bookmarks are a bad idea in web applications even when not built
with Ajax. After all, an application is stateful and need a *state* to run.
Bookmarks in my mind are made for informational sites wich are staless and
not
On 12/21/05, Craig McClanahan [EMAIL PROTECTED] wrote:
Interestingly, this example confirms the counter argument that Hubert is
raising :-). Double clicking an Open Office document causes that document
to be opened, but *not* where it was when you closed it, or what you might
have captured
On 12/20/05, Laurie Harper [EMAIL PROTECTED] wrote:
starki78 wrote:
Hi*
Is this combination (Struts 1.2.7 and Validator 1.2) possible and is it
recommended to upgrade to this
Validator version, when you don't Validator up to now?
Thanks Starki
AFAIK, validator 1.2 should work
I've always used String values. Given that difference, I've seen this work:
field property=birth indexedListProperty=employees
depends=required,date
arg0 key=employeeform.birth.displayname/
var
var-namedatePatternStrict/var-name
, and the
same essentially for the companyForm, except I defined employees
to be a list, and told the converter which form to map its elements
to, and which Collection implementation class to use.
Hubert
On 12/15/05, Rick R [EMAIL PROTECTED] wrote:
On 12/15/05, Hubert Rabago [EMAIL PROTECTED] wrote
Take a look at Action mapping wildcards. This could even help
maintain sanity since you'll know what bean a certain action call will
be expecting.
http://struts.apache.org/struts-action/userGuide/building_controller.html#action_mapping_wildcards
Btw, questions like these should go to the user
Somebody posted in Bugzilla lately that a possibly cause of this
problem is an incomplete set of commons-* jars, such as Common
BeanUtils, Commons Digester, or Commons Validator [1]. Make sure your
jar files are complete.
And if anyone has an idea on how we can solve this issue, patches
and/or
Sorry for coming in late to the discussion but I only read this thread now.
I may have misunderstood the problem. I'm thinking the popup will
display a list of providers matching the search parameters, and the
user can select any of them by checking one, and the fields on the
form on the parent
Yes it's Friday indeed (TG). For the benefit of you out there
searching the archives, you can accomplish this by using html:errors
property=name / . You can get more information here:
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
Hubert
On 11/18/05, Aladin Alaily [EMAIL
The times I came across this, it was related to an error in my
struts-config.xml.
Hubert
On 11/16/05, Graham Leggett [EMAIL PROTECTED] wrote:
Hi all,
I have been trying to set up a new Struts project from scratch, and
having set up a basic action class, etc I fire off a browser at my URL,
Well, I'm not Michael, but...
On 11/16/05, Asad Habib [EMAIL PROTECTED] wrote:
Hello Michael. Thanks for your input. Doesn't this approach defeat the
purpose of using Struts though?
I don't believe so. We're trying to make Struts more flexible and
more extensible, and as a result we hope that
-Original Message-
From: Mike Duffy [mailto:[EMAIL PROTECTED]
Sent: Friday, November 11, 2005 4:47 PM
To: Struts Users Mailing List
Subject: [OT] JSF Interface Design - Is it Truly Limited?
I know there are some leading edge JSF and Shale gurus who
monitor this list.
I would hope
You can set the form's scope to request. This way, the values don't
survive from one request to the next.
Hubert
On 11/8/05, pc leung [EMAIL PROTECTED] wrote:
even the following cannot clear fields in
form-bean name=userProfileForm
type=org.apache.struts.validator.DynaValidatorForm
On 11/8/05, Yujun Liang [EMAIL PROTECTED] wrote:
in Struts, you can define
form-bean name=instructionForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=instruction
type=com.clear2pay.bph.bean.Instruction/
/form-bean
and you can just call,
bean =
This is exactly what FormDef does. It reads your existing bean and
configures a form bean for it. Reuse.
You can continue to use BeanUtils with the FormDef-configured beans as
you would any other form bean, or you can also use FormDef's
setFormValues()/getFormValues() and take advantage of its
On 11/7/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi Hubert,
Thanks for the suggestion. I tried the second option
2) Override the default ActionMapping class and set its default scope
value to request.
Extended the ActionMapping class and in the CustomActionMapping
constructor
Is your JSP being accessed directly?
If so, you may need to let the Struts RequestProcessor do its work first.
action path=/myPage
forward=/myPage.jsp/
then access it the way you would other Struts actions:
http://domain/myApp/myPage.do
Hubert
On 11/4/05, Łukasz Piątkowski [EMAIL
On 11/3/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
Started a new thread, so it were visible in GMail.
That was the idea. If FormDef could somehow pull my definitions from
struts-config.xml or, which is much better, from configured Java
objects, I would not have to redefine the properties
On 11/3/05, Yujun Liang [EMAIL PROTECTED] wrote:
Hubert,
Good morning! ( Since I am sending it from Australia.)
Good morning!
How can I convert an input from user to the Date field base on the Locale?
I mean the locale is a varible during the session and conversion can
handle multiple
On 11/2/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi All,
In our application, we have decided to force all the actions to use the
request scope. So instead of adding scope =request in the action
element in struts-config.xml for each action, we extended the
RequestProcessor class as
[ Oh, I missed my cue! :) ]
If your form bean maps to a business object (and it sounds like it
does since you're using BeanUtils), you can try FormDef:
http://formdef.dev.java.net/
You won't need to create a separate ActionForm class or manually
define your DynaActionForm, FormDef will configure
On 11/2/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
Hubert,
I cannot find if you explained it already, how to combine FormDef and
a regular Struts dynaform definitions. In your manual you write only
about DynaValidatorForm.
FormDef can only work with forms defined by FormDef.
On 11/2/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
Um, that is not exactly what I asked about. I want to define
resettable properties in struts-config.xml file (or somewhere else, I
don't care where), for example:
form-bean name=LogonForm
On 11/2/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
If it were possible to use form definitions made in struts-config.xml,
then you would not have to reimplement this property in FormDef, and I
would not have to wait for you to reimplement it ;-) I would just
apply your patch to my copy of
whether this BeanDef works with Validator?
Thanks.
On 11/3/05, Hubert Rabago [EMAIL PROTECTED] wrote:
[ Oh, I missed my cue! :) ]
If your form bean maps to a business object (and it sounds like it
does since you're using BeanUtils), you can try FormDef:
http://formdef.dev.java.net
The way I dealt with this was to point my input attribute to a setup
Action which would put the needed collection into request scope for
me. But that's just one approach. Another is to handle validation
yourself (which really is very easy). This is the approach
recommended by
For web applications, I tend to think that the more appropriate
approach is (what I know to be called) optimistic locking. When a
user edits a record, I keep track of the update timestamp (or even
better, an update sequence number) of the record selected. This value
gets sent back when the user
I wanted to share the results of an experiment I was trying out.
http://www.rabago.net/struts/html2/
It's an alternate set of tags (which extends those provided by Struts)
and provides the developer with more control over handling of invalid
form fields. At the very least, it allows you to show
On 10/14/05, Michael Jouravlev [EMAIL PROTECTED] wrote:
Some nice scripting without Ajax, just Javascript and CSS:
http://www.themaninblue.com/writing/perspective/2005/10/05/form/form4.htm
I wish Struts Validator could be that cool :-)
It CAN be. I spent some time last night figuring out the
Paul,
You can declare something like a struts-config-common.xml which will
contain the config items that are common among your modules and then
include them in your config declarations:
param-nameconfig/param-name
param-value
/WEB-INF/classes/elms/resource/struts-config-common.xml,
Wow, you've got good timing, because someone is calling for this very
feature in FormDef, patch provided:
https://formdef.dev.java.net/issues/show_bug.cgi?id=2
The quick answer to your question is no. FormDef doesn't meddle
with how Struts populates the form. It's more of a utility class you
I'm not sure we're understanding each other about this request type.
When a form is submitted, here's what happens:
* Struts receives a request for an action
* Struts sees that a form was configured for the mapping, so it calls
retrieves the form (if it can find it) or creates a new one
1 - 100 of 478 matches
Mail list logo