- This topic has 1 reply, 2 voices, and was last updated 17 years, 5 months ago by Riyad Kalla.
-
AuthorPosts
-
laxmi.boseMemberHi ,
While Creating JSR168 Portlet projects on WSAD5.1.2
different pattern of Portlet.xml files are generated.Attached below is the code
Past apllications are working fine ,present applications are
not getting loaded on Portal page,though i f am replacing with old portlet.xml patternCould anyone help me out on the changes to be made to make my protlet application work.
Thank u,
Previous Pattern:
<?xml version=”1.0″ encoding=”UTF-8″?>
<portlet-app xmlns=”http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd” version=”1.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd”>
<portlet>
<portlet-name>Simple</portlet-name>
<display-name>Simple portlet</display-name>
<display-name xml:lang=”en”>Simple portlet</display-name>
<portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
<init-param>
<name>contextConfigLocation</name>
<value>/WEB-INF/context/portletconfig.xml</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode></supports>
<portlet-info>
<title>Simple portlet</title>
</portlet-info>
</portlet>
</portlet-app>Present Pattern:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE portlet-app-def PUBLIC "-//IBM//DTD Portlet Application 1.1//EN" "portlet_1.1.dtd"> <portlet-app-def> <portlet-app uid="org.sample.test.HelloWorld.a6b3117a41" major-version="1" minor-version="0"> <portlet-app-name>HelloWorld application</portlet-app-name> <portlet id="org.sample.test.HelloWorld.a6b3117a41" href="WEB-INF/web.xml#org.sample.test.HelloWorld.a6b3117a41" major-version="1" minor-version="0"> <portlet-name>HelloWorld portlet</portlet-name> <cache> <expires>0</expires> <shared>NO</shared> </cache> <allows> <maximized/> <minimized/> </allows> <supports> <markup name="html"> <view/> </markup> </supports> </portlet> </portlet-app> <concrete-portlet-app uid="org.sample.test.HelloWorld.a6b3117a41.1"> <portlet-app-name>HelloWorld application</portlet-app-name> <concrete-portlet href="#org.sample.test.HelloWorld.a6b3117a41"> <portlet-name>HelloWorld portlet</portlet-name> <default-locale>en</default-locale> <language locale="en"> <title>HelloWorld portlet</title> <title-short></title-short> <description></description> <keywords></keywords> </language> </concrete-portlet> </concrete-portlet-app> </portlet-app-def>
Riyad KallaMemberMoving to OT > Soft Dev
-
AuthorPosts