8 Replies Latest reply on Jan 22, 2008 12:05 PM by Alan Feng

    Redirect and GET parameters

    Paweł Stawicki Newbie


      There is page in my application with list of articles. I want to put there also links to articles, but I want to use redirect, for user to bookmark article page. Unfortunately I have problems putting this parameter into URL.

      In pages.xml I have something like this:

      <page view-id="/home.jsp">
       <rule if-outcome="viewArticle">
       <redirect view-id="/article.jsp" />

      home.jsp is my list of articles, there is something like this:
      <h:dataTable var="art" value="#{arts}">
       <s:link action="viewArticle" value="more...">
       <f:param name="articleId" value="#{art.articleId}"/>

      When I click the link, I am redirected to URL:

      There is no articleId parameter. I tried to put h:form and h:commandButton there instead of s:link, but it also didn't work.

      What am I doing wrong?

      I know there were questions like this on this forum, I found a few, but I didn't find answers.

      Best regards
      Pawel Stawicki