You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "James Holmes (JIRA)" <ji...@apache.org> on 2007/08/12 01:03:18 UTC

[jira] Issue Comment Edited: (WW-2104) Need to create StrutsRequestWrapper objects to resolve request attributes from the value stack

    [ https://issues.apache.org/struts/browse/WW-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_41801 ] 

jholmes edited comment on WW-2104 at 8/11/07 4:02 PM:
-----------------------------------------------------------

Many thanks for opening the ticket and putting together the initial code! I am testing it now and it is working for me using Jetspeed 2. The Displaytag library is now picking up objects on the valuestack.

One thing I noticed though is that you have to define the DispatcherServlet in web.xml using the specific name "dispatcherServlet". I'm wondering if there is a way to make this dynamic. By that I mean that you can use any name for the servlet and the Struts 2 portlet code will automatically find the servlet. If not, I propose we make the name be something like "Struts2PortletDispatcherServlet" that is more descriptive and less likely to have any name conflict with another servlet someone might have.

      was (Author: jholmes):
    Many thanks for opening the ticket and putting together the initial code! I am testing it now and it is working for me. The Displaytag library is now picking up objects on the valuestack.

One thing I noticed though is that you have to define the DispatcherServlet in web.xml using the specific name "dispatcherServlet". I'm wondering if there is a way to make this dynamic. By that I mean that you can use any name for the servlet and the Struts 2 portlet code will automatically find the servlet. If not, I propose we make the name be something like "Struts2PortletDispatcherServlet" that is more descriptive and less likely to have any name conflict with another servlet someone might have.
  
> Need to create StrutsRequestWrapper objects to resolve request attributes from the value stack
> ----------------------------------------------------------------------------------------------
>
>                 Key: WW-2104
>                 URL: https://issues.apache.org/struts/browse/WW-2104
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Portlet Integration
>            Reporter: Nils-Helge Garli
>            Assignee: Nils-Helge Garli
>             Fix For: 2.1.0
>
>
> Since there is no wrapping of the render request when dispatching to the JSPs, request attributes will not be resolved from the value stack, and tags such as displaytag won't work unless objects are explicitly put on the request as an attribute.

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