I'm still guessing it's a validation thing--put an "input" result in
there and check.
Also, by naming the results the same as the actions you're actually
circumventing one of the reasons for abstracting the result names from
everything else. Even for test apps it's just not a good habit, IMO.
Dav
Depends on where you added the addActionError() call, at the very
least--an action error indicates a validation problem, so it may be
trying to go to the "input" result.
Not enough information to help.
It seems that I may get my answer soon!
More info comes:
=
(1) Action
"Though his eyes could see he still was a blind man" lol
On Wed, Apr 13, 2011 at 10:27 AM, Eric Lentz wrote:
> I'm now buying what you're selling. I did have a misunderstanding about
> when the JSP is called relative to validation. I once was blind, but now I
> see. Thanks for clearing that up.
Depends on where you added the addActionError() call, at the very
least--an action error indicates a validation problem, so it may be
trying to go to the "input" result.
Not enough information to help.
Dave
On Wed, Apr 13, 2011 at 3:19 PM, Emi Lu wrote:
> Hello,
>
> addActionError() caused "Pag
Hello,
addActionError() caused "Page not found (404)" Error.
(1) Action1.java
browsing all records using displaytag
(2) Action2.java
if just say:
return "view"; go to Action1 successfully
if:
addActionError(...); //then
return "view";
Got an "Page not found (404)" e
Check out : konakart.com
Implemented in struts There is a community version you can use ...
Best,
Muneer
On Wednesday, April 13, 2011, abhishek jain wrote:
> hi,
> even i will like to more of this, open source APIs to create a shopping cart
> or more such examples.
> thanks
> abhishek
>
> O
Ah, good point. So it's probably visible in the source, just not interpreted
correctly when displaying the email.
Beez
-Original Message-
From: Dave Newton [mailto:davelnew...@gmail.com]
Sent: Wednesday, April 13, 2011 10:45 AM
To: Struts Users Mailing List
Subject: Re: form action is
Name
/s:textfield>
This might help some one.
Hidden value comes from the previous parameter. And the textfield value
comes from the pre-populated bean section.
--
View this message in context:
> prepare method is set to execute BEFORE the params from your form are
read and processed into your action class
So prepare() is my *dumb* friend. Thanks for the tip!
On Wed, Apr 13, 2011 at 11:27 AM, Eric Lentz wrote:
> Thanks for the help. My problem appears to be solved! prepare() is my
> friend.
One subtle gotcha you should be aware of in case it bites you later:
In the default interceptor stack, the prepare method is set to execute
BEFORE the params from
Whew!
Dave
On Wed, Apr 13, 2011 at 11:27 AM, Eric Lentz wrote:
> I'm now buying what you're selling. I did have a misunderstanding about
> when the JSP is called relative to validation. I once was blind, but now I
> see. Thanks for clearing that up. I now see how to make the application
> work c
I'm now buying what you're selling. I did have a misunderstanding about
when the JSP is called relative to validation. I once was blind, but now I
see. Thanks for clearing that up. I now see how to make the application
work correctly.
BTW, I do know about redirectAction, and use it normally. I
> which is why plain-text emails are better.
Fixed that for you ;)
-Brian
On Wed, Apr 13, 2011 at 9:45 AM, Dave Newton wrote:
> Probably that whole tags-being-interpreted-as-tags this in HTML
> emails, which is why plain-text emails are better for lists.
>
> Dave
>
> On Wed, Apr 13, 2011 at
Probably that whole tags-being-interpreted-as-tags this in HTML
emails, which is why plain-text emails are better for lists.
Dave
On Wed, Apr 13, 2011 at 10:15 AM, Biesbrock, Kevin
wrote:
> That's strange. Why doesn't the code come through in the email but it
> shows up on the nabble site?
>
>
On Wed, Apr 13, 2011 at 10:05 AM, Eric Lentz wrote:
> The real application is not a SSCCE, but exhibits the same symptoms.
Okay.
To make sure I have this correctly reasoned (and have read previous
emails correctly).
Q1: Which path(s) through the app are you saying are a bug?
You said:
> If I a
there is no code sir !!
2011/4/13 Biesbrock, Kevin
> That's strange. Why doesn't the code come through in the email but it
> shows up on the nabble site?
>
>
> Beez
>
> -Original Message-
> From: arun [mailto:arunnh...@gmail.com]
> Sent: Wednesday, April 13, 2011 12:45 AM
> To: user@str
That's strange. Why doesn't the code come through in the email but it
shows up on the nabble site?
Beez
-Original Message-
From: arun [mailto:arunnh...@gmail.com]
Sent: Wednesday, April 13, 2011 12:45 AM
To: user@struts.apache.org
Subject: Re: form action is not calling while click on
hi Dave,
Here is the code :
--
View this message in context:
http://struts.1045723.n5.nabble.com/form-action-is-not-calling-while-click-on-submit-button-Struts2-0-tp4292686p4299769.html
Sent from the Struts - User mailing list archive at Nabble.com.
--
Good morning all,
Thank you very much for the information!
I tried the following, and it works now:
===
(1) Use quartz-1.8.5.jar instead 2.0
(2) Added slf4j-api-1.6.1.jar
Emi
On 04/12/2011 09:24 PM, Haroon Rafique wrote:
Disclaimer, I didn't read the
>And I assume the zipcode thing is just for test
>purposes, since zipcodes aren't numeric
This is someone's code I downloaded from the Internet for play. The real
application is not a SSCCE, but exhibits the same symptoms.
On Wed, Apr 13, 2011 at 9:52 AM, alex zaim wrote:
> When you said getText() i thought you meant value="getText('some.key')" />
>
> It works all good now when i use it from validate().
>
> Thanks a lot!
No problem!
Dave
-
To uns
On Wed, Apr 13, 2011 at 9:51 AM, Eric Lentz wrote:
>>Create and post an SSCCE demonstrating the perceived issue, here or
>>preferably on a pastebin-like service.
>
> I assume an SSCCE is a JIRA report for Struts2? I started one but am
> waiting to hit submit in case you have something else in mind.
When you said getText() i thought you meant
It works all good now when i use it from validate().
Thanks a lot!
>Create and post an SSCCE demonstrating the perceived issue, here or
>preferably on a pastebin-like service.
I assume an SSCCE is a JIRA report for Struts2? I started one but am
waiting to hit submit in case you have something else in mind.
Is this what you have in mind for pasttebin: http://pas
Create and post an SSCCE demonstrating the perceived issue, here or
preferably on a pastebin-like service.
The bottom line is that the JSP is being hit, because it's where the
error message is coming from, because the list isn't present.
I assume you have devMode switched on and are logging at th
>It's not going to execute the JSP unless there's a reason to.
>Something's sending it back to the JSP. Rendering the JSP is the last
>thing it does during action execution, after type conversion, after
>validation. It's not going to execute the JSP that requires the list
>unless there's an executi
hi,
even i will like to more of this, open source APIs to create a shopping cart
or more such examples.
thanks
abhishek
On Fri, Dec 31, 2010 at 2:46 PM, Amol Ghotankar wrote:
> This is a good tool but its difficult to intergrate as it has its own UI &
> many other components, isn't there any fram
On Wed, Apr 13, 2011 at 9:01 AM, alex zaim wrote:
>>No. Use existing getText(...) methods.
>
> That will be parsed right before validation. I want to show the fielderror
> results...
> in another language.
I don't understand what you're saying.
If you're doing validation in validate(). getText(
>No. Use existing getText(...) methods.
That will be parsed right before validation. I want to show the fielderror
results... in another language.
On Wed, Apr 13, 2011 at 8:49 AM, Eric Lentz wrote:
> I totally agree with your analysis of the operation of a validation error /
> input page. I don't believe that's what is happening though. I ran Struts in
> debug mode and stepped through where it was getting tripped up and it fails
> very early
> If there's a validation error, the input page will be displayed.
>
> If the input page is being displayed, the JSP references the list.
>
> If the JSP references the list, it's needed.
>
> If the JSP page isn't being displayed, you cannot get the error
> message your getting.
I totally agree wit
On Wed, Apr 13, 2011 at 8:38 AM, alex zaim wrote:
> Please suggest the best method, if possible. (perhaps from right within
> validate() method?
> should i make my own resource parser in this case?)
No. Use existing getText(...) methods.
Dave
---
Please suggest the best method, if possible. (perhaps from right within
validate() method? should i make my own resource parser in this case?)
(For completeness, it could also be a type conversion error.)
d.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
On Wed, Apr 13, 2011 at 7:56 AM, Eric Lentz wrote:
> @Dave>> The page displays the list--how could you not need it?
> Right, during display I need it. During *SAVE* I do not need it. During
> the save is when Struts is demanding it (incorrectly I feel).
If there's a validation error, the input pa
@Dave
> The page displays the list--how could you not need it?
Right, during display I need it. During *SAVE* I do not need it. During
the save is when Struts is demanding it (incorrectly I feel).
@stanlick
> Do you by chance need a @SkipValidation on a method(s) in your action?
How have you nam
36 matches
Mail list logo