-
Feb 28th, 2011, 05:31 AM
#1
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.
-
Feb 28th, 2011, 06:44 AM
#2
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>
-
Feb 28th, 2011, 08:56 AM
#3
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
-
Forum Rules