To: user@struts.apache.org
Subject: Re: Please help! Validation Errors
Any idea?
On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali farazali.fa...@gmail.com
wrote:
Hi Andy,
Please take a look at the code snippet and suggest.
*MyAction.java*
public class MyAction extends
Any idea?
On Fri, Dec 12, 2008 at 6:04 PM, Faraz Ali farazali.fa...@gmail.com 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 {
party other than intended recipient. Sender does
not necessarily endorse content contained within this transmission.
Date: Mon, 15 Dec 2008 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
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 {
return
Yes Andy, you are right. I added the result name=input, 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
--- On Wed, 12/10/08, Faraz Ali wrote:
Yes Andy, you are right. I added the result name=input, 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
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 result name=input, but why it
is executing
--- 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
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 result name=input, but why
it is
executing automatically. It is executed automatically when i start my
9 matches
Mail list logo