ParameterParser have a broken national char after receive from form with multipart/form-data

2004-06-25 Thread Vladimir Figurov
Hello.
I have a trubles with upload files:
If the HTML-form with attribute  enctype=multipart/form-data has 
additional text fields, besides a field input type=file/, values 
(national characters) of these fields come in the broken kind.
;(
For example:

html
head
base href=http://localhost/kka/;
link href=css/kka.css type=text/css rel=stylesheet
titleUniform Register/title
/head
body
table
form method=post action=http://localhost/kka/portal; enctype=multipart/form-data
 INPUT TYPE=hidden NAME=js_peid VALUE=P-fd45ded0f7-10004/
 input type=hidden name=currPage value=1/
 tr
   tdDescription:/td
-- -  --
----
-- THIS FIELD A BROKEN in request --
----
----
   td*input type=text name=title size=100 maxlength=255/*/td
----
-- -  --
 /tr
 tr
   tdSpecify a file for loading ( =100 Kbyte):/td
   tdinput type=file name=content_file//td
 /tr
 tr
   td colspan=2 
 input type=submit name=eventSubmit_doAdd value=Add/
   /td
 /tr
 /form
/table
/body
/html
CODE in xxxAction.java:
...
ParameterParser parameters = rundata.getParameters();
String title = parameters.getString(title,null);  -- BROKEN 
National characters 8(((
--

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


Re: Jetspeed 2 build failed

2004-06-25 Thread Ate Douma

Waqar Sadiq wrote:
 

I have downloaded jetspeed-2 source and am trying to build it.  However the
build fails because it cannot load the jdbc drivers.  The error is
ClassNotFound error that fails to load com.p6spy.engine.spy.P6SpyDriver.  I
have downloaded the P6Spy driver but am not clear how to configure it so
that jetspeed-2 build system will find it.  Any help is appreciated.
The P6Spy driver is only used in the sample build.properties. It is not used or
required for J2.
I've updated the build.properties.sample to using the default hsqldb configuration
and added a separate build.properties.sample.oracle9i configuration for oracle9i
without the P6Spy drivers.
Please, read the online documentation
  http://portals.apache.org/jetspeed-2/getting-started.html
and
  http://portals.apache.org/jetspeed-2/database.html
All what is needed to get Jetspeed 2 up and running is specified there.
 

 

___
Waqar Sadiq
 

President
Practice Pacs, LLC
5809 Dove Creek Lane
Plano, TX 75093
 

Phone: (469) 556-1354
Email:  mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]
___
 



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


RE: hello christoph ...class not found Exception ..

2004-06-25 Thread Maruthi
Hello..
I tried by adding jsp:useBean ...but i am getting this error message.Below is the 
error message i am getting...in addition to java.lang.ClassNotFoundException.

Error encountered processing a template: 
/portlets/html/RegistrationJSPTemplate.jspjavax.servlet.ServletException: 
org/apache/jetspeed/modules/actions/portlets/RegistrationJSPAction (wrong name: 
RegistrationJSPAction) at 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244) at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
___
I tried all the options yesterday and todayno use...Below are my JSP code and 
.xreg file..can you suggest is there any mistake still in my coding ...?
 
Please reply,
Thank you very much,
Maruthi.
 
==
RegistrationJSPTemplate.jsp
==
%@ pagelanguage=java contentType=text/html % 
%@ pageimport = java.io.* % 
%@ pageimport = java.lang.* % 
%@ pageimport = java.sql.* % 
%@ page  import = org.apache.turbine.util.RunData % 
%@ page  import = org.apache.turbine.util.Log % 
%@ taglib  uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %
jsp:useBean id=myRegistrationJSPAction 
class=org.apache.jetspeed.modules.actions.portlets.RegistrationJSPAction 
scope=request /

  % 
  try 
  {
 
   RunData rundata=(RunData)request.getAttribute(rundata);
   String jspeid = (String) request.getAttribute(js_peid);
  
   String userid=(String)request.getAttribute(userid);
   String password=(String)request.getAttribute(password);
   String fname=(String)request.getAttribute(fname);
   String lname=(String)request.getAttribute(lname);
   String email=(String)request.getAttribute(email);
   String dob=(String)request.getAttribute(dob);
   String sex=(String)request.getAttribute(sex);
   String education=(String)request.getAttribute(education);
   String telhome=(String)request.getAttribute(th);
   String telmob=(String)request.getAttribute(tm);
   String street=(String)request.getAttribute(streetnhno);
   String city=(String)request.getAttribute(city);
   String zip=(String)request.getAttribute(zip);
   String country=(String)request.getAttribute(country); 
   
  %
   body bgcolor=red
   FONT face=Verdana,Geneva,Arial color=#FFFAFA size=1
   brbr
   h3 align=centerfont color=bluebREGISTRATION FORM/b/font/h3
   
   
   brbr
   center
   table bgcolor=#CDC673 align=center
   
tr
 tdbUser-ID:b/td
 tdinput type=text name=userid value= size=20/td
/tr
   
tr
 tdPassword:/td
 tdinput type=password name=password size=20/td
/tr
   
tr
 tdRe-Enter Password:/td
 tdinput type=password name=rpassword size=20/td
/tr
   

tr
 tdFirst Name:/td 
 tdinput type=text name=fname value= size=20 align='right'/td
/tr
   
tr
 tdLast Name:/td
 tdinput type=text name=lname value= size=20 //td
/tr
   
   
tr
 tdE-Mail:/td
 tdinput type=text name=email value= size=20/td
   
/tr
   
   
tr
 tdDate Of Birth (DD/MM/YY):/td
 tdinput type=text name=dob value= size=20/td
/tr
tr
  tdSex:/td
td Male:input type=radio name=sex value=Male checked 
Female:input type=radio name=sex value=Female/td
/tr
tr
   
  tdEducation:/td

  td
   select name=education
   
   option value=ar AR(ET  IT)
   option value=ceCE.
   option value=eeitEEIT
   option value=meME
   /select 
  /td
 /tr
 tr
  tdTelephone Home:/td
  tdinput type=text name=th value= size=20
   /td
 /tr
   
 tr
  tdTelephone Mobile:/td
  tdinput type=text name=tm value= size=20
 /td  
 /tr
   
 tr
  tdStreetH.NO:/td
  tdinput type=text name=streetnhno value= size=20
   /td
 /tr
 
 tr
  tdCity:/td
  tdinput type=text name=city value= size=20
  /td
 /tr
   
 tr
  tdZIP :/td
  tdinput type=text name=zip value= size=20
   /td
   
 /tr 
 
   
 tr
  tdCountry:/td
  tdinput type=text name=country value= size=20/td
 /tr
 
   /table
 
   /font
  FORM  NAME=RegistrationJSPFORM METHOD=POST action=jetspeed:dynamicUri/

Re: JetSpeed2 build failed. TorqueDataModelTask cannot be found

2004-06-25 Thread Serge Huber
Did you delete your plugin directory ?
Regards,
  Serge Huber.
At 07:00 25.06.2004, you wrote:
I download and install Maven 1.0rc3, but I got same error.
What is wrong???
Thanks.

 You might want to recycle your Maven plugins by deleted the content of
 ${user.home}/.maven/plugins. Oh and upgrading to Maven 1.0 rc 3 since it
is
 required now for proper compilation of J2.

 Regards,
Serge Huber.

 At 07:57 24.06.2004, you wrote:
 Hi all,
 
 I have checkouted JetSpeed2. When I tried to build it using command
maven
 allClean allBuild, i got the follow error:
 
 
 
 BUILD FAILED
 File.. file:/C:/Documents and
 Settings/sam/.maven/plugins/maven-torque-plugi
 n-3.2/plugin.jelly
 Element... taskdef
 Line.. 51
 Column 63
 taskdef class org.apache.torque.task.TorqueDataModelTask cannot be found
 Total time: 5 seconds
 
 
 Maven correctly download all dependences.
 
 What is wrong? Somebody can help me?
 
 Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
- -- --- -=[ shuber2 at jahia dot com ]= --- -- -
www.jahia.org : A collaborative source CMS and Portal Server 


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


$jslink, what is the java equivalent?

2004-06-25 Thread Stijn de Witt
You can get the current location from your Velocity template using $jslink
right? My question is, how do I do the equivalent, getting the URL to the
current page, from Java?

TIA,
-Stijn


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



Re: JetSpeed2 build failed. TorqueDataModelTask cannot be found

2004-06-25 Thread Denis Burlaka
Yes.


 Did you delete your plugin directory ?

 Regards,
Serge Huber.

 At 07:00 25.06.2004, you wrote:
 I download and install Maven 1.0rc3, but I got same error.
 What is wrong???
 
 Thanks.
 
  
   You might want to recycle your Maven plugins by deleted the content of
   ${user.home}/.maven/plugins. Oh and upgrading to Maven 1.0 rc 3 since
it
 is
   required now for proper compilation of J2.
  
   Regards,
  Serge Huber.
  
   At 07:57 24.06.2004, you wrote:
   Hi all,
   
   I have checkouted JetSpeed2. When I tried to build it using command
 maven
   allClean allBuild, i got the follow error:
   
   
   
   BUILD FAILED
   File.. file:/C:/Documents and
   Settings/sam/.maven/plugins/maven-torque-plugi
   n-3.2/plugin.jelly
   Element... taskdef
   Line.. 51
   Column 63
   taskdef class org.apache.torque.task.TorqueDataModelTask cannot be
found
   Total time: 5 seconds
   
   
   Maven correctly download all dependences.
   
   What is wrong? Somebody can help me?
   
   Thanks!



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



RE: WG: Sharing attributes between portlet applications

2004-06-25 Thread alex
In regards to the treeview question below...I implemented something very
similar by using a framed approach: inside an IFramePortlet read a JSP
file which defines the view. I have one portlet with 3 frames, top left is
the tree, bottom left is command buttons to ease tree navigation and the
right frame is all content. It seems to work fine. For the tree itself I
used Javascript to paint the tree...
Hope this helps.
Alex

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 8:22 PM
To: Jetspeed Users List
Subject: Re: WG: Sharing attributes between portlet applications


On Jun 24, 2004, at 7:22 AM, Oliver Pfau wrote:

 Hi,

 I have a general JSR-168 question:

 is it possible to share a attribute between two portlets which are 
 not in
 the same portlet application in a JSR-168 portlet ?


The portlet session, application scope, but its limited to per portlet 
application

-- or -- 

PLT 11.1.1:
The portlet-container must not propagate parameters received in an 
action request to subsequent render requests of the portlet.
If a portlet wants to do that, it can use Render URLs or must use the 
setRenderParameter or setRenderParameters method of the ActionResponse
object within the processAction call.

The second approach is limited to strings

 I want to write two portlets:
 one displays the TreeNode data structure from javax.swing.tree.* and
 stores a navigation status (String) in the context (with the 
 application
 context it should work), the other portlet retrieves the navigation 
 status
 and shows the chosen contents.


This sounds interesting. Is it an HTML-based tree view? With JavaScript?
I am looking for something like this to use in the Jetspeed Portlet 
Application Manager portlets

 Problem: I plan a generic navigation portlet which can switch its 
 TreeNode
 content in run time. I mean one navigation portlet for many content
 portlets. I don't found a way to realize this communication. I think I
 have to pack the navigation portlet with each content portlet 
 together as
 portlet applicationI am not very happy with this solutionany 
 ideas
 ?
I think the render parameters could work

You could also write a jetspeed service to share common data (see the 
PAM portlet application for an example of accessing the Registry 
Service)

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 


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



AW: WG: Sharing attributes between portlet applications

2004-06-25 Thread Oliver Pfau
hi...that's interesting... but I decided to avoid the usage of IFrames
because it implies the loss of the portal context...scheme, ect.
how do the IFrame-portlets communicate ? url parameter ?

-Ursprüngliche Nachricht-
Von: alex [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Juni 2004 13:22
An: 'Jetspeed Users List'
Betreff: RE: WG: Sharing attributes between portlet applications


In regards to the treeview question below...I implemented something very
similar by using a framed approach: inside an IFramePortlet read a JSP
file which defines the view. I have one portlet with 3 frames, top left is
the tree, bottom left is command buttons to ease tree navigation and the
right frame is all content. It seems to work fine. For the tree itself I
used Javascript to paint the tree...
Hope this helps.
Alex

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 8:22 PM
To: Jetspeed Users List
Subject: Re: WG: Sharing attributes between portlet applications


On Jun 24, 2004, at 7:22 AM, Oliver Pfau wrote:

 Hi,

 I have a general JSR-168 question:

 is it possible to share a attribute between two portlets which are 
 not in
 the same portlet application in a JSR-168 portlet ?


The portlet session, application scope, but its limited to per portlet 
application

-- or -- 

PLT 11.1.1:
The portlet-container must not propagate parameters received in an 
action request to subsequent render requests of the portlet.
If a portlet wants to do that, it can use Render URLs or must use the 
setRenderParameter or setRenderParameters method of the ActionResponse
object within the processAction call.

The second approach is limited to strings

 I want to write two portlets:
 one displays the TreeNode data structure from javax.swing.tree.* and
 stores a navigation status (String) in the context (with the 
 application
 context it should work), the other portlet retrieves the navigation 
 status
 and shows the chosen contents.


This sounds interesting. Is it an HTML-based tree view? With JavaScript?
I am looking for something like this to use in the Jetspeed Portlet 
Application Manager portlets

 Problem: I plan a generic navigation portlet which can switch its 
 TreeNode
 content in run time. I mean one navigation portlet for many content
 portlets. I don't found a way to realize this communication. I think I
 have to pack the navigation portlet with each content portlet 
 together as
 portlet applicationI am not very happy with this solutionany 
 ideas
 ?
I think the render parameters could work

You could also write a jetspeed service to share common data (see the 
PAM portlet application for an example of accessing the Registry 
Service)

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 


-
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]



RE: WG: Sharing attributes between portlet applications

2004-06-25 Thread alex
No. I set session variables and each time the buildNormalContext function is
called it repaints itself. I am not sure about your comment that you lose
portal context? Can you expand on this, please?
A

-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 7:24 AM
To: 'Jetspeed Users List'
Subject: AW: WG: Sharing attributes between portlet applications

hi...that's interesting... but I decided to avoid the usage of IFrames
because it implies the loss of the portal context...scheme, ect.
how do the IFrame-portlets communicate ? url parameter ?

-Ursprüngliche Nachricht-
Von: alex [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Juni 2004 13:22
An: 'Jetspeed Users List'
Betreff: RE: WG: Sharing attributes between portlet applications


In regards to the treeview question below...I implemented something very
similar by using a framed approach: inside an IFramePortlet read a JSP
file which defines the view. I have one portlet with 3 frames, top left is
the tree, bottom left is command buttons to ease tree navigation and the
right frame is all content. It seems to work fine. For the tree itself I
used Javascript to paint the tree...
Hope this helps.
Alex

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 8:22 PM
To: Jetspeed Users List
Subject: Re: WG: Sharing attributes between portlet applications


On Jun 24, 2004, at 7:22 AM, Oliver Pfau wrote:

 Hi,

 I have a general JSR-168 question:

 is it possible to share a attribute between two portlets which are 
 not in
 the same portlet application in a JSR-168 portlet ?


The portlet session, application scope, but its limited to per portlet 
application

-- or -- 

PLT 11.1.1:
The portlet-container must not propagate parameters received in an 
action request to subsequent render requests of the portlet.
If a portlet wants to do that, it can use Render URLs or must use the 
setRenderParameter or setRenderParameters method of the ActionResponse
object within the processAction call.

The second approach is limited to strings

 I want to write two portlets:
 one displays the TreeNode data structure from javax.swing.tree.* and
 stores a navigation status (String) in the context (with the 
 application
 context it should work), the other portlet retrieves the navigation 
 status
 and shows the chosen contents.


This sounds interesting. Is it an HTML-based tree view? With JavaScript?
I am looking for something like this to use in the Jetspeed Portlet 
Application Manager portlets

 Problem: I plan a generic navigation portlet which can switch its 
 TreeNode
 content in run time. I mean one navigation portlet for many content
 portlets. I don't found a way to realize this communication. I think I
 have to pack the navigation portlet with each content portlet 
 together as
 portlet applicationI am not very happy with this solutionany 
 ideas
 ?
I think the render parameters could work

You could also write a jetspeed service to share common data (see the 
PAM portlet application for an example of accessing the Registry 
Service)

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 


-
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]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 


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



class not found

2004-06-25 Thread Maruthi
Hello everybody,
 
I have a problem with JSP Portlet Action class.I am getting class not found 
exception.I tried all the ways but i am not able fix it since yesterday.Any help in 
this regard will be greatly appreciated.
 
Thank you,
Maruthi.

===

java.lang.ClassNotFoundException: 

 Requested Action not found: RegistrationJSPAction
 Turbine looked in the following modules.packages path: 
 [org.apache.jetspeed.modules, org.apache.turbine.modules, 
com.ravuri.portal.modules.actions.portlets;]

 at org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
 at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
 at 
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(GenericMVCPortlet.java:276)
 at 
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(GenericMVCPortlet.java:207)
 at 
org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(PortletWrapper.java:119)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260)
 at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
 at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
 at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
 at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)



-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

AW: WG: Sharing attributes between portlet applications

2004-06-25 Thread Oliver Pfau
With the loss of the context I mean that is it possible in your jsp in
your IFrame to access the objects defined with the defineObjects-Tag ? I
mean renderResponse, renderRequest, portletConfig...
Your jsp in the IFrame don't uses the scheme from the portal... the IFrame
is only a view... 

-Ursprüngliche Nachricht-
Von: alex [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Juni 2004 13:31
An: 'Jetspeed Users List'
Betreff: RE: WG: Sharing attributes between portlet applications


No. I set session variables and each time the buildNormalContext function is
called it repaints itself. I am not sure about your comment that you lose
portal context? Can you expand on this, please?
A

-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 7:24 AM
To: 'Jetspeed Users List'
Subject: AW: WG: Sharing attributes between portlet applications

hi...that's interesting... but I decided to avoid the usage of IFrames
because it implies the loss of the portal context...scheme, ect.
how do the IFrame-portlets communicate ? url parameter ?

-Ursprüngliche Nachricht-
Von: alex [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Juni 2004 13:22
An: 'Jetspeed Users List'
Betreff: RE: WG: Sharing attributes between portlet applications


In regards to the treeview question below...I implemented something very
similar by using a framed approach: inside an IFramePortlet read a JSP
file which defines the view. I have one portlet with 3 frames, top left is
the tree, bottom left is command buttons to ease tree navigation and the
right frame is all content. It seems to work fine. For the tree itself I
used Javascript to paint the tree...
Hope this helps.
Alex

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 8:22 PM
To: Jetspeed Users List
Subject: Re: WG: Sharing attributes between portlet applications


On Jun 24, 2004, at 7:22 AM, Oliver Pfau wrote:

 Hi,

 I have a general JSR-168 question:

 is it possible to share a attribute between two portlets which are 
 not in
 the same portlet application in a JSR-168 portlet ?


The portlet session, application scope, but its limited to per portlet 
application

-- or -- 

PLT 11.1.1:
The portlet-container must not propagate parameters received in an 
action request to subsequent render requests of the portlet.
If a portlet wants to do that, it can use Render URLs or must use the 
setRenderParameter or setRenderParameters method of the ActionResponse
object within the processAction call.

The second approach is limited to strings

 I want to write two portlets:
 one displays the TreeNode data structure from javax.swing.tree.* and
 stores a navigation status (String) in the context (with the 
 application
 context it should work), the other portlet retrieves the navigation 
 status
 and shows the chosen contents.


This sounds interesting. Is it an HTML-based tree view? With JavaScript?
I am looking for something like this to use in the Jetspeed Portlet 
Application Manager portlets

 Problem: I plan a generic navigation portlet which can switch its 
 TreeNode
 content in run time. I mean one navigation portlet for many content
 portlets. I don't found a way to realize this communication. I think I
 have to pack the navigation portlet with each content portlet 
 together as
 portlet applicationI am not very happy with this solutionany 
 ideas
 ?
I think the render parameters could work

You could also write a jetspeed service to share common data (see the 
PAM portlet application for an example of accessing the Registry 
Service)

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 


-
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]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 



RE: class not found

2004-06-25 Thread Floßmann Christoph
Hi Maruthi,
let's try some little sample code. I hope you are compiling jetspeed from the source. 
This code runs in J1.4b4 for sure.
==
jsp page
put this in /webapp/WEB-INF/templates/jsp/portlets/html/
name it: Actiontest.jsp
==
%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %
jsp:useBean id=action 
class=org.apache.jetspeed.modules.actions.portlets.ActionTest scope=request /

%
String jspeid = (String) request.getAttribute(js_peid);
%
table
form method=POST action=jetspeed:dynamicUri/
INPUT TYPE=hidden NAME=js_peid VALUE=%=jspeid%
input type=hidden name=action value=portlets.ActionTest
trtd align=centerINPUT TYPE=SUBMIT NAME=eventSubmit_doUpdate VALUE=Ok 
style=width:60/td/tr
/form
/table
==
the java file
put this in: /src/java/org/apache/jetspeed/modules/actions/portlets/
call it: ActionTest.java
==
package org.apache.jetspeed.modules.actions.portlets;

import org.apache.jetspeed.modules.actions.portlets.JspPortletAction;
import org.apache.jetspeed.portal.Portlet;
import org.apache.turbine.util.RunData;

public class ActionTest  extends JspPortletAction {

protected void buildNormalContext(Portlet portlet, RunData rundata) throws 
Exception {
  System.out.println(Built ActionTest Portlet!);
}

public void doUpdate(RunData rundata, Portlet portlet){
  System.out.println(Action);
}
}
==
Entry in xreg file:
==
portlet-entry name=ActionTest hidden=false type=ref parent=JSP 
application=false
meta-info
titleAction/title
descriptionSimple Test/description
/meta-info
classnameorg.apache.jetspeed.portal.portlets.JspPortlet/classname
parameter name=template value=Actiontest.jsp hidden=false/
parameter name=action value=portlets.ActionTest hidden=true 
cachedOnName=true cachedOnValue=true/
media-type ref=html/
/portlet-entry

From this example you should be able to extract the knowledge you need.
Chris


-Original Message-
From: Maruthi [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 1:35 PM
To: Jetspeed Users List
Subject: ***SPAM*** class not found


Hello everybody,
 
I have a problem with JSP Portlet Action class.I am getting class not found 
exception.I tried all the ways but i am not able fix it since yesterday.Any help in 
this regard will be greatly appreciated.
 
Thank you,
Maruthi.

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



Jetspeed 1.4/1.5 + DB PSML : No default.psml created when adding user

2004-06-25 Thread lguy
Hello,

I'm using Jetspeed Portal with a PostgreSQL DB PSML : 1.4 and 1.5 are both 
running on my server (Tomcat 4.1.27).

When I use the file system based PSML, adding a new user works fine and creates 
a new default.psml for the new user.

If I switch to Postgre DB PSML, the user is added to the database but no 
PSML entry is added for it.

I've tried to replace in the Jetspeed resources file
services.Profiler.newuser.template=turbine
by services.Profiler.newuser.template=anon or even set template to nothing
But it does not work.

Any idea ?

Laurent Guy



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



RE: WG: Sharing attributes between portlet applications

2004-06-25 Thread alex
Yes I see your point. However, for the portlet that needed the tree, it
didn't matter - yet :)
A

-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 7:40 AM
To: 'Jetspeed Users List'
Subject: AW: WG: Sharing attributes between portlet applications

With the loss of the context I mean that is it possible in your jsp in
your IFrame to access the objects defined with the defineObjects-Tag ? I
mean renderResponse, renderRequest, portletConfig...
Your jsp in the IFrame don't uses the scheme from the portal... the IFrame
is only a view... 

-Ursprüngliche Nachricht-
Von: alex [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Juni 2004 13:31
An: 'Jetspeed Users List'
Betreff: RE: WG: Sharing attributes between portlet applications


No. I set session variables and each time the buildNormalContext function is
called it repaints itself. I am not sure about your comment that you lose
portal context? Can you expand on this, please?
A

-Original Message-
From: Oliver Pfau [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 7:24 AM
To: 'Jetspeed Users List'
Subject: AW: WG: Sharing attributes between portlet applications

hi...that's interesting... but I decided to avoid the usage of IFrames
because it implies the loss of the portal context...scheme, ect.
how do the IFrame-portlets communicate ? url parameter ?

-Ursprüngliche Nachricht-
Von: alex [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 25. Juni 2004 13:22
An: 'Jetspeed Users List'
Betreff: RE: WG: Sharing attributes between portlet applications


In regards to the treeview question below...I implemented something very
similar by using a framed approach: inside an IFramePortlet read a JSP
file which defines the view. I have one portlet with 3 frames, top left is
the tree, bottom left is command buttons to ease tree navigation and the
right frame is all content. It seems to work fine. For the tree itself I
used Javascript to paint the tree...
Hope this helps.
Alex

-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 24, 2004 8:22 PM
To: Jetspeed Users List
Subject: Re: WG: Sharing attributes between portlet applications


On Jun 24, 2004, at 7:22 AM, Oliver Pfau wrote:

 Hi,

 I have a general JSR-168 question:

 is it possible to share a attribute between two portlets which are 
 not in
 the same portlet application in a JSR-168 portlet ?


The portlet session, application scope, but its limited to per portlet 
application

-- or -- 

PLT 11.1.1:
The portlet-container must not propagate parameters received in an 
action request to subsequent render requests of the portlet.
If a portlet wants to do that, it can use Render URLs or must use the 
setRenderParameter or setRenderParameters method of the ActionResponse
object within the processAction call.

The second approach is limited to strings

 I want to write two portlets:
 one displays the TreeNode data structure from javax.swing.tree.* and
 stores a navigation status (String) in the context (with the 
 application
 context it should work), the other portlet retrieves the navigation 
 status
 and shows the chosen contents.


This sounds interesting. Is it an HTML-based tree view? With JavaScript?
I am looking for something like this to use in the Jetspeed Portlet 
Application Manager portlets

 Problem: I plan a generic navigation portlet which can switch its 
 TreeNode
 content in run time. I mean one navigation portlet for many content
 portlets. I don't found a way to realize this communication. I think I
 have to pack the navigation portlet with each content portlet 
 together as
 portlet applicationI am not very happy with this solutionany 
 ideas
 ?
I think the render parameters could work

You could also write a jetspeed service to share common data (see the 
PAM portlet application for an example of accessing the Registry 
Service)

--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office]   +01 707 773-4646
[mobile] +01 707 529 9194



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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.706 / Virus Database: 462 - Release Date: 6/14/2004
 


-
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]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).

My xreg files always seem to get messed up.

2004-06-25 Thread Anthony Smith
I know (or at least I think) That many of my xreg files in my config
directory get partially deleted because of the way my server gets shutdown
sometimes. I really need to get the problem solved. Does anyone else have
this problem and if so how are you handling it?


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



Re: $jslink, what is the java equivalent?

2004-06-25 Thread Stefan Rennick Egglestone
The way I've done this, which I'm sure is not a good way to do it at all 
is as follows. In your jsp, call

Portlet thisPortlet = (Portlet)request.getAttribute(portlet);
String pageID = portlet.getPortletConfig().getPageID()
The pageID is then a string which looks somehting like  
user/test/html/default.psml

You can then create a link to this page suing this information, to look 
something like

portal/media-type/html/user/test/page/default.psml/
Stijn de Witt wrote:
You can get the current location from your Velocity template using $jslink
right? My question is, how do I do the equivalent, getting the URL to the
current page, from Java?
TIA,
-Stijn
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: My xreg files always seem to get messed up.

2004-06-25 Thread Jeremy Ford
What version of Jetspeed are you using?  There have been issues that have 
been resolved in both 1.4 and 1.5.

Jeremy Ford
[EMAIL PROTECTED]

From: Anthony Smith [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Jetspeed Users List [EMAIL PROTECTED]
Subject: My xreg files always seem to get messed up.
Date: Fri, 25 Jun 2004 08:25:29 -0500
I know (or at least I think) That many of my xreg files in my config
directory get partially deleted because of the way my server gets shutdown
sometimes. I really need to get the problem solved. Does anyone else have
this problem and if so how are you handling it?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Get fast, reliable Internet access with MSN 9 Dial-up – now 3 months FREE! 
http://join.msn.click-url.com/go/onm00200361ave/direct/01/

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


RE: My xreg files always seem to get messed up.

2004-06-25 Thread Anthony Smith
Those were the versions that I was using.

-Original Message-
From: Jeremy Ford [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 9:05 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: My xreg files always seem to get messed up.


What version of Jetspeed are you using?  There have been issues that have
been resolved in both 1.4 and 1.5.

Jeremy Ford
[EMAIL PROTECTED]


From: Anthony Smith [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Jetspeed Users List [EMAIL PROTECTED]
Subject: My xreg files always seem to get messed up.
Date: Fri, 25 Jun 2004 08:25:29 -0500

I know (or at least I think) That many of my xreg files in my config
directory get partially deleted because of the way my server gets shutdown
sometimes. I really need to get the problem solved. Does anyone else have
this problem and if so how are you handling it?


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


_
Get fast, reliable Internet access with MSN 9 Dial-up – now 3 months FREE!
http://join.msn.click-url.com/go/onm00200361ave/direct/01/



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



RE: class not found

2004-06-25 Thread Jeremy Ford
It looks like you need to modify your modules.packages property to be 
com.ravuri.portal.modules instead of 
com.ravuri.portal.modules.actions.portlets

Jeremy Ford
[EMAIL PROTECTED]

From: Maruthi [EMAIL PROTECTED]
Reply-To: Jetspeed Users List [EMAIL PROTECTED]
To: Jetspeed Users List [EMAIL PROTECTED]
Subject: class not found
Date: Fri, 25 Jun 2004 04:34:30 -0700 (PDT)
Hello everybody,
I have a problem with JSP Portlet Action class.I am getting class not found 
exception.I tried all the ways but i am not able fix it since yesterday.Any 
help in this regard will be greatly appreciated.

Thank you,
Maruthi.
===
java.lang.ClassNotFoundException:
 Requested Action not found: RegistrationJSPAction
 Turbine looked in the following modules.packages path:
 [org.apache.jetspeed.modules, org.apache.turbine.modules, 
com.ravuri.portal.modules.actions.portlets;]

 at 
org.apache.turbine.modules.ActionLoader.getInstance(ActionLoader.java:174)
 at org.apache.turbine.modules.ActionLoader.exec(ActionLoader.java:122)
 at 
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.buildContent(GenericMVCPortlet.java:276)
 at 
org.apache.jetspeed.portal.portlets.GenericMVCPortlet.getContent(GenericMVCPortlet.java:207)
 at 
org.apache.jetspeed.portal.security.portlets.PortletWrapper.getContent(PortletWrapper.java:119)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at 
org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:260)
 at 
org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:207)
 at 
org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:250)
 at 
org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:94)
 at 
org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:109)


-
Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!
_
MSN Movies - Trailers, showtimes, DVD's, and the latest news from Hollywood! 
http://movies.msn.click-url.com/go/onm00200509ave/direct/01/

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


Re: $jslink, what is the java equivalent?

2004-06-25 Thread Stijn de Witt
Thanks, but I am using Velocity, and I am looking for a way to create a
link, not from within the template, but from my Java action class.

I have done some experimenting and doing this:

public String render(String outputType, RunData data)
{
logger.debug(render: Starting...);
BaseJetspeedLink jslink = new BaseJetspeedLink(data);
String href = jslink.toString();
href += ?eventSubmit_ + this.getId() + = + this.getCaption();

String result = new String();
if (this.isVisible())
{
result += a href=\ + href + \ class=\ + this.getStyleClass()
+ \ ;
result += id=\ + this.getStyleClass() + this.getId() + \;
result += this.getCaption() + /a;
}

logger.debug(render: Done.);
return result;
}

seems to work. I am still working on it though...

-Stijn


- Original Message - 
From: Stefan Rennick Egglestone [EMAIL PROTECTED]
To: Jetspeed Users List [EMAIL PROTECTED]
Sent: Friday, June 25, 2004 3:27 PM
Subject: Re: $jslink, what is the java equivalent?


 The way I've done this, which I'm sure is not a good way to do it at all
 is as follows. In your jsp, call

 Portlet thisPortlet = (Portlet)request.getAttribute(portlet);
 String pageID = portlet.getPortletConfig().getPageID()

 The pageID is then a string which looks somehting like
 user/test/html/default.psml

 You can then create a link to this page suing this information, to look
 something like

 portal/media-type/html/user/test/page/default.psml/

 Stijn de Witt wrote:

 You can get the current location from your Velocity template using
$jslink
 right? My question is, how do I do the equivalent, getting the URL to the
 current page, from Java?
 
 TIA,
 -Stijn
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



 This message has been scanned but we cannot guarantee that it and any
 attachments are free from viruses or other damaging content: you are
 advised to perform your own checks.  Email communications with the
 University of Nottingham may be monitored as permitted by UK legislation.


 -
 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]



RE: $jslink, what is the java equivalent?

2004-06-25 Thread Archana Turaga
The way I did is write my own class that calls the BasEJetspeedLink
(jslink java class) which is a singleton. You can look at that
codeit is pretty straightforward.It works perfectly okay in the jsp
world.

-Original Message-
From: Stefan Rennick Egglestone [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 8:28 AM
To: Jetspeed Users List
Subject: Re: $jslink, what is the java equivalent?

The way I've done this, which I'm sure is not a good way to do it at all

is as follows. In your jsp, call

Portlet thisPortlet = (Portlet)request.getAttribute(portlet);
String pageID = portlet.getPortletConfig().getPageID()

The pageID is then a string which looks somehting like  
user/test/html/default.psml

You can then create a link to this page suing this information, to look 
something like

portal/media-type/html/user/test/page/default.psml/

Stijn de Witt wrote:

You can get the current location from your Velocity template using
$jslink
right? My question is, how do I do the equivalent, getting the URL to
the
current page, from Java?

TIA,
-Stijn


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

  




This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK
legislation.


-
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]



Thank you

2004-06-25 Thread Maruthi
Hello Christoph,
 
Thanks for your help and great patience.Now my Action class is working.Seems to be 
jsp:useBean is not working in Jetspeed-1.5.I tried with your code also but the same 
problem i got ...might be its not working with 1.5.
 
Anyway thanks a lot.
Schöne Wochenende  Viele Spass,
Tschuss,
Maruthi.
Ph : 0179 7720386 

Floßmann_Christoph [EMAIL PROTECTED] wrote:
Hi Maruthi,
let's try some little sample code. I hope you are compiling jetspeed from the source. 
This code runs in J1.4b4 for sure.
==
jsp page
put this in /webapp/WEB-INF/templates/jsp/portlets/html/
name it: Actiontest.jsp
==



String jspeid = (String) request.getAttribute(js_peid);
%

 method=post
 [input]  name=js_peid
 [input] 
 [input] 


==
the java file
put this in: /src/java/org/apache/jetspeed/modules/actions/portlets/
call it: ActionTest.java
==
package org.apache.jetspeed.modules.actions.portlets;

import org.apache.jetspeed.modules.actions.portlets.JspPortletAction;
import org.apache.jetspeed.portal.Portlet;
import org.apache.turbine.util.RunData;

public class ActionTest extends JspPortletAction {

protected void buildNormalContext(Portlet portlet, RunData rundata) throws Exception {
System.out.println(Built ActionTest Portlet!);
}

public void doUpdate(RunData rundata, Portlet portlet){
System.out.println(Action);
}
}
==
Entry in xreg file:
==




Simple Test

org.apache.jetspeed.portal.portlets.JspPortlet








From this example you should be able to extract the knowledge you need.
Chris


-Original Message-
From: Maruthi [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 1:35 PM
To: Jetspeed Users List
Subject: ***SPAM*** class not found


Hello everybody,

I have a problem with JSP Portlet Action class.I am getting class not found 
exception.I tried all the ways but i am not able fix it since yesterday.Any help in 
this regard will be greatly appreciated.

Thank you,
Maruthi.

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



-
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!

RE: $jslink, what is the java equivalent?

2004-06-25 Thread Floßmann Christoph
And where can we find that code?

-Original Message-
From: Archana Turaga [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 4:44 PM
To: Jetspeed Users List
Subject: RE: $jslink, what is the java equivalent?


The way I did is write my own class that calls the BasEJetspeedLink
(jslink java class) which is a singleton. You can look at that
codeit is pretty straightforward.It works perfectly okay in the jsp
world.

-Original Message-
From: Stefan Rennick Egglestone [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 8:28 AM
To: Jetspeed Users List
Subject: Re: $jslink, what is the java equivalent?

The way I've done this, which I'm sure is not a good way to do it at all

is as follows. In your jsp, call

Portlet thisPortlet = (Portlet)request.getAttribute(portlet);
String pageID = portlet.getPortletConfig().getPageID()

The pageID is then a string which looks somehting like  
user/test/html/default.psml

You can then create a link to this page suing this information, to look 
something like

portal/media-type/html/user/test/page/default.psml/

Stijn de Witt wrote:

You can get the current location from your Velocity template using
$jslink
right? My question is, how do I do the equivalent, getting the URL to
the
current page, from Java?

TIA,
-Stijn


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

  




This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks.  Email communications with the
University of Nottingham may be monitored as permitted by UK
legislation.


-
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]



Re: $jslink, what is the java equivalent?

2004-06-25 Thread Raphael Luta
Floßmann Christoph wrote:
And where can we find that code?
See src/java/org/apache/jetspeed/util/template/BaseJetspeedLink.java
-Original Message-
From: Archana Turaga [mailto:[EMAIL PROTECTED]
Sent: Friday, June 25, 2004 4:44 PM
To: Jetspeed Users List
Subject: RE: $jslink, what is the java equivalent?
The way I did is write my own class that calls the BasEJetspeedLink
(jslink java class) which is a singleton. You can look at that
codeit is pretty straightforward.It works perfectly okay in the jsp
world.
-Original Message-
From: Stefan Rennick Egglestone [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 25, 2004 8:28 AM
To: Jetspeed Users List
Subject: Re: $jslink, what is the java equivalent?

The way I've done this, which I'm sure is not a good way to do it at all
is as follows. In your jsp, call
Portlet thisPortlet = (Portlet)request.getAttribute(portlet);
String pageID = portlet.getPortletConfig().getPageID()
The pageID is then a string which looks somehting like  
user/test/html/default.psml

You can then create a link to this page suing this information, to look 
something like

portal/media-type/html/user/test/page/default.psml/
Stijn de Witt wrote:

You can get the current location from your Velocity template using
$jslink
right? My question is, how do I do the equivalent, getting the URL to
the
current page, from Java?
TIA,
-Stijn
--
Raphaël Luta - [EMAIL PROTECTED]
Apache Jetspeed - Enterprise Portal in Java
http://portals.apache.org/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Template question

2004-06-25 Thread cyaconi
Hi.. I'll try to explain my problem... hope you can undertand it.
I've a VelocityPortlet with his default template. This template shows a 
list of articles already stored in the db, and has a link to add a new 
one: $jslink?eventSubmit_doEdit=

This method (doEdit) only set a template wich has the input fields:
 
public void doEdit(RunData rundata, Context context) throws Exception 
{
String id = rundata.getParameters().getString(ID);
if (id!=null){
ArticlesManager mng = new ArticlesManager();
Article article = mng.getArticle(new 
Long(id).longValue());
context.put(article, article);
}
context.put(totalLinks, new Integer(0));
setTemplate(rundata, addArticle);
}

Until here, everything goes fine...

My problem is that I need to send some info from this template (addArticle 
- not the default) and come back to the same template, and always, despite 
of explicity set the template in the event method, the flow of the 
application goes to the default template.

This is the event I'm calling:

public void doAddlinks(RunData rundata, Context context) throws 
Exception {
...
int totalLinks = rundata.getParameters().getInt(totalLinks, 
0);

... 

context.put(totalLinks, new Integer(totalLinks));
setTemplate(rundata, addArticle);
}

please, any help would be very appreciated.

regards,
Carlos.