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/ -

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