facebook

Portlet Deployment Descriptor Issue

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #274663 Reply

    laxmi.bose
    Member

    Hi ,

    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 pattern

    Could 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&#8221; version=”1.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221; 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”&gt;
    <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>
    
    #274700 Reply

    Riyad Kalla
    Member

    Moving to OT > Soft Dev

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Portlet Deployment Descriptor Issue

You must be logged in to post in the forum log in