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
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
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?
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
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
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
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
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
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
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
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;
}
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;
}
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
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
hai,
what will happen when the execute () of action class is overrided by the
subclass called dispatch action?.
Regards
gomes
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
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
17 matches
Mail list logo