This is a bug I just fixed in xwork 1.2.x and xwork 2.0.x.
See http://jira.opensymphony.com/browse/XW-465 for details.
Tom
Shih Lee wrote:
Hello,
I have downloaded struts-blank to play around. I was trying to use Spring
AOP with Struts 2. However, I am getting the following error:
2007-02-04
Thanks Dariusz,
Adding the filter fixed the issue.
Z
- Original Message
From: Dariusz Wojtas <[EMAIL PROTECTED]>
To: Struts Users Mailing List
Sent: Sunday, February 4, 2007 1:20:02 PM
Subject: Re: [s2] Autopopupation of fields fails with
"enctype="multipart/form-data" in form
Hi Zaf
--- Shih Lee <[EMAIL PROTECTED]> wrote:
> [Spring AOP/S2]
Just out of curiosity, does it work if instead of
proxying the interface you proxy the class instead,
like so:
true
timeLoggingAdvisor
I haven't tried AOPing an Action interface yet, but I
Hello,
I have downloaded struts-blank to play around. I was trying to use Spring
AOP with Struts 2. However, I am getting the following error:
2007-02-04 21:27:17,233 DEBUG AbstractBeanFactory - Bean with name
'helloWorld' is a factory bean
java.lang.IllegalArgumentException: object is not an in
Kevin--
I would suggest implementing the validation.xml packaged within struts as the
basis for your validation efforts
Feel free to ping the list if you have any questions
HTH,
Martin--
---
This e-mail message (including a
Hello,
it sure is a matter of taste - but I think its not good to use exceptions for
this kind of things. After all "User not found" is not an _exception_. Its a
well defined case and it happens frequently. (Except you rely on that the
user exists, eg. in step 2 of a registration process)
I ha
> (BTW, right
> now don't matter how I write it tiles configuration is assumed to be
> in WEB-INF/tiles.xml, what do I need to put in my web.xml?)
Gonçalo,
Did you try this:
definitions-config
/WEB-INF/some-other-filename.xml
Regards,
Dj.
-Original Message-
Fr
--- Francisco Exposito Aguilera wrote:
> I am doing just now a part for an administrator user
> and I want to show the error most clear as possible.
Oh, if it's for an admin that would understand and be
able to do something, then sure, be as detailed as you
want :)
> a) I must do an extra reque
--- Djordje Trifunovic <[EMAIL PROTECTED]> wrote:
> However, I never enjoyed having JSP code (including
> EL) in my pages, unless absolutely necessary. So
> far, I haven't really bumped into anything that
> couldn't be solved with S2 tags with some OGNL :)
What's the difference? (I mean from a ph
I agree with you about don´t show SQL errors to a normal user
I forgot
to say that I am doing just now a part for an administrator user and I want
to show the error most clear as possible. Maybe I should use a log message.
Once it is defined that (tell me if I haven´t understood you):
a) I
True, thanks for the additional comments. I tried to keep my post short, so
I concentrated on expressions only... :)
Btw, the solution "with extra EL sauce" was what I had originally in my
code:
And yes, that works... However, I never enjoyed having JSP code (including
EL) in my pages, unless
--- Tom Schneider <[EMAIL PROTECTED]> wrote:
> I think the idea here is that you'd want to do
> something like:
>
> bundle_key="preferences>
>
>
Yeah, I realized that after I posted.
I should probably have a cooling-off or 5-day waiting
period before I'm allowed to post, really :/
d.
Joe you're assessment is correct. There is usually a 1 to 1 mapping
between JSP tag and UI component. Right now the form tag and url tag
duplicate several pieces of key url building logic. I spent some time
abstracting away url building this weekend. I'm not far enough along to
actually sub
I think the idea here is that you'd want to do something like:
To me, this makes sense because there were many places where I used an
ww:url tag and a ww:a tag directly after it, so having one tag that
would handle the functionality of both would be useful.
Tom
Dave Newton wrote:
--- Gonç
Hi Zafer,
I would:
1) check the archives of this mailing list from the last 2 weeks,
there was a thread about fileupload issues (parameters are not always
set from such form). One of the hints was to use some magical filter
in front of the application. It is supposed to clear sth.
2) check if y
From: Dave Newton <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List"
To: Struts Users Mailing List
Subject: Re: Exceptions design
Date: Sun, 4 Feb 2007 09:41:23 -0800 (PST)
--- Francisco Exposito Aguilera wrote:
> What is the best way to show the user this sql
error?
I'm skeptical t
It seens to me onsubmit of s:form is never executed.
Thanks,
Rodrigo Pereira
On 2/4/07, Rodrigo Pereira <[EMAIL PROTECTED]> wrote:
Hi Peter,
Is there any hint for this?
I can see the js printed on the page, but it looks like it never
called those functions and it goes directly to the action.
--- Francisco Exposito Aguilera wrote:
> What is the best way to show the user this sql
error?
I'm skeptical that you'd want to show the *user* an
SQL error; my experience has been that it's best to
wrap up such exceptions in an application-specific
exception and report a general system error (or
--- Joe Germuska <[EMAIL PROTECTED]> wrote:
> There's an open ticket for this issue
> https://issues.apache.org/struts/browse/WW-1517
> > ">
> >
> >
There's obvious base functionality like we're talking
about here (an action or value or href, optional text
from properties, styling, etc.) but
I have a form with the enctype set to "enctype="multipart/form-data" as I am
uploading a file, the form also contains some other fields. On submission the
autopopulation of other fields fails, but it works correctly if I remove the
enctype="multipart/form-data". Any idea..?
Thanks
Zafer
_
--- Gonçalo Luiz <[EMAIL PROTECTED]> wrote:
> ">
>
>
>
> Is there a more "elegant" way of producing links
> that does not involve this "sub-tag" schema ?
Like what? That's how the tag works, it has an
href and the text is the body.
If you want to automagicate it write a custom tag, but
I'm
There's an open ticket for this issue
https://issues.apache.org/struts/browse/WW-1517
I assigned it to myself, since I, too, am interested in such functionality,
but I'm looking for some suggestions from someone, anyone with more
familiarity with the architectural model for the S2 tags because I
Hello all,
I have a doubt about how design the exceptions in my struts project. I have
the action classes and the bean classes. The action classes execute methods
from bean classes, which connect to the database.
Supposing I am trying to create a user in one of my web pages and the user I
wa
--- Djordje Trifunovic <[EMAIL PROTECTED]> wrote:
> because unlike in and some other
> tags, in %{...} cannot be omitted.
Just as a clarification; the reason it can't be
omitted in *your* case is because you needed to
evaluate an expression to be used as the name
attribute.
Using would retrie
Hello,
Even though the method I'm using to produce links is working, I think
of it like a little bit awkward.
An example of what I'm saying is:
">
Is there a more "elegant" way of producing links that does not involve
this "sub-tag" schema ?
Thank you.
Best Regards,
--
Gonçalo Luiz
Hello,
Thank you very much, it indeed worked.
Regards,
Gonçalo Luiz.
On 04/02/07, Djordje Trifunovic <[EMAIL PROTECTED]> wrote:
Hi Gonçalo,
Nesting tag as an attribute of another tag is not supported. To accomplish
this particular task of passing key through tiles, try this instead:
R
Hi Peter,
Is there any hint for this?
I can see the js printed on the page, but it looks like it never
called those functions and it goes directly to the action.
Thanks,
Rodrigo Pereira
On 2/3/07, PETER BLIZNAK <[EMAIL PROTECTED]> wrote:
Yes it does work, I am using on every single page.
Rodr
Searching for some more documentation on net about OGNL and its connection
to WW/Struts2, I think I finally isolated what was causing some confusion in
my case. Since it may useful for some other newbies, here is what works in
the situation from the previous post:
This doesn't work:
becau
Hi all,
is there a way to avoid that the action property is
rendered with the application name (e.g
--> ) ?
What i need for a special case is that the output is .
If this is not possible , is it possible to use the normal html-form
() tag and bind it to an actionForm ?
regards
ivan
---
--- Struts2 Fan <[EMAIL PROTECTED]> wrote:
> struts.properties
> errorage= src="images/mistake.jpg" />
> Am I doing something wrong?
I don't know what the "name" attribute is; I only know
about "id" and "class" for styling-type things.
If you seriously want a different div for each field
(which s
Rodrigo,
AFAIK that was possible.
Regards,
- Original Message -
From: "Rodrigo Pereira" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Saturday, February 03, 2007 10:39 PM
Subject: Struts-Faces: validator
hi All,
does anybody know if validator work with struts-faces?
I h
Hi Gonçalo,
Nesting tag as an attribute of another tag is not supported. To accomplish
this particular task of passing key through tiles, try this instead:
Regards,
Dj.
-Original Message-
From: Gonçalo Luiz [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 03, 2007 7:53 PM
To: D
Hi all,
I put the message on the right hand side of the tag with writing my own
theme. (Thanks for all)
But i cannot put the tag on the message.
struts.properties
errorage=
myAction-validation.xml
13
19
It writes "errorage" on the page n
Hello. I have a question concerning transfer objects. If a transfer object
contains another object represented by a POJO, is this contained object
also considered a transfer object or simply an entity bean? Is their any
literature that discusses this? Any help would be appreciated. Thank you.
34 matches
Mail list logo