A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Frameworks
»
Struts
Author
struts2 action display nothing with no error msg
garrick chen
Greenhorn
Joined: Jan 16, 2010
Posts: 13
posted
Feb 25, 2010 08:10:09
0
hi
there is some thing strange
suddenly all the s:action are failure and display nothing with no error message
i've checked the struts.xml and applicationContext.xml
now i have no idea why the problem show up
applicationContext.xml
<bean id="customerSortAction" class="com.dec.action.sort.CustomerSortAction" scope="prototype"> <property name="customerService" ref="customerService"></property> <property name="productService" ref="productService"></property> <property name="employeeService" ref="employeeService"></property> <property name="freightService" ref="freightService"></property> <property name="siteStylePriceService" ref="siteStylePriceService"></property> </bean>
struts.xml
<action name="sortSelect" class="customerSortAction"> <result>sortSelect.jsp</result> </action> <action name="sortSelect1" class="customerSortAction"> <result>sortSelect1.jsp</result> </action> <action name="customerSortAction" class="customerSortAction"> <result name="success">saveOrder.jsp</result> </action> <action name="saveOrderSalesSelect" class="customerSortAction"> <result>saveOrderSalesSelect.jsp</result> </action>
a.jsp
<s:form action="saveOrder" method="post" name="decorderselect" id="saveOrder"> <s:action name="sortSelect" executeResult="true"></s:action> </s:form>
b.jsp
<s:form action="updateOrder"> <s:action name="sortSelect1" executeResult="true"></s:action> <s:submit></s:submit>
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Feb 25, 2010 10:23:04
0
What did you change?
Is devMode turned on and logging turned up? What does the config-browser plugin indicate your configuration is? What's the rest of your configuration?
garrick chen
Greenhorn
Joined: Jan 16, 2010
Posts: 13
posted
Feb 25, 2010 19:53:40
0
XXXaction.java should be the reason
because i rebuild the XXXaction.java and it works well
isn't the s:action stable???
David Newton
Author
Rancher
Joined: Sep 29, 2008
Posts: 12617
I like...
posted
Feb 25, 2010 20:01:28
0
I don't know what you're trying to say.
garrick chen
Greenhorn
Joined: Jan 16, 2010
Posts: 13
posted
Feb 25, 2010 21:06:09
0
thanks a lot
now all the s:action work well
i did sort the action and remove the setter but the members named ****Service
CustomerSortAction
public class CustomerSortAction000 extends ActionSupport{ private List<Customer> customers; private List<Employee> employees; private List<Freight> freights; private List<Product> products; private List<SiteStylePrice> sitestyleprices; private Map<Integer,List<SiteStylePrice>> sitestylepricemap; private CustomerService customerService; private EmployeeService employeeService; private FreightService freightService; private ProductService productService; private SiteStylePriceService siteStylePriceService; private List<Integer> freightidlist; getter/setter
I agree. Here's the link:
jrebel
subject: struts2 action display nothing with no error msg
Similar Threads
Populating jsp page when validation fails - problem with s:action
(finished)Question related to s:select
Question related to s:select and s:action
Question related to s:doubleselect
Errr: requested resource xxxx.action is not available
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter