08 09:47:33 +0800
> > From: farazali.fa...@gmail.com
> > To: user@struts.apache.org
> > Subject: Re: Please help! Validation Errors
> >
> > Any idea?
> >
> > On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali
> wrote:
> >
> > > Hi Andy
08 09:47:33 +0800
> From: farazali.fa...@gmail.com
> To: user@struts.apache.org
> Subject: Re: Please help! Validation Errors
>
> Any idea?
>
> On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali wrote:
>
> > Hi Andy,
> >
> > Please take a look at the code snipp
Any idea?
On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali wrote:
> Hi Andy,
>
> Please take a look at the code snippet and suggest.
>
> *MyAction.java*
> public class MyAction extends ActionSupport {
> //getAction
> //setAction
> public String execute() throws Exception {
> if(action==1) {
>
Hi Andy,
Please take a look at the code snippet and suggest.
*MyAction.java*
public class MyAction extends ActionSupport {
//getAction
//setAction
public String execute() throws Exception {
if(action==1) {
return "input";
} elseif(action==2) {
return "showResult";
} else {
retur
Faraz,
I think at this point some code would help. Could you post your
struts.xml, and the action?
Andy.
On 10 Dec 2008, at 17:16, Faraz Ali wrote:
Yes Andy, you are right. I added the , but why
it is
executing automatically. It is executed automatically when i start my
application.
On
--- On Wed, 12/10/08, Faraz Ali wrote:
> i mean when i access my application's main page. when i
> hit http://localhost:8080/mywebapp.
If you hit an action that has validations then this is correct behavior.
There are a few ways to handle this, including defining an action that runs the
action's
i mean when i access my application's main page. when i hit
http://localhost:8080/mywebapp.
On Thu, Dec 11, 2008 at 1:20 AM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- On Wed, 12/10/08, Faraz Ali wrote:
> > Yes Andy, you are right. I added the , but why it
> > is executing automatically. It i
--- On Wed, 12/10/08, Faraz Ali wrote:
> Yes Andy, you are right. I added the , but why it
> is executing automatically. It is executed automatically when i start
> my application.
What do you mean by "when i start my application"? Are you visiting a URL?
Dave
Yes Andy, you are right. I added the , but why it is
executing automatically. It is executed automatically when i start my
application.
On Wed, Dec 10, 2008 at 6:19 PM, Andy Sykes <[EMAIL PROTECTED]> wrote:
> Faraz,
>
> When using validation, the input result tells Struts where to
> dispatch/redi
Faraz,
When using validation, the input result tells Struts where to dispatch/
redirect to if there's a validation error. When you submit the form,
Struts checks the fields against the validation XML - if there's an
error, it adds FieldError objects to the FieldErrors object on the
value s
13:45:18,390 ERROR [ActionComponent] Could not execute action: /web/MyAction
No result defined for action com.web.actions.MyAction and result input -
action - file:/C:/
jboss-4.2.3.GA/server/default/tmp/deploy/tmp35854MyWeb-exp.war/WEB-INF/classes/struts.xml:12:69
1. I have a simple Action class M
11 matches
Mail list logo