struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ish <forum-struts-...@opensymphony.com>
Subject Struts 2.1 and Struts Json PlugIn problem
Date Fri, 04 Jul 2008 11:13:52 GMT
Hi

<p>
I am using struts 2 and jsp in my project. I have jsp page, which uses data in ajson format.
I have created 
<p>
my Actiion look like this <p>

JSONObject obj=new JSONObject();<p>
obj.put("StartDate","2008-02-26 12:00:00");<p>
obj.put("GoogleRef","61.92411, 25.748151");<p>
obj.put("Element","DVD/Topcover");<p>
obj.put("Film","Evan Almighty");<p>
System.out.println("getJsonObject obj........."  + obj);<p>
myJSONObject = obj;
<p>

struts.xml <p>
<package name="test" extends="campaign" namespace="/test"><p>
  <default-interceptor-ref name="completeStack" /><p>
	
  <action name="FilmAction2" 
 class="campaign.web.struts.test.VendorNbrJsonAction"><p>
      <result type="json">/WEB-INF/jsp/json.jsp</result><p>
  </action>
<p>
</package>
<p>

When I start tomcat, I am getting following error. <p>

Error building results for action FilmAction in namespace /test - action - file:/C:/Environment2/workspace/campaign/war/WEB-INF/classes/struts-Test.xml:32:99.
<p>

I do have jsonplug in my lib dir.
<p>
Please can some one help, where I am going wronge.

<p>

Many Thank
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=384184&messageID=470888#470888


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message