> a) Can I extend the first line as <s:url id="smdUrl" namespace="/nodecorate"
> action="SMDAction" *method="list"*/> (save ,delete also) and NOT define any
> interceptors?

yes you can specify method in the url. You do not define interceptors
in the url, but the action mapping.

> b) If I have to define interceptors is it gonna be something like this
> @InterceptorRefs({
>   @InterceptorRef("list"),
>   @InterceptorRef("save")
>   @InterceptorRef("delete")
> })  on the class.
>

Do you have an interceptor stack for each method? I think you are
getting things mixed here.

> c) Doc says: Add the map inside a package that extends
> "json-default"<package name="example" extends="
> *json-default*">
> <action name="JSONExample" class="example.JSONExample">
> <result type="json"/>
> </action>
> </package>
>

Create a package that extends the json package (it inherits the
results and interceptor there), and then use the @ParentPackage
(http://cwiki.apache.org/WW/convention-plugin.html#ConventionPlugin-ParentPackageannotation)
in your actions.

> Do i need this extends parameter? If so, how can i use it with convention
> plugin?
>
> One more thing: Which libs do i need: Just jsonplugin-0.32.jar* *and
> struts2-dojo-plugin-2.1.5.jar. What is the purpose of json-lib-2.1.jar?

You don't need json-lib. If you are just getting started this might be
confusing, I would suggest that you get the crud working with plain
html first, using convention, and then try to port it to JSON RPC, it
will be easier (and less frustrating if you are learning)

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

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to