Results 1 to 3 of 3

Thread: Multiple Portlets in a Single web application

  1. #1
    Join Date
    Mar 2010
    Posts
    6

    Default Multiple Portlets in a Single web application

    Hi All,
    I do not know whether this is a right forum or not. I am very much new to Spring. I just saw a web application which is when deployed makes three portlets. Can anyone tell me as how this is achieved. I know about a single portlet per web application but this multiple portlets per war file is new to me.

    Thanks in advance.

    Regards,
    dirshah.

  2. #2
    Join Date
    Jan 2010
    Posts
    17

    Default

    you have to make a configuration xml for each portlet an in portlet.xml
    configure this way
    <portlet>
    <portlet-name>my-portlet</portlet-name>
    <portlet-class>org.springframework.web.portlet.DispatcherPo rtlet</portlet-class>
    <init-param>
    <name>contextConfigLocation</name>
    <value>/WEB-INF/context/my-portlet.xml</value>
    </init-param>
    <supports>
    <mime-type>text/html</mime-type>
    <portlet-mode>view</portlet-mode>
    <portlet-mode>edit</portlet-mode>
    <portlet-mode>help</portlet-mode>
    </supports>

    </portlet>

  3. #3
    Join Date
    Mar 2010
    Posts
    6

    Default

    Thanks a lot,
    In the mean time, I also looked in for some tutorials and found the exact same solution provided by you.

    Thanks a lot for your help.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •