You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Bin Duan (JIRA)" <ji...@apache.org> on 2009/03/16 19:55:02 UTC

[jira] Created: (WW-3039) Can't not get parameter from GET

Can't not get parameter from GET
--------------------------------

                 Key: WW-3039
                 URL: https://issues.apache.org/struts/browse/WW-3039
             Project: Struts 2
          Issue Type: Bug
    Affects Versions: 2.1.6
         Environment: Windows XP 
            Reporter: Bin Duan


I was trying to get a parameter from a Http GET. The get from jsp looks like this: 

<a href=/providerDetail.action?drProviderId=${drProviderId}>Provider Name

The providerDetail.action maps to ProviderAction class. In the action class, I have a setDrProviderId() method, but found the id was not set. Then I tried to get the id from ServletActionRequest.getRequest().getParameter("drProviderId"), but still did not get anything. 

I searched the request.getParameterMap(), but found there was not entry in the map. 

What can be the problem.

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


[jira] Resolved: (WW-3039) Can't not get parameter from GET

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-3039.
---------------------------------

       Resolution: Not A Problem
    Fix Version/s: 2.1.7

Please ask questions in the user mailing list. As Dave said, this is unlikely to be a Struts 2 bug, re-open with a test case if you still think it is.

> Can't not get parameter from GET
> --------------------------------
>
>                 Key: WW-3039
>                 URL: https://issues.apache.org/struts/browse/WW-3039
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>         Environment: Windows XP 
>            Reporter: Bin Duan
>             Fix For: 2.1.7
>
>
> I was trying to get a parameter from a Http GET. The get from jsp looks like this: 
> <a href=/providerDetail.action?drProviderId=${drProviderId}>Provider Name
> The providerDetail.action maps to ProviderAction class. In the action class, I have a setDrProviderId() method, but found the id was not set. Then I tried to get the id from ServletActionRequest.getRequest().getParameter("drProviderId"), but still did not get anything. 
> I searched the request.getParameterMap(), but found there was not entry in the map. 
> What can be the problem.

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


[jira] Commented: (WW-3039) Can't not get parameter from GET

Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/struts/browse/WW-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=45722#action_45722 ] 

Dave Newton commented on WW-3039:
---------------------------------

I'm not convinced this is an S2 bug.

Is your link rendering with the information you expect? If it's not even in the request then it's unlikely to be directly related to S2.

> Can't not get parameter from GET
> --------------------------------
>
>                 Key: WW-3039
>                 URL: https://issues.apache.org/struts/browse/WW-3039
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.1.6
>         Environment: Windows XP 
>            Reporter: Bin Duan
>
> I was trying to get a parameter from a Http GET. The get from jsp looks like this: 
> <a href=/providerDetail.action?drProviderId=${drProviderId}>Provider Name
> The providerDetail.action maps to ProviderAction class. In the action class, I have a setDrProviderId() method, but found the id was not set. Then I tried to get the id from ServletActionRequest.getRequest().getParameter("drProviderId"), but still did not get anything. 
> I searched the request.getParameterMap(), but found there was not entry in the map. 
> What can be the problem.

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