I'm still a newbie as well so take this with a pinch of salt. I would
try doing it this way;

http://www.domain.com/struts2/queryName?param1=foo,param2=xml
http://www.domain.com/struts2/queryName?param1=foo,param2=json
http://www.domain.com/struts2/queryName?param1=foo,param2=html
http://www.domain.com/struts2/queryName?param1=foo,param2=rss

Include getter and setter for param2 in your action and set your
result strings as appropriate to get the results you want so, for
example after executing your query, you could include in your action
method;

return getParam2()
which would return xml,json,html or rss and then in your struts.xml
you'd specify

<result name="xml">YourResultTypeForXML</result>
<result name="json">YourResultTypeForJSON</result>

etc etc

Does this help.

Regards
Roger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to