Ok.

In your .xreg file:

<portlet-entry name="myIframePortlet" parent="IframePortlet" hidden="false" type="ref" 
application="false">
<meta-info>
  <title>MyIframePortlet</title>
  <description>desc</description>
</meta-info>
<classname>org.apache.jetspeed.portal.portlets.IFramePortlet</classname>
<parameter name="source" value=".../myjspoutjetspeed.jsp" hidden="false" 
cachedOnName="true" cachedOnValue="true">
<parameter name="name" value="myiframe" hidden="false" cachedOnName="true" 
cachedOnValue="false">
.....
</portlet-entry>

Does it answer your question about target="myiframe"?
Then, from a jsp portlet, you can do somethink like form submission targeting your 
iframe:

<form name="form" action=".../myjspoutjetspeed.jsp&parameter1=<%=parameter1%>" 
target="myiframe" >

Or, you can submit on event by using javascript.

For exemple, on the portal i'm working on:

http://192.44.60.185/map/ 
login: Employee1
pass: map

There is a search engine for social assistants. Try to write some word( in french, 
sorry... )...
On change event, the iframe will be refreshed.

In this exemple, parameters passed from de jspPortlet to the iframePortlet aren't 
session infos, but it would be the same...

A+

Antoine

> -----Message d'origine-----
> De : Hassan GUERMOULE [mailto:[EMAIL PROTECTED]
> Envoy� : lundi 24 f�vrier 2003 15:15
> � : Jetspeed Users List
> Objet : R�f. : RE: Using Frame in JetSpeed with a jsp
> 
> 
> 
> Hi,
> 
> 
> can'you put an entier exemple, i dont understand what mean 
> "you refreash
> your jsp with all the parameters .."
> 
> 
> and the sens of "...target="myiframe" "
> 
> Thanks
> 
> hassan
> 
> 
> 
>                                                               
>                                                     
>                       "zze-Pilotexpo BONAMOUR                 
>                                                     
>                       Antoine FTRD/SVA/GRE"             Pour 
> :   "Jetspeed Users List"                            
>                       <[EMAIL PROTECTED]         
> <[EMAIL PROTECTED]>                        
>                       elecom.com>                       cc :  
>                                                     
>                                                         Objet 
> :  RE: Using Frame in JetSpeed with a jsp           
>                       24/02/2003 12:52                        
>                                                     
>                       Veuillez r�pondre �                     
>                                                     
>                       "Jetspeed Users List"                   
>                                                     
>                                                               
>                                                     
>                                                               
>                                                     
> 
> 
> 
> Hi,
> 
> I use 2 difernet way to solve this pb.
> 
> 1/ You put an invisible form with hidden field in one of your portlet.
> Then you read those field from your jsp in the iframe by using
> javascript.
> 
> 2/ In one of your portlet, you refreash your jsp with all the 
> parameters
> you need.
> Exemple:
> In a jspPortlet:
> <form name="form" action="..../myjsp.jsp&parameter1=<%=parameter1%>"
> target="myiframe" >
> 
> Then Parameter1 could be session properties.
> 
> I use somethink like this, it works.
> 
> Antoine.
> 
> > -----Message d'origine-----
> > De : Th?o [mailto:[EMAIL PROTECTED]
> > Envoye : lundi 24 fevrier 2003 12:43
> > A : Jetspeed Developers List; Jetspeed Users List
> > Objet : Re: Using Frame in JetSpeed with a jsp
> >
> >
> > But if i put the jsp out off the web-inf
> > , i could not access to  Application
> > Session into my jsp.
> > I got a nullPointEexception when try to
> > access !
> >
> >
> > RunData data=
> > (RunData)request.getAttribute("rundata")
> > ;
> > String
> > fileId=(String)data.getSession().getAttr
> > ibute("FileId");
> > String
> > fileSze=(String)data.getSession().getAtt
> > ribute("FileSze");
> >
> > have anybody a idea !
> >
> > Thanks by advance.
> >
> > Thierry Unimon
> > Groupe Cgbi
> > 69 Bvd gallieni
> > poste :0155955422
> > [EMAIL PROTECTED]
> >
> >
> >
> >
> > ----- Original Message -----
> > From: "Aurelien Pernoud"
> > <[EMAIL PROTECTED]>
> > To: "'Jetspeed Users List'"
> > <[EMAIL PROTECTED]>
> > Sent: Monday, February 24, 2003 11:55 AM
> > Subject: RE: Using Frame in JetSpeed
> > with a jsp
> >
> >
> > |
> > | It's not Jetspeed. When using a
> > IFramePortlet, it's your browser that
> > makes
> > | the request.
> > | And you can't request a resource that
> > is in WEB-INF directory directly.
> > |
> > | Tho a ecrit :
> > |
> > | > In fact Jetspeed don't look at the
> > rigth
> > | > place.
> > | > I want hilm to found it in the Jsp
> > | > directory:
> > | > web-inf/templates/jsp/portlets/html
> > | >
> > | > but even when i put the the right
> > Url i
> > | > got a "HTTP 404 not found",
> > | > If the jsp is in the jestspeedhome/
> > it
> > | > look working !
> > | >
> > | >
> > | > Thierry Unimon
> > | > Groupe Cgbi
> > | > 69 Bvd gallieni
> > | > poste :0155955422
> > | > [EMAIL PROTECTED]
> > |
> > |
> > | --------------------------------------
> > -------------------------------
> > | To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > .org
> > | For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > |
> >
> >
> >
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to