Re: Struts2 REST plugin problems

2011-07-02 Thread Aelbery Lee
Hi, all.

I'm currently using struts 2.2.3. I want to mix normal action with
restful action in the same web app. I searched and found here.

In my struts.mxl:










 





/WEB-INF/content/{1}.jsp


  

If I removed the PrefixBasedActionMapper and prefixMapping two lines,
/myapp/mymodule works fine with restful action.

But now /myapp/mymodule raise exception "method not found", execute();
And /myapp/ws/mymodule raise exception "action not found", ws action.

So I must make a mistake. Thanks for you help.

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4544292.html
Sent from the Struts - User mailing list archive at Nabble.com.

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



Re: Any examples struts1.x using json jquery ?

2011-07-02 Thread Dave Newton
A. Lotfi wrote:
> Where can I find an example of struts1.x using jquery and json ?

What specifically are you trying to do?

The use of jQuery/JSON is framework-neutral, any jQuery tutorial
should be trivially adaptable to S1.

Dave

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



Any examples struts1.x using json jquery ?

2011-07-02 Thread A. Lotfi

Hi,

Where can I find an example of struts1.x using jquery and json ?

if you know other examples for struts2.x using json and jquery please post them 
I will appreciate your help.
thanks




About StrutsTypeConverter

2011-07-02 Thread Vincent Lin
Hi!

I have a questsion about StrutsTypeConverter.
It has 2 methods to be implemented:

public Object convertFromString(Map context, String[] values, Class toClass) and
public String convertToString(Map context, Object o) .

Why the second parameter in convertFromString String[] instead of String?
Does it mean struts will pass a array of String to converter when
there are multiple parameter with the same name in JSP?

But in that case, how do we convert the object back to String[] when
the JSP is being rendered?

Best Regards,
Vincent

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