portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohit Dadu (JIRA)" <jetspeed-...@portals.apache.org>
Subject [jira] Updated: (JS2-918) Jetspeed 2 QueryString / Input hidden parameter problem
Date Tue, 16 Dec 2008 14:18:44 GMT

     [ https://issues.apache.org/jira/browse/JS2-918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Mohit Dadu updated JS2-918:
---------------------------

    Remaining Estimate: 3h  (was: 24h)
     Original Estimate: 3h  (was: 24h)

> Jetspeed 2 QueryString / Input hidden parameter problem
> -------------------------------------------------------
>
>                 Key: JS2-918
>                 URL: https://issues.apache.org/jira/browse/JS2-918
>             Project: Jetspeed 2
>          Issue Type: Bug
>          Components: Other
>         Environment: Windows 2k3 Server
>            Reporter: Mohit Dadu
>   Original Estimate: 3h
>  Remaining Estimate: 3h
>
> I have a jsp page containing following code in javascript function:
> function <%=NSP%>result_onTrace(colIdx)
> {
> <%
> PortletURL traceURL = renderResponse.createRenderURL();
> traceURL.setParameter("dbid", dbid); 
> traceURL.setParameter("traceURL",TESTCASE_TRACE_URL);
> traceURL.setParameter("action", "myfolder/asset/customview");
> traceURL.setParameter("view", "com.xyz.on.rm.ire.customviews.TestCaseView");
> %>
> var input = document.createElement("INPUT");
> input.setAttribute("type", "hidden");
> input.setAttribute("value", colIdx);
> input.name = "scenarioId";
> input.id =  "scenarioId";
> var form = document.getElementById("<%=NSP%>TestResultsForm");
> form.appendChild(input);
> form.action = "<%=traceURL.toString()%>";  
> form.submit(); 
> }
> After submitting this form, the control reaches "TestCaseView.java", where i have PortletRequest
object.
> When i fetch the parameters like dbid, traceURL, i am getting their value.
> But when I try to fetch the parameter "scenarioId" (which is created as input hidden
parameter), i am getting null.
> I tried to pass "scenarioId" like this
> form.action = "<%=traceURL.toString()%>" + "?scenarioId="+ colldx;
> But still I am not able to fetch this parameter from PortletRequest.  
> Please suggest.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message