Am Mittwoch, 8. Oktober 2008 10:48:50 schrieb Nils-Helge Garli Hegvik:
> It's not directly supported (using action and namespace), but if I
> remember correctly you can use the "value" attribute to generate a
> regular "non-portlet" url.

I guess did find some bug.
I want to generate a regular servlet url using the value attribute. Works, but 
i need some parameters. 

<s:url id="pdfurl" value="/view/pdfaction.action">
        <s:param name="p1" value="20"></s:param>
</s:url>

does result in this exception:
Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to 
java.lang.String
        at 
org.apache.struts2.portlet.util.PortletUrlHelper.buildResourceUrl(PortletUrlHelper.java:210)
        at org.apache.struts2.components.URL.end(URL.java:260)
....

Not what i did expect.
How can i include/add parameters to my url?

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect."
        -- Linus Torvalds

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to