Re: excute method will not work without the form's button

2009-12-10 Thread Saeed Iqbal
Or index only instead of index.action On Fri, Dec 11, 2009 at 12:06 PM, Lukasz Lenart < lukasz.len...@googlemail.com> wrote: > 2009/12/11 Nguyen Xuan Son : > > can you tell me more in detail? > > thank you very much > > You're probably accessing your application like that > http://localhost:8080/

Re: excute method will not work without the form's button

2009-12-10 Thread Lukasz Lenart
2009/12/11 Nguyen Xuan Son : > can you tell me more in detail? > thank you very much You're probably accessing your application like that http://localhost:8080/myapp/index.jsp And in such case, action isn't executed. Try to create action that will have execute() method and will return SUCCESS and

Re: excute method will not work without the form's button

2009-12-10 Thread Nguyen Xuan Son
can you tell me more in detail? thank you very much 2009/12/11 Lukasz Lenart > 2009/12/10 Nguyen Xuan Son : > > is there any way that whenever I access to the JSP webpage > > the source code which helps display data using display tag will be > execute? > > Yes, do not go directly to jsp pages, a

Re: excute method will not work without the form's button

2009-12-10 Thread Lukasz Lenart
2009/12/10 Nguyen Xuan Son : > is there any way that whenever I access to the JSP webpage > the source code which helps display data using display tag will be execute? Yes, do not go directly to jsp pages, always access them through actions ;-) Regards -- Lukasz http://www.lenart.org.pl/ -

excute method will not work without the form's button

2009-12-10 Thread Nguyen Xuan Son
dear all I realized that the execute method could not be reached without the form's button in detail, my example is that i want to display the data table using display tag whenever the page is open i placed all the source code in the execute method however nothing is displayed after i inserted the

Re: excute method

2009-11-29 Thread Brian Thompson
Several people have mentioned Preparable, but TBH I'm not sure why. The OP is really just trying to get a "Hello World" Struts app working ... something for which Preparable is irrelevant. Wes's questions are good - I'd also like to see the Action class declaration, the contents of the log, and t

Re: excute method

2009-11-27 Thread Oscar
I think that you have to implement Preparable interface, and you can't declare prepare() throwing an exception because that's not permitted by methods implementation rules (if i'm wrong tell me please). Wes Wannemacher escribió: On Fri, Nov 27, 2009 at 4:04 AM, Nguyen Xuan Son wrote: Dear

Re: excute method

2009-11-27 Thread Wes Wannemacher
On Fri, Nov 27, 2009 at 4:04 AM, Nguyen Xuan Son wrote: > Dear Thompson > Here is the web.xml's content > > index.jsp > > > struts2 > org.apache.struts2.dispatcher.FilterDispatcher > > > > struts2 > /* > > > I've try to use > void prepare() throws Exception { > System.out.println("you're now

Re: excute method

2009-11-27 Thread Nguyen Xuan Son
Dear Thompson Here is the web.xml's content index.jsp struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* I've try to use void prepare() throws Exception { System.out.println("you're now in C0002_Home page"); } but it still doesnt work out please tell me what should i correct

Re: excute method

2009-11-27 Thread Eduard Neuwirt
Hello, try to find you message in the Servlet-Container log file. I am not sure abot the target of system.out in the jee context, i suppose it would be the log file. Regards Eduard Nguyen Xuan Son schrieb: dear all in struts.xml i have C0002_Home.jsp however no matter how hard i trie

Re: excute method

2009-11-26 Thread Brian Thompson
Could you post your web.xml? This sounds like it might be a problem with the Struts filter not being configured properly. -Brian On Fri, Nov 27, 2009 at 12:06 AM, Nguyen Xuan Son wrote: > dear all > in struts.xml i have > >C0002_Home.jsp > > > however no matter how hard i tried > publi

Re: excute method

2009-11-26 Thread Saeed Iqbal
If execute doesnt give you what you need you can always implement preparable On Friday, November 27, 2009, Neil Aggarwal wrote: >> in struts.xml i have >> >>     C0002_Home.jsp >> >> >> however no matter how hard i tried >> public String execute() throws Exception { >> System.out.println("you'r

RE: excute method

2009-11-26 Thread Neil Aggarwal
> in struts.xml i have > > C0002_Home.jsp > > > however no matter how hard i tried > public String execute() throws Exception { > System.out.println("you're now in C0002_Home page"); > return SUCCESS; > } > nothing is excuted Try adding a result name="input", I think success is only execute

excute method

2009-11-26 Thread Nguyen Xuan Son
dear all in struts.xml i have C0002_Home.jsp however no matter how hard i tried public String execute() throws Exception { System.out.println("you're now in C0002_Home page"); return SUCCESS; } nothing is excuted please tell me where should i correct? thank you very much -- ==

Re: about overriding the excute method

2006-08-23 Thread Scott Van Wart
Gomathi wrote: hai, what will happen when the execute () of action class is overrided by the subclass called dispatch action?. Regards gomes If you mean extending DispatchAction, your execute() method will get called. Unless you have a call to super.execute() (which then calls DispatchA

Re: about overriding the excute method

2006-08-23 Thread Monkeyden
"Object Oriented Programming" I would suggest investing in a copy of Java POOP [ http://stevenf.com/mt/gfx/javapoop.jpg]? Of course we know it's an acronym for "Principles of Object Oriented Programming", but good times nonetheless. On 8/23/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote: the o

Re: about overriding the excute method

2006-08-23 Thread Leon Rosenberg
the overriding action's method will be called, what do you expect? leon On 8/23/06, Gomathi <[EMAIL PROTECTED]> wrote: hai, what will happen when the execute () of action class is overrided by the subclass called dispatch action?. Regards gomes -

about overriding the excute method

2006-08-23 Thread Gomathi
hai, what will happen when the execute () of action class is overrided by the subclass called dispatch action?. Regards gomes