Hello Paul,

Thanks so far for your help, but I haven't managed to get it to work yet, since
I'm confused what exactly to do.
I have 7 JSP files, they are all linking to eachother and I want them all to be
in one directory. The portlet should open the index.jsp, from where I can link
to the other JSP pages (addtopic.jsp, viewtopic.jsp etc..)

I've chosen to use your last option, because I want to have all JSP inside the
Jetspeed environment.

This is what I did so far:

1. I put all the JSP pages in
<jetspeed_home>/WEB-INF/templates/jsp/portlets/html/forum>
2. I edited the demo-portlets.xreg as described in my previous mail (see below)
3. I created the directory <jetspeed_home>/WEB-INF/psml/group/forum/html

Is this right so far? Like this I can add the portlet and see the index.jsp, but
I can't link to the other JSP pages in that same directory.

What I don't understand from your reply is:

1. You wrote the code
      <portlet-entry name="Forum_AddTopic" hidden="false" type="ref
      ...
      etc.

   In what file should I add this code? I don't have a file called
local-portlets
   And from your description I understand that I should add this code for every
JSP file??

2. What should de .PSML file look like?

I hope you understand my problem and I'm sorry if this is basic stuff, but I
just haven't been able for find any information on this.

Thanks again,
Jasper


> Jasper van den Bergh,
>
> Please post this on the mailing list so others can benefit.
>
> Where is the file addtopic.jsp?  If the file is under
> <jetspeed_home>/WEB-INF, then it can not be referenced directly.
>
> Options:
> o Place addtopic.jsp in place that is directly accessible, i.e.
>    <tomcat_home>/webapps/ROOT. Now the user is outside of the
>    portal environment
>
> o Place addtopic.jsp in place that is directly accessible, i.e.
>    <tomcat_home>/webapps/ROOT and reference add attribute
>    "target='_blank'" to force the addtopic to be place in a popup
>    window. Now the user is outside of the portal environment and
>    you have to manage the popup window.
>
> o Place addtopic.jsp in a portlet, place the portlet in a group page,
>    and link to the group page.  I recommend this approach
>    From local-portlets
>       <portlet-entry name="Forum_AddTopic" hidden="false" type="ref"
>           parent="JSP" application="false">
>           <meta-info>
>               <title>ForumAddTopic</title>
>               <description>Add a topic to the Forum Portlet</description>
>           </meta-info>
>           <parameter name="template"
>               value="forum/addtopic.jsp" hidden="false"/>
>           <media-type ref="html"/>
>       </portlet-entry>
>
>     From the "forum" group "add" PSML file
> (<jetspeed_home>/WEB-INF/psml/group/forum/html/add.psml):
>      <entry parent="Forum_AddTopic">
>
>    The link:
>      http://localhost/jetspeed/portal/group/forum/page/add
>
>    As an example see the news page in the apache group that is part
>    of jetspeed.
>        http://localhost/jetspeed/portal/group/apache/page/news
>
>
> [EMAIL PROTECTED] wrote:
>
> >
> >
> > Hello Paul,
> >
> > I came across this discussion thread and I hope you don't mind me emailing
you,
> > but I have a question that I hope you can answer for me.
> >
> > I have a little JSP project consisting of 7 .JSP files that I want to use in
> > Jetspeed (it's a simple discussion forum). I have copied those 7 files into
the
> > <jetspeed_home>/WEB-INF/templates/jsp/portlets/html/forum> directory.
> > Then I edited the demo-portlets.xreg file and added the following lines
> >
> >     <portlet-entry name="Forum_JSP" hidden="false" type="ref"
> >         parent="JSP" application="false">
> >         <meta-info>
> >             <title>ForumJSP</title>
> >             <description>JSP Forum Portlet</description>
> >         </meta-info>
> >         <parameter name="template"
> >             value="forum/index.jsp" hidden="false"/>
> >         <media-type ref="html"/>
> >     </portlet-entry>
> >
> > Then I've added the portlet to the Jetspeed portal and I can see the
index.jsp
> > page. So far so good. Now, on the index.jsp there is a link to another .JSP
page
> >  (addtopic.jsp) but when I click on it Tomcat gives a 404 Not Found error.
> >
> > Can you tell me what I must do to get this to work? I would greatly
appreciate
> > your help.
> >
> > Regards,
> > Jasper van den Bergh
> > ICT
> > Netherlands
> >
> > -------------------------------
> >
> >
> >>>(2) How do we write .jsp portlets???  because I see a JSP Hello World
> >>>portlet which comes with Jetspeed.  Looks to me there is a class file for
> >>>that, so is that really a JSP?? or Java??
> >>>
> >
> >
> >>1) Place you jsp in the appropriate directory, i.e.
> >><jetspeed_home>/WEB-INF/templates/jsp/portlets/<media_type>[/language]
> >>
> >
> >>2) Add the registry entry to local-portlet.xreg.  See the registry entry
> >>for HelloJSP in demo-portlets.xreg as an example. No class name is needed.
> >>



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

Reply via email to