struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Pratt <thechrispr...@gmail.com>
Subject Re: jqGrid with Struts and Spring
Date Mon, 18 Oct 2010 07:01:34 GMT
The only things I can think of to check would be, do you have the
struts2-spring-plugin.jar file in your WEB-INF/lib directory? And have you
set the struts.objectFactory property to "spring"?

<constant name="struts.objectFactory" value="spring"/>

   (*Chris*)

On Sun, Oct 17, 2010 at 7:34 PM, cellterry <cellterry@gmail.com> wrote:

>
> Hello all,
>
> I get a bug in firebug Net console which is strange as I thought I have
> already correct configurations in the struts.xml and
> applicationContext.xml.
>
> The table frame can be seen without data loaded.
>
> Bug:
>
> java.lang.RuntimeException: Invalid action class configuration that
> references an unknown class named [ajaxEmps]
>
> org.apache.struts2.convention.ConventionsServiceImpl.determineResultPath(ConventionsServiceImpl.java:100)
> :
> :
>
> applicationContext.xml:
> :
> :
>        <bean id="ajaxEmps" class="ajax.Emps" scope="prototype">
>                <property name="serviceEmp" ref="serviceEmp" />
>        </bean>
> :
> :
>
> struts.xml:
>
>        <package name="ajax" namespace="/" extends="json-default">
> :
> :
>                <action name="ajaxEmps" class="ajaxEmps">
>                        <result type="json" />
>                </action>
> :
> :
>        </package>
>
> emps.jsp:
>
> :
> :
>
> <script>
> $(document).ready(function() {
>        jQuery("#emps").jqGrid({
>            url : "ajaxEmps.action",
> :
> :
>
> Emps.java
>
> package ajax;
>
> :
> :
>
> @SuppressWarnings("serial")
> public class Emps extends ActionSupport {
>
> :
> :
>
>
> Do anyone know why?
>
> Terry.
>
> --
> View this message in context:
> http://old.nabble.com/jqGrid-with-Struts-and-Spring-tp29986994p29986994.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message