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

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

2009-12-10 Thread Lukasz Lenart
2009/12/10 Nguyen Xuan Son yama...@gmail.com: 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

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 lukasz.len...@googlemail.com 2009/12/10 Nguyen Xuan Son yama...@gmail.com: 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?

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

2009-12-10 Thread Lukasz Lenart
2009/12/11 Nguyen Xuan Son yama...@gmail.com: 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

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 yama...@gmail.com: can you tell me more in detail? thank you very much You're probably accessing your application like that

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

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 action name=C0002_Home

Re: excute method

2009-11-27 Thread Nguyen Xuan Son
Dear Thompson Here is the web.xml's content welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list filter filter-namestruts2/filter-name filter-classorg.apache.struts2.dispatcher.FilterDispatcher/filter-class /filter filter-mapping filter-namestruts2/filter-name

Re: excute method

2009-11-27 Thread Wes Wannemacher
On Fri, Nov 27, 2009 at 4:04 AM, Nguyen Xuan Son yama...@gmail.com wrote: Dear Thompson Here is the web.xml's content welcome-file-list welcome-fileindex.jsp/welcome-file /welcome-file-list filter filter-namestruts2/filter-name

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

excute method

2009-11-26 Thread Nguyen Xuan Son
dear all in struts.xml i have action name=C0002_Home class=com.baibai.action.C0002_HomeAction result name=successC0002_Home.jsp/result /action however no matter how hard i tried public String execute() throws Exception { System.out.println(you're now in C0002_Home page); return SUCCESS; }

RE: excute method

2009-11-26 Thread Neil Aggarwal
in struts.xml i have action name=C0002_Home class=com.baibai.action.C0002_HomeAction result name=successC0002_Home.jsp/result /action however no matter how hard i tried public String execute() throws Exception { System.out.println(you're now in C0002_Home page); return SUCCESS; }

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 n...@jammconsulting.com wrote: in struts.xml i have action name=C0002_Home class=com.baibai.action.C0002_HomeAction     result name=successC0002_Home.jsp/result /action

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 yama...@gmail.com wrote: dear all in struts.xml i have action name=C0002_Home

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

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

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