struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Musachy Barroso" <musa...@gmail.com>
Subject Re: Struts 2.1 and Struts Json PlugIn problem
Date Fri, 04 Jul 2008 19:59:03 GMT
Please post your questions on the user mailing list; this list is for
the development of the framework itself.

musachy

On Fri, Jul 4, 2008 at 12:13 PM, Ish <forum-struts-dev@opensymphony.com> wrote:
> 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
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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


Mime
View raw message