Hello,

I just installed the Jetspeed M2 version and till now I'm not familiar
with Jetspeed or Portlets.
So I do have a few questions some of you might easily answer:

First of all some information about my little project:

This is my directory tree: ("today" is my webapp)

tomcat
|
---webapps
   |
   ---today
   |  |
   |  ---META-INF
   |  |  |
   |  |  ---MANIFEST.MF
   |  |
   |  ---WEB-INF
   |     |
   |     ---portlet.xml
   |     |
   |     ---web.xml
   |     |
   |     ---classes
   |        |
   |        ---de
   |           |
   |           ---brhv
   |              |
   |              ---hs
   |                 |
   |                 ---diplom
   |                    |
   |                    ---glass
   |                       |
   |                       ---jetspeed
   |                          |
   |                          ---TodayPortlet.class
   |      
   ---jetspeed
      |
      ---WEB-INF
         |
         ---pages
            |
            ---default-page.psml


MANIFEST.MF
-----------
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.5.3 
Created-By: 1.4.2_06-b03 (Sun Microsystems Inc.)
Built-By: sascha

Name: org.apache.jetspeed
Specification-Title: today
Specification-Version: 2.0-M2
Specification-Vendor: Apache Software Foundation
Implementation-Title: org.apache.jetspeed
Implementation-Version: 2.0-M2
Implementation-Vendor: Apache Software Foundation


portlet.xml
-----------
<?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.x
sd 

http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd";>
        <portlet>
        <description>Today Portlet</description>
                
        <portlet-name>TodayPortlet</portlet-name>
                
        <display-name>Today Portlet</display-name>
                
 
<portlet-class>de.brhv.hs.diplom.glass.jetspeed.TodayPortlet</portlet-cl
ass>

        <expiration-cache>-1</expiration-cache>
                        
        <supports>
                        <mime-type>text/html</mime-type>
            <portlet-mode>VIEW</portlet-mode>
                </supports>

                <portlet-info>
                        <title>Today Portlet</title>
                        <short-title>Today</short-title>
                        <keywords>Today, current date</keywords>
        </portlet-info>
        </portlet>
 </portlet-app>



web.xml
-------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd";>
<web-app>
    <display-name>Today Portlet</display-name>
</web-app>


Questions
---------
- is the content of the documents ok?

- are there any documents missing?

- do I need the "tld"- and "view"-directorys?

- to view the portlet I edited the default-page.psml:

  <fragment id="dp-19" type="portlet" name="today::TodayPortlet">
        <property layout="TwoColumns" name="row" value="3" />
        <property layout="TwoColumns" name="column" value="0" />
  </fragment>
  
  But where do I find/calculate the id? The "dp-19" is just guessed!

  This is from the wiki.apache.org:
  
  "The id for the portlet fragment uses a unique combination of
${portlet.application.id}::${portlet.name} where
${portlet.application.id} is either the id in <portlet-app id="appid" >
or, if that is not present, he actual name of the war file that contains
your portlet app and {portlet.name} needs to be the value in the portlet
name tags, <portlet-name>MyPortlet</portlet-name>. Changes to the psml
will be picked up automatically and you should now be able to view your
portlet!"
  
  But where do I find "{portlet.application.id}::${portlet.name}" or
"<portlet-app id="appid" >" ?


If there are any other sources of information (ger/eng) for a newbee
like me please let me know so I do not waste your time.
Thank you very much.

Sascha



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to