--- On Mon, 8/11/08, Ylva Degerfeldt <[EMAIL PROTECTED]> wrote: > Well the action that should be executed after a submit from > the first page (called "NameAndCv.jsp") extends ActionSupport. > > But maybe this problem is due to another thing I'm > insecure about... > > I run my application just by the Run command of NetBeans, > having set the welcome-file tag to "NameAndCv.jsp" in > web.xml. Your question reminded me that I'm unsure about > how to actually start the application (yes, I'm a complete > newbie about Struts 2). Do I have to start by calling an > action (and not by calling a JSP), and how do I do > that? Is there some standard, already defined action that I > can call (since this action only has to return "success" > and nothing else)?
If you're calling a JSP page directly (almost never a good idea) it won't go through the action request process, so you won't have anything on the value stack. Most S2 tags depends on something being on the value stack--like <s:text...>. You can configure an action without a class and S2 will use (normally) ActionSupport, the default execute() method returns "success": <action name="foo"> <result>/WEB-INF/jsps/foo.jsp</result> </action> > And how do I tell NetBeans that it should start by running an action? I'm not sure how to answer that; all NetBeans will do is start the application server, and you make requests to the app. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]