It's evaluating "ALL" as an OGNL expression, not a string literal. Use either

<s:url action="ListFeatures" namespace="/secure/json"><s:param name="status">ALL</s:param></s:url>

or

<s:url action="ListFeatures" namespace="/secure/json"><s:param name="status" value="'ALL'" /></s:url>

(notice the extra single quotes in the second one).

Hello All,

I'm trying to understand why the following does not produce a URL w/ the
requested parameter appended. Can someone please help me?

var url = "<s:url action="ListFeatures" namespace="/secure/json"><s:param name="status" value="ALL" /></s:url>";

//produces '/scufn/secure/json/ListFeatures.action'


Thanks!

--john


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



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

Reply via email to