What i do (not sure is the best way but it works):
Every form has en errormessages text area
The forms classs inherit from a super class with getter and setter methods for
the textarea
In the action class when an exception is raised i fill the form textarea with
the error messages.
Hih
Marcel
Hi,
I am trying to use the Restful2ActionMapper for my project. However I have not
been able to configure it correctly so far.
My struts.xml looks like the following:
/test.jsp
However mapping do
Hi there. I have the following JSP page which i am populating it through a
JTable kind of class.
This is populating the page in a tabelar mode, and can be controlled by the
number of line and number of column.
JSP page:
<%@ page import="databeans.*"%>
<%@ page import="java.sql.Connection"%>
<%!
--- Philip Lorenz <[EMAIL PROTECTED]> wrote:
> However mapping does not work at all. After enabling
> SlashesInActionNames and accessing the URL
> "/view/uploadId/5.action" I get a "There is no
> Action mapped for action name uploadId/5" error.
> Disabling it only leads to to an error message that
>
> Tomorrow's task for me is trying RESTful, so hopefully
> you'll figure this out ;)
>
> Do you need the ".action" in the URL?!
>
> d.
You can remove the action postfix by setting struts.action.extension to an
empty string. I just left it enabled to have a clean default config with only
th
Can we use JUnit to test Struts 2 Action without
having the server launched? Thanks for advice and
guidance.
--- Caroline Jen <[EMAIL PROTECTED]> wrote:
> Does the Struts2 integrate with other open source
> products; such as DWR, JMOCK/Junit testing?
>
>
>
>
__
I believe you definitely can - check out this article in the Struts 2
tutorial: http://struts.apache.org/2.x/docs/hello-world.html on the bottom
of the page.
I think the code didn't work for me as is, but that's something to work off
of.
Good luck!
On 2/5/07, Caroline Jen <[EMAIL PROTECTED]> wr
Yes.
The Struts 2 Action doesn't expose HTTP in its signature. When access
to HTTP resources is needed, references to these resources can be
injected at runtime, but, to the Action, the servlet resources appear
as ordinary Maps. When running tests outside of the framework, the
test scaffolding ca
I didn't see a case where (2) is better.
Ideas from other folks? Thanks.
-Original Message-
From: Information Guzzler [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 6:32 PM
To: Struts Users Mailing List
Subject: Re: Design issue
Definitely (1) if you are strictly following M
Jsp tag is supposed to be reusable, if you put the database logic in the
tag, then not only the tag is not reusable, but also your view tier
contacted with DB directly aross tiers.
-Original Message-
From: Strachan, Paul [mailto:[EMAIL PROTECTED]
Sent: Friday, February 02, 2007 10:50 PM
On 2/2/07, Caroline Jen <[EMAIL PROTECTED]> wrote:
Does the Struts2 integrate with other open source
products; such as DWR, JMOCK/Junit testing?
As mentioned, using DWR and JUnit and such with a S2 Action is easy to
do. The S2 plugin system also makes it easy to create and share Struts
2 integr
Can I use a parameter instead of a hard coded value in the mappings of a
struts-config.xml?
If so, how?
What I mean is:
I have a config file that looks like so:
This requires an Action that has exactly
'winMoney' and 'loser' as the strings in the mapping.fin
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
All,
Piero Sartini wrote:
> I have a rule: If something is defined and I know it will happen often, it
> should not be an exception. It is a path in the application.
There's always the (slim) possibility that the user will not be found
during the lo
Thanks for this.
The stack trace is below. The global.moneyFormat property is defined in the app resources file as
#,##0.00. The client had a Portuguese locale set, which I believe has a currency format of #.##0,00.
As you say, I would expect the system to look for a resources file that is sp
Hi
In my struts config, I have a few forms, with type DynaValidatorForm. The
problem is, I have a few forms who share a few fields. Is there a way to
declare a superform and let the other extend that form, so that I don't have to
declare the common fields for every form?
Tia
Bjorn De Bakker
> check if you have any custom filter in front of your action -
> themultipart parser requires a 'virgin' request object, without
> accessingany params in it prior to multiparse analysis.
Could you say more about this? Does this mean that if I'm using the prepare
interceptor / interface ahea
> Hi,
>
> I am trying to use the Restful2ActionMapper for my project. However I have
> not been able to configure it correctly so far.
>
> My struts.xml looks like the following:
>
>
>
>
>
>
>
>
>
> /test.jsp
>
>
This is most likely a bug, can you create a JIRA ticked?
/Ian
Philip Lorenz wrote:
Hi,
I am trying to use the Restful2ActionMapper for my project. However I have
not been able to configure it correctly so far.
My struts.xml looks like the following:
Further to this I have delved into WriteTag.java, and see the following code in
formatValue():
// Try to retrieve format string from resources by the key from formatKey.
if( ( formatString==null ) && ( formatKey!=null ) ) {
formatString = retrieveFormatString( this.formatKey );
if( formatSt
Dear All:
I haven't received feedback for this, I apologize for sending it again
but hopefully someone can give me
an advice. Thanks so much!
I'm using Struts 1.3.5 in my content management web application. I have
a form with a dynamic
list. To validate it, I used the following in my validato
> This is most likely a bug, can you create a JIRA ticked?
>
> /Ian
>
The bug is now located here: https://issues.apache.org/struts/browse/WW-1706
Philip
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
Hi again,
Thanks, Tom!
Good suggestion. I have tried it but getting the following exception after
adding CGLIB to the classpath:
2007-02-05 11:35:36,476 ERROR ContextLoader - Context initialization
failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name '
I cannot say much more than this:
http://jakarta.apache.org/commons/fileupload/faq.html
I believe that if you are using standard S2 components, then
everything should work as expected - the order of interceptors is
important here.
Regards
Dariusz Wojtas
On 2/5/07, bob <[EMAIL PROTECTED]> wrot
Thank you so much for you help, Christopher & Dave.
Dave Newton-4 wrote:
>
> --- styl9090 <[EMAIL PROTECTED]> wrote:
>> As I could not find any resolution for this issue, I
>> would like to write java code in JSP :(
>
> Life goes on.
>
>> [...] checkbox with 'value' attribute as a field in
>
Hi,
I have been reporting some problems with conversion at the beginning
of the year.
There were problems with conversion when some actions/pages were
invoked from the Opera browser. A bit strange but that's how it was.
Now I tried Opera again and I found a case in which some code fails
under Op
Hi Dariousz
I recently sent a patch for XWork to parse dates on RFC 3339 format
(which the datepicker uses):
https://issues.apache.org/struts/browse/WW-1643
Can you recompile xwork and try?
musachy
Dariusz Wojtas wrote:
Hi,
I have been reporting some problems with conversion at the begin
I have a somewhat complicated form that I'm trying to create using
Struts. I actually have the form working but we need to make an
enhancement that makes it even more complicated. I have tried googleing
and searching several places to find an example that will help me. I
have found examples that
Adam Lipscombe wrote:
Folks
I need to internationalize an app - returning Locale specific formats
for currency and date.
One way to do that is to add getLocalised() and
setLocalised() to the formbeans for each affected
property. These methods will then apply whatever formatting is needed.
ok, I surely will try this patch - somewhen later this week.
I will inform you about the results.
Thanks for quick response.
Best regards
Dariusz Wojtas
On 2/5/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
Hi Dariousz
I recently sent a patch for XWork to parse dates on RFC 3339 format
(which
Hi all, working with a struts application that I am trying to add
quartz to but I am running into a slight snag. I can't seem to get
the scheduler to be recognized. I am trying to follow the following
tutorial:
http://www.onjava.com/pub/a/onjava/2006/03/01/job-scheduling-in-web-application.html
The patch was already committed to xwork by Phil. You just need to
update and recompile.
thanks
musachy
Dariusz Wojtas wrote:
ok, I surely will try this patch - somewhen later this week.
I will inform you about the results.
Thanks for quick response.
Best regards
Dariusz Wojtas
On 2/5/07, M
Thom Burnett wrote:
Can I use a parameter instead of a hard coded value in the mappings of a
struts-config.xml?
If so, how?
What I mean is:
I have a config file that looks like so:
This requires an Action that has exactly
'winMoney' and 'loser' as the strin
[EMAIL PROTECTED] wrote:
Hi
In my struts config, I have a few forms, with type DynaValidatorForm. The
problem is, I have a few forms who share a few fields. Is there a way to
declare a superform and let the other extend that form, so that I don't have to
declare the common fields for every
I seem to have a problem of consistency between UTF-8 and ISO-8859-1 when it
comes to accepting Strings in forms. Here's how it goes:
* My application is intended to be entirely UTF-8 encoded: the database,
the JSP files, etc.
Only exceptions are the localized ApplicationResources_??.properties
Pierre Thibaudeau wrote:
I seem to have a problem of consistency between UTF-8 and ISO-8859-1
when it
comes to accepting Strings in forms. Here's how it goes:
* My application is intended to be entirely UTF-8 encoded: the database,
the JSP files, etc.
Only exceptions are the localized Applica
I've been fiddling around with trying to get a submit button to invoke a
specific method on my action, using the 'method' attribute:
This didn't work, invoking the standard execute() method. I tried being
more specific:
but that invokes execute as well. I finally got it workin
Does anyone know if these two can somehow be used together?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am already doing this.
Can I use h:commandButton to submit ( call onsubmit ) struts-faces form?
Thanks,
Rodrigo Pereira
On 2/4/07, Martin Gainty <[EMAIL PROTECTED]> wrote:
Kevin--
I would suggest implementing the validation.xml packaged within struts as the
basis for your validation effort
--- Joe Yuen <[EMAIL PROTECTED]> wrote:
> Does anyone know if these two can somehow be used
> together?
Sure, why not?
Dave
Have a burning question?
Go to www.Answers.yahoo.com and get answers from real pe
Hey all,
I'm using Struts 2 (version 2.0.2) in a simple web application running on
Tomcat. I have a page to submit data, and after the "saveData" method in my
action class is called, I'd like to have it redirect to the editData page
for the newly-entered data.
I've tried putting the following i
Hello
I am trying understand how to use the bean:page with the different
properties, application, config, response, request, session, and I
understand the simple syntax. What I dont know is what properties I can
"get at" with what syntax for the bean:write tag for each of the properties
of the be
Hi Rodrigo,
yes you can use commandButon.
Btw have you look at example code coming with Struts 1.3.5?
Peter.
PS
If you still have problem to make it work let me know I will send you some code
to nail it down.
Rodrigo Pereira <[EMAIL PROTECTED]> wrote: I am already doing this.
Can I use h:command
Try using the "redirect-action" result type.
http://struts.apache.org/2.x/docs/redirect-action-result.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thank you! Exactly what I needed! It works great!
2007/2/5, Illya Kysil <[EMAIL PROTECTED]>:
> google://SetCharacterEncodingFilter
Hi Musachy,
I have problems with compiling xwork from SVN. A fresh copy.
I am using JDK 1.6, maybe this is the reason.
mvn clean install
produces after some time
[ERROR] BUILD FAILURE
[INFO]
[INFO] Compilation failure
c:
45 matches
Mail list logo