As we all know, Struts has evolved in recent times from being a just a
framework to being a community supporting two separate but equal
frameworks which have nothing to do with each other except a shared
name, and perhaps a couple of shared committers.
I think the message that is going out to
Hello,
I use the following syntax into a jsp page:
fmt_rt:formatNumber groupingUsed=true var=minInc scope=page
minFractionDigits=1 maxFractionDigits=1
value=${scenarioForm.minIncome}/
nested:text property=minIncome value=${minInc} /
The minIncome is initially defined into the scenarioForm as
2006/4/21, Marco Mistroni [EMAIL PROTECTED]:
I have a DynaActionForm. It has two array fields (String[] ownerRef and
Boolean[] suspendPart) and some other fields. I want to populate these
arrays from a form and be able to submit the value from the page.
That's it.
why don't you define an
2006/4/21, Marco Mistroni [EMAIL PROTECTED]:
I have a DynaActionForm. It has two array fields (String[] ownerRef and
Boolean[] suspendPart) and some other fields. I want to populate these
arrays from a form and be able to submit the value from the page.
That's it.
why don't you define a
Hey all,
I have two password fields, and I wanna validate those two fields containing
same data.
Is there any key word, I could use (like 'required')? Or I have to add a new
javascript in validator-rules.xml?
Regards,
Jason
-
Hello,
Thx... but seems not to work
i cant manage to populate back to the Action class,.. since I will have an
array of DTO that needs to be submitted from the page.
The crucial problem that I am having is mainly that within the
logic:iterate, for each 'row' I need to create an input parameter
On 4/21/06, Phil Zoio [EMAIL PROTECTED] wrote:
I think that the leaders of the Struts community have a responsibility
to the hundreds and thousands of existing users to give them as much
choice as possible, and not to close the door prematurely on any options
which could make sense to a lot of
Yes, you can use validwhen for this:
*
http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html#validwhen
HTH, Ted.
On 4/21/06, Zheng Wen Zhe [EMAIL PROTECTED] wrote:
Hey all,
I have two password fields, and I wanna validate those two fields containing
same data.
Is there any
* What to Do if Your Code Has Few, If Any Tests?
* Agitar Webinar with Ted Husted
* 7 a.m. and 5 p.m. PST on Wednesday 26 April
Everyone has worked on a code base that seems to work, but has almost
no test assets. Maybe you've had some system-level tests or functional
demos that provide a quick
Hello all,
following problem ...
I have a list of entries (arraylist) and I am able to check them (with a
checkbox).
I can check for example 3 of 5 entries and press the save button ... (some
action behind) ... and the 3 entries are checked - all fine.
But, when I deselect a checkbox, press the
Hans-Peter Petek wrote:
But, when I deselect a checkbox, press the button (i.e. submit), all the
previous checked checkboxes are still checked .. =?!?!? Every checkbox I
ever checked once still remains checked ...
Can anyone help me ...
Common problem. Make sure you are setting all your
The problem might have something to do with the way you have defined the
scope of your bean. If it is request, then you will lose the original
contents of the bean when the user submits the form.
Here's an example,
ACTION: Populate form bean, and forward to jsp
STRUTS: display jsp
USER: Submit
Don Brown wrote:
Well said Ted! I'll add that while my attentions have lately been mostly
towards getting WebWork 2 of the incubator and starting Struts Action 2,
I have been tracking this over the past few months, and really, it seems
to be taking a very long time. Broadly speaking, it's
Just FYI since JSF and Struts can work together (which I am trying to get
working right now).
The Core JSF book has a second edition being released this June:
http://www.amazon.com/gp/product/0131738860/sr=8-3/qid=1145628942/ref=sr_1_3/102-1035027-3267300?%5Fencoding=UTF8
--Brad Simonin
Hey guys,
We us Struts with tiles and here is something, I am having some trouble
with.
I have a main jsp (a.jsp). This jsp includes a few other jsps (using
tiles:insert
attribute=b/, where b=b.jsp).
Now, if I have a bean:define in a .jsp (eg bean:define name=aForm
property=prop id=prop1 /),
Marco Mistroni on 21/04/06 11:23, wrote:
i cant manage to populate back to the Action class,.. since I will have an
array of DTO that needs to be submitted from the page.
The crucial problem that I am having is mainly that within the
logic:iterate, for each 'row' I need to create an input
Hello adam,
Thx... I have tried that.. but problem is that, somehow, the
original
Array[] object does not get populated when you submit the page
I'll investigate more and get back to the list nxt week.. I m pretty busy on
other things at the moment..
Thx and regards
marco
Hello,
I need to create a Table in JSP with values coming from the database. I
want to use struts frame work for this application.
Here is my question
How should I design a formbean and link it to the view (JSP) ? Sample view
code would be very helpful. I think I need to have a collection
Hi
I am trying to do a client side validation for html: multibox tag. I need to
do client side validation if all the boxes are checked, before submitting the
request. I tried using the depends=required rules in the validator-rules.xml.
I see the JavaScript code in my jsp when I try
The best thing might be to start by going through the MailReader
application that is bundled with the distribution. It does things like
populate a table from a database, and covers several other use cases
you will run into.
Also be sure to review the latest FAQs on the website, to be sure you
get
OK, when you post next, include the HTML and the getter/setter for the
array property.
Marco Mistroni on 21/04/06 16:22, wrote:
Hello adam,
Thx... I have tried that.. but problem is that, somehow, the
original
Array[] object does not get populated when you submit the page
I'll
Another resource I found to be very helpful is:
http://struts.apache.org/struts-action/userGuide/index.html
Harsh.
-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]
Sent: Friday, April 21, 2006 10:55 AM
To: Struts Users Mailing List
Subject: Re: Beginner's question on Struts
Hi -
I'm new to Struts and Tiles. I am trying to use Struts validation in a form
with Tiles. I have a simple form with a textbox. If a user fails to enter
something in the textbox, on submit, a message is returned to the form.
This part is working fine. I am also using Tiles with a header,
Is there a way that I can have a Struts application that services a .NET
view, Struts controller, and Struts model objects?
I've recently been writing my own framework to do such a thing, and I'm
wondering if I should have deferred to the wisdom of Struts users :) before
delving into my own
On 4/21/06, James Savage [EMAIL PROTECTED] wrote:
However, when a validation error message is returned (because
nothing was entered), only the form with the validation message is
displayed, but not the Tiles header, footer and menu. Is there something
else I need to do to get the form with a
What do mean by a .NET view? Are you talking about a .ASPX file with a
code-behind?
-Ted.
On 4/21/06, John Walker [EMAIL PROTECTED] wrote:
Is there a way that I can have a Struts application that services a .NET
view, Struts controller, and Struts model objects?
I've recently been writing my
Everything was working fine and I included a jsp and actions related which
was showing as well too when app was launched.
then, later started getting this error. I was in middle of making changes
and was verfiying the changes I made.
struts config seams to be ok. I had config file 10days old
fea jabi wrote:
what else can I check?
Everything else.
But I'd start in the log files, perhaps with more aggressive logging.
I'd be suspicious of your configs anyway.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi
I am trying to do a client side validation for html: multibox tag. I need to
do client side validation if all the boxes are checked, before submitting the
request. I tried using the depends=required rules in the validator-rules.xml.
I see the JavaScript code in my jsp when I
thankyou for your response.
Had problems in validation.xml . one of the form property validation was not
right! I wish there was a way to fiigure this out easier.
what log files were you refering to in your response?
From: Dave Newton [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List
Hello!
I've a commandline tool, which should be controlled through a http
interface. Controlled means:
- The process is started with the correct options (the user can chose
them with the html-sites) - this is no problem.
- The output from the process should be continuously viewable by the user
Wendy,
That worked! Many thanks.
Jim
On 4/21/06, Wendy Smoak [EMAIL PROTECTED] wrote:
On 4/21/06, James Savage [EMAIL PROTECTED] wrote:
However, when a validation error message is returned (because
nothing was entered), only the form with the validation message is
displayed, but not
fea jabi wrote:
Had problems in validation.xml . one of the form property validation
was not right! I wish there was a way to fiigure this out easier.
In general, when I get a servlet not available it means one of the
config files is hosed.
what log files were you refering to in your
I hope it's ok that I'm asking this here. I know it's not technically a
Struts-related question.
Based on the link Wendy provided, I googled ServletContextListener and
found this
(http://www.stardeveloper.com/articles/display.html?article=200901page=1)
which sounded like exactly what I'm
Frank,
You mention CalendarTag. Is that some third-party tag that extends struts
tags? I can't find any info on it.
Could you send me a link to example(s) or documentation about it?
Thanks!
David
Frank
Harsh and Ted,
Thanks for the information Here is one more question. I am able to create
an ActionForm with a collection type attribute in it ( Vector) and also
i could link it to the table in the JSP. I am getting an error No getter
method for property vSectors of bean sectorData. Do you know
Hi Andreas,
Like any other web server a Java based web server use the Common Gateway
Interface (or CGI) for sending information between the client and the
server. This is a request-response protocol which is driven by the
client and not the server. What you are trying to do is have the server
http://cvs.sourceforge.net/viewcvs.py/javawebparts/javawebparts/WEB-INF/
src/javawebparts/taglib/uiwidgets/CalendarTag.java?rev=1.3view=log
or http://tinyurl.com/efdrt
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, April 21, 2006 3:11 PM
To:
[Announce]Dear Struts-Users,
Stylus Studio has just released a new XSLT tutorial entitled: An
Introduction to XSLT. You can view this free online video tutorial
today at: http://www.stylusstudio.com/videos/xsltedit1/xsltedit1.html
This new video tutorial teaches the following topics:
* Using
Hello all,
I am relatively new to stuts, and reading madly trying to absorb enough to
become proficient. I have worked a bit with Ruby on Rails, and like quite a
few of their paradigms, however Ruby is far from an accepted solution for
the company I work with. One of the things I really liked
Maybe this is simple, but then again may it's not... I've got a
Struts app that I'm breaking up onto modules so that I can keep the
configs seperate. The JSP files are already seperated out into
different directories, but what I want to do is hide all of them in
the WEB-INF directory. I
CalendarTag is one of the tags in the Java Web Parts UIWidgets package.
Here's the javadoc for it:
http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/uiwidgets/CalendarTag.html
There's only two widgets in that package right now, this and Swapper
(one of these here's two boxes
Alan, did you know that you can have multiple config files without
resorting to modules? I ask because I've found in my experience that
many times people use modules without knowing that, and make life more
difficult for themselves.
As for hiding JSPs in WEB-INF, if memory serves, they are
Hi Ben,
I'm not familiar with RoR, but from what you describe here it sounds
like what you want is a DispatchActon, or probably more specifically,
the EventDispatchAction introduced in Struts 1.2.9:
If you combine DispatchAction [1] with wildcards introduced in Struts 1.2,
you can do something very similar:
action
path=/*/*
type=foo.bar.{1}Controller
parameter={2}
forward
name=success
path=/{1}/{2}.jsp/
/action
Then in Struts 1.3, we added the ability to pass
I'm not sure what you mean by Multi-Application Support. If you mean
modules, then yes, they are commonly used as a way to separate parts of an
application. If you are looking for an example, look no further than the
Struts Mailreader.
The main advantage of modules is each gets its own
The problem is your custom plugin is declared as abstract, so Struts can't
instantiate it:
---
public abstract class LoggingPlugin implements PlugIn {
---
Don
On 4/19/06, Alan Treece [EMAIL PROTECTED] wrote:
Many thanks for those that have replied to my earlier emails for
help... Hopefully
I haven't used Session scope for my ActionForms in a lo time,
but now I need to for a particular scenario.
The problem I'm running into is imagine you click on a link to Create
New - in which case, after you pass through your Action, you'd go to
a page backed by the session-scoped
When using declarative exception handling, where do you create the
exception instances? In the action itself? I would like to use the
ModuleException class and pass a resource key to the constructor but
don't know where this should be accomplished. On another note, are there
any resources
On 4/20/06, Matthias Wessendorf [EMAIL PROTECTED] wrote:
[snip]
What I don't like on that bean is, that it creates via
javax.faces.context.ResponseWriter the markup (here a xml list). Just
my $0.02
Just FYI, using a response writer is optional. The handler function has the
responsibility
Thank you very much!
David
George.Dinwiddie
@wellsfargo.com
Great. Thanks very much!
David Z. Pantich
FirstEnergy Corp.
E-mail: [EMAIL PROTECTED]
Phone:(330) 315-6775
Mail Stop: Ghent 308A
Frank W.
This is like wizard of Oz. Go Away. But we cam to get a hart, a
brain, courage No one here now
Why would anyone care if struts is not being marketed or need others
to approve of you decision to use something else?
If you find Spring better, good for you. If you find JSF better, good
for
Hello,
Even if Struts is passing a true reference to the form bean that is
stored in the session, doing that reassignment inside the dispatch
method won't do what you want.
*
public ActionForward setUpForNew(ActionMapping mapping, ActionForm
form, ...{
form = new MyForm();
On 4/21/06, David Evans [EMAIL PROTECTED] wrote:
***
That reassignment is just reassigning the local pointer to the new form
instance, disconnecting it from the form instance in the session.
Good point David:) I was forgetting Java101 and being an idiot.
Thanks. Yea, I'll stuff the new
Hey its friday and its late :)
And while i'm talking to you, thanks for the struttin with struts
lessons, they really helped me when i first started using this stuff.
dave
On Fri, 2006-04-21 at 21:21 -0400, Rick Reumann wrote:
On 4/21/06, David Evans [EMAIL PROTECTED] wrote:
***
That
Bart Busschots wrote:
Hi Andreas,
Like any other web server a Java based web server use the Common Gateway
Interface (or CGI) for sending information between the client and the
server. This is a request-response protocol which is driven by the
client and not the server. What you are
57 matches
Mail list logo