J2 - Zip File Download

2005-04-18 Thread Shah Amit
Hi all,
I need to download a zip file from the server to client browser. I have a 
servlet which does this --

   FileInputStream fis = new FileInputStream(uFile);
   PrintWriter pw = response.getWriter();
   int c = -1;
   // Loop to read and write bytes.
   while ((c = fis.read()) != -1) {
   pw.print((char) c);
   }
   // Close output and input resources.
   fis.close();
   pw.flush();
Here is the servlet mapping from web.xml --
 servlet-mapping
   servlet-nameUploadServlet/servlet-name
   url-pattern/servlet/uploadServlet/url-pattern
 /servlet-mapping
And here is what I wrote in one of my jsp's --
 html:link href=/servlet/uploadServlet?fileName=c:\\temp\\test.zip 
title=DownloadDownload/html:link

When I click on the link, the whole setup does work. The only thing is, 
instead of giving me a download window where I can save as the file, it 
simply writes the entire file in the portlet itself so I see a bunch of 
garbage text in my portlet.

Please please I really need help with this :-(
Thanks,
Amit

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


RE: J2 - Zip File Download

2005-04-18 Thread Shah Amit
Figured out my answer !!! I simply have to give the control to a servlet 
without rewriting the URL. The portlet does not need to be aware of the fact 
that a file is being downloaded. Just transfer the control to a servlet, and 
it is done.

There is a good discussion on this ---
http://mail-archives.apache.org/mod_mbox/portals-pluto-user/200406.mbox/[EMAIL 
PROTECTED]
Hope it helps someone ;)
Thanks,
Amit
Original Message Follows
From: Shah Amit [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: J2 - Zip File Download
Date: Mon, 18 Apr 2005 13:28:55 -0400
Hi all,
I need to download a zip file from the server to client browser. I have a 
servlet which does this --

   FileInputStream fis = new FileInputStream(uFile);
   PrintWriter pw = response.getWriter();
   int c = -1;
   // Loop to read and write bytes.
   while ((c = fis.read()) != -1) {
   pw.print((char) c);
   }
   // Close output and input resources.
   fis.close();
   pw.flush();
Here is the servlet mapping from web.xml --
 servlet-mapping
   servlet-nameUploadServlet/servlet-name
   url-pattern/servlet/uploadServlet/url-pattern
 /servlet-mapping
And here is what I wrote in one of my jsp's --
 html:link href=/servlet/uploadServlet?fileName=c:\\temp\\test.zip 
title=DownloadDownload/html:link

When I click on the link, the whole setup does work. The only thing is, 
instead of giving me a download window where I can save as the file, it 
simply writes the entire file in the portlet itself so I see a bunch of 
garbage text in my portlet.

Please please I really need help with this :-(
Thanks,
Amit

-
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: Jetspeed2-M2 genapp

2005-04-14 Thread Shah Amit
Look at minDeploy and nodbMinDeploy goals. They deploy the minimal jetspeed 
without the demo portlets. They are in 
XXX:\jakarta-jetspeed-2\portal\maven.xml

Original Message Follows
From: Rene Medellin [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org,  Robert Young 
[EMAIL PROTECTED]
Subject: Re: Jetspeed2-M2 genapp
Date: Thu, 14 Apr 2005 10:39:08 -0700 (PDT)

Yup. Could really use some guidance on that. (Have not
heard anything on this since the original post)
I think if someone could outline what all the minimal
pieces are then maybe some of us could take a shot at
writing the jetspeed2:genapp Maven goal. But the new
distribution structure is so complex, it's hard to
know where to begin.
I began the process of trying to untangle all the demo
stuff from the J2-M2 binary release but it just proved
too much work. So right now, I'm on a holding pattern
to migrate from J1.5.
- Rene
--- Robert Young [EMAIL PROTECTED] wrote:
 I haven't seen any good documentation on how to
 build a clean jetspeed
 portal without the demo portlets. I am wanting to
 start developing
 against J2 M2 and I would like a clean start.  Can
 somebody point me
 in the right direction?

 Thanks.

 On 4/5/05, Rene Medellin [EMAIL PROTECTED] wrote:
  I didn't see a maven goal in J2-M2 similar to the
 old
  jetspeed:genapp from J1.5.
 
  I'm trying to generate a stripped-down WAR file
 that
  will contain only the bare minimum for me to start
  adding my own custom portlets (i.e. minus all the
 demo
  eye-candy). Anyone got any suggestions?
 
  I reckon just deleting all the portlet warfiles
 from
  WEB-INF/deploy won't be enough.
 
  Cheers,
 
  - Rene Medellin
  NYC, USA
 
  __
  Do you Yahoo!?
  Yahoo! Personals - Better first dates. More second
 dates.
  http://personals.yahoo.com
 
 

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



__
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/
-
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]


J2 - Download files

2005-04-14 Thread Shah Amit
I need to download files from server to user browsers from a particular 
directory. I tried to look thru the threads, but they are for J1.

Can someone please give me some pointers where I should research ...
Thanks,
Amit

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


RE: deploy my own instance portal

2005-04-13 Thread Shah Amit
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets
This briefly explains how to do it. See if that helps. It is a little bit 
old, meaning, it applies for prior to Milestone 2 release. But I think even 
after M2, only the undeploy mechanism might have changed. I am not 100% sure 
because I am using the version prior to that.

Amit
Original Message Follows
From: Ajonjolis [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: deploy my own instance portal
Date: Wed, 13 Apr 2005 12:19:40 -0300
someone could tell me the way i could deploy my own instance portal. Y could 
deploy the jetspeed. but now i´d like to work in my own portal in eclipse .
any ideas, i´m a bit worried about this.
thanks
Alfonsina


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


Re: deploy my own instance portal

2005-04-13 Thread Shah Amit
- If you want to just deploy your portals, make war files as you normally do 
with J2EE and deploy them in the deploy Directory of jetspeed -- 
XXX:\jakarta-tomcat-5.0.28\webapps\jetspeed\WEB-INF\deployand 
jetspeed will pick it up and take care of rest.
- Now if you want your portlets to show up on a web-page, you either have to 
change the psml's that come with jetspeed distro, or write your own. I 
suggest first make your own portlet, deploy it, and then see default.psml in 
XXX:\jakarta-tomcat-5.0.28\webapps\jetspeed\WEB-INF\pages directory. You 
should be able to modify the code so that your own portlet also shows up on 
the main page. Once you get a little more xperience, you can start writing 
your own psmls.
- If you want to change look and feel and customizations like that, you 
would need to write your own decorators. Again, decorators can be just 
deployed in the deploy directory of jetspeed and jetspeed will pick it up.

I suggest you read all the documentation thats provided on the jestpeed 
website. I know it is not much but that will help you get started.

HTH
Amit
Original Message Follows
From: Ajonjolis [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: deploy my own instance portal
Date: Wed, 13 Apr 2005 12:48:41 -0300
and so ...the idea is this ?  I deploy de jetspeed in a Tomcat, then i
started to deploy my own portlets, and when i wanted to change the skin or
any other customisation of my portal, i need to modified the archives in the
jetspeed folder
i`m in the rigth way ?

- Original Message -
From: Shah Amit [EMAIL PROTECTED]
To: jetspeed-user@jakarta.apache.org
Sent: Wednesday, April 13, 2005 12:37 PM
Subject: RE: deploy my own instance portal
 http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets

 This briefly explains how to do it. See if that helps. It is a little bit
 old, meaning, it applies for prior to Milestone 2 release. But I think
even
 after M2, only the undeploy mechanism might have changed. I am not 100%
sure
 because I am using the version prior to that.

 Amit

 Original Message Follows
 From: Ajonjolis [EMAIL PROTECTED]
 Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 Subject: deploy my own instance portal
 Date: Wed, 13 Apr 2005 12:19:40 -0300

 someone could tell me the way i could deploy my own instance portal. Y
could
 deploy the jetspeed. but now i´d like to work in my own portal in eclipse
.
 any ideas, i´m a bit worried about this.
 thanks
 Alfonsina



 -
 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: AW: User Prefernces

2005-04-13 Thread Shah Amit
I can't believe I did the same mistake again !! That was it !!!
Thanks
Original Message Follows
From: Dulisch, Martin [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: 'Jetspeed Users List' jetspeed-user@jakarta.apache.org
Subject: AW: User Prefernces
Date: Wed, 13 Apr 2005 08:56:07 +0200
Hi Amit,
dont know if this solves your problem, but have a look on chapter 17 in the
portlet spec (User Information). It says available user attributs must be
defined in the protlet.xml.
Martin
 -Ursprüngliche Nachricht-
 Von: Shah Amit [mailto:[EMAIL PROTECTED]
 Gesendet: Dienstag, 12. April 2005 15:58
 An: jetspeed-user@jakarta.apache.org
 Betreff: User Prefernces


 Hi all,

 How do I add user Preferences directly in the database? I
 know that we can
 add it from the administrative portlets, but it is not
 feasible for me
 because I have an existing system with hudreds of users, and I cannot
 manually do that.

 I tried to enter records into PREFS_PROPERTY_KEY, and
 PREFS_PROPERTY_VALUE,
 and I used the node of /usr/admin/userinfo from the
 PREFS_NODE table when
 inserting in the PREFS_PROPERTY_VALUE table. Then I tried to login as
 admin/admin, but I only see user.name.given and
 user.name.family. I tried to
 change the values of tasteDudely to somethingElse and that
 something else
 does show up on the webpage. So it reads the DB, but doesn't
 show up the
 preference that I wrote in the DB. I think I am missing
 something else, but
 not sure what ...

 Thanks,
 Amit



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


User Prefernces

2005-04-12 Thread Shah Amit
Hi all,
How do I add user Preferences directly in the database? I know that we can 
add it from the administrative portlets, but it is not feasible for me 
because I have an existing system with hudreds of users, and I cannot 
manually do that.

I tried to enter records into PREFS_PROPERTY_KEY, and PREFS_PROPERTY_VALUE, 
and I used the node of /usr/admin/userinfo from the PREFS_NODE table when 
inserting in the PREFS_PROPERTY_VALUE table. Then I tried to login as 
admin/admin, but I only see user.name.given and user.name.family. I tried to 
change the values of tasteDudely to somethingElse and that something else 
does show up on the webpage. So it reads the DB, but doesn't show up the 
preference that I wrote in the DB. I think I am missing something else, but 
not sure what ...

Thanks,
Amit

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


Re: Struts Bridge - ActionRequest Related Question

2005-04-10 Thread Shah Amit
Hi Ate,
Sorry to bring up this thread again. The solution that you mentioned - using 
window.top.location with html:rewrite did work well for me. However it 
created another problem.

To summarize the situation, since it has been long since we discussed this 
thread - I have a jsp with 3 dropdowns. OnChange of first dropdown, second 
should load. OnChange of second, third should load, and onChange of third, a 
table should load on the page. I am using J2-SturtsBridge and 
DispatchAction.  Since I only want to have one action for everything that 
this JSP does, and it is a dispatchAction, I have following in my 
portlet.xml.

...
  init-param
nameViewPage/name
value/r5prAction.do?dispatch=loadDropDowns/name
  /init-param
...
First of all, I dont know if this is valid at all !! And then on the 
OnChange of my dropdowns, I do window.top.location=SomeThing and the 
SomeThing is derived by -

javascript
location='html:rewrite href=/r5prAction.do/';
location=location+?dispatch=loadSecondDropdown
/javascript
Now all of this works fine for the first time. I am able to click on the 
link from the menu-navigation system and come to this page, and then the 
dropdowns behave properly. But the thing is, once I fire an OnChange on any 
of the dropdowns, if I try to click on the maximize, minize buttons of the 
portlet, or even try to re-enter the portlet with the link from the 
menu-navigation system, I get the following error --

Request[/r5prAction.do] does not contain handler parameter named 'dispatch'.
I guess something is happening and I am loosing the dispatch parameter. 
But the thing is, as long as I haven't fired the onChange of the dropdown, 
meaning - as long as the window.top.location has not been called, I can 
click on maximize, minimize buttons and everything else works great. Its 
only that once I fire the window.top.location, I start getting this error. 
And after that, I have to logout and log back in.

I tried everything I can, but I can't figure out why this is happening. The 
problem is I want to use DispatchAction so that I dont have to write lot of 
classes for the same jsp. Also very sorry for such a long email.

Please help 
Thanks,
Amit

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


Re: Struts Bridge - ActionRequest Related Question

2005-04-10 Thread Shah Amit
Thanks a lot Ate especially for such a quick response on Sunday !!! I think 
I understand my problem now.

Thanks again,
Amit
Original Message Follows
From: Ate Douma [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Struts Bridge - ActionRequest Related Question
Date: Sun, 10 Apr 2005 21:34:49 +0200
Shah Amit wrote:
...
  init-param
nameViewPage/name
value/r5prAction.do?dispatch=loadDropDowns/name
  /init-param
...
This is ok.
javascript
location='html:rewrite href=/r5prAction.do/';
location=location+?dispatch=loadSecondDropdown
/javascript
This is not ok!
You *must* encode the dispatch=loadSecondDropdown parameter using
the html:rewrite tag itself, *not* append it yourself.
Remember, the Struts Bridge versions of the html tags are created to deliver
a PortletURL. A PortletURL cannot be treated like a normal url as it (can) 
encode
much more than parameters for just your request, it might also need to 
encode the state
of other portlets on the same page. Your postfixed parameter won't be
recognized and thus not remembered by the portal, hence the error message.
Check the Struts documentation for the html:rewrite tag:
  http://struts.apache.org/userGuide/struts-html.html#rewrite
You'll find out its easy to embed your parameters using the paramId and 
paramName
(and possibly paramProperty) attributes.


Now all of this works fine for the first time. I am able to click on the 
link from the menu-navigation system and come to this page, and then the 
dropdowns behave properly. But the thing is, once I fire an OnChange on any 
of the dropdowns, if I try to click on the maximize, minize buttons of the 
portlet, or even try to re-enter the portlet with the link from the 
menu-navigation system, I get the following error --

Request[/r5prAction.do] does not contain handler parameter named 
'dispatch'.

I guess something is happening and I am loosing the dispatch parameter. 
But the thing is, as long as I haven't fired the onChange of the dropdown, 
meaning - as long as the window.top.location has not been called, I can 
click on maximize, minimize buttons and everything else works great. Its 
only that once I fire the window.top.location, I start getting this error. 
And after that, I have to logout and log back in.

I tried everything I can, but I can't figure out why this is happening. The 
problem is I want to use DispatchAction so that I dont have to write lot of 
classes for the same jsp. Also very sorry for such a long email.

Please help 
Thanks,
Amit

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


J2 - Maximize a portlet by default

2005-04-07 Thread Shah Amit
Hi all,
Is it possible that all my portlets are maximized by default? I tried to 
search the mailing list but could not find this particular topic ...

Thanks,
Amit

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


J2 - Changing of User-Attribute needs to restart tomcat ?? ..

2005-04-05 Thread Shah Amit
Hi all,
I tried to change the user-attribute value - Dudley to DudleyAmit, but 
it didnot reflect the change. I had to restart tomcat and then it reflected.

I dont know if this is the intended behaviour ... But in my opinion it would 
be awkward to have it that way ... I dont know if I am doing something wrong 
either ...

Thanks
Amit

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


Re: portlet session and http session

2005-04-04 Thread Shah Amit
Following was the exact line that I removed.
%@ page session=false %
And after that I didn't get that error anymore.
I dont know if yours is the same problem, but the exception looks like the 
same that I had so ...

Amit
Original Message Follows
From: Shah Amit [EMAIL PROTECTED]
Reply-To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org
To: jetspeed-dev@jakarta.apache.org
Subject: Re: portlet session and http session
Date: Mon, 04 Apr 2005 19:19:29 -0400
I had the exact same exception. The problem was that on the top of the page, 
I had declared that the page should not participate in any session. I dont 
remember the exact syntax, but it was something to the affect of ---

sOmEThIng session=false or something like that. I got rid of that line, 
and it worked for me after that.

Hope that helps,
Amit
Original Message Follows
From: Hema Menon [EMAIL PROTECTED]
Reply-To: Hema Menon [EMAIL PROTECTED]
To: Jetspeed Developers List jetspeed-dev@jakarta.apache.org, Derek Shen 
[EMAIL PROTECTED]
Subject: Re: portlet session and http session
Date: Mon, 4 Apr 2005 16:41:24 -0500

What exception are you getting with JSTL? There has been some
discussions here regarding evaluating expressions in jstl, refer to
this thread
http://www.mail-archive.com/jetspeed-user@jakarta.apache.org/msg15585.html
Hema
On Apr 4, 2005 4:37 PM, Derek Shen [EMAIL PROTECTED] wrote:
 Talking to myself again.

 Looks like the problem is with the combination of JSTL and portlet 
session.

 c:out value=${sessionScope.test}/ throws the exception, and
 %= request.getSession().getAttribute(test) % is fine.

 and the attribute I set inside portlet sessio is available in the http
 session on JSP.

 It is ugly if I am not able to use JSTL with JSP and portlet.

 On Apr 4, 2005 2:03 PM, Derek Shen [EMAIL PROTECTED] wrote:
  Did not get response from the pluto mailing list.
 
  I tried it on the latest tomcat (5.5.7) just now and still have the
  same problem. Has anyone seen this exception before?
 
  java.lang.IllegalStateException: Cannot access session scope in page 
that does
  ot participate in any session
at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
  mpl.java:264)
 
  -- Forwarded message --
  From: Derek Shen [EMAIL PROTECTED]
  Date: Apr 3, 2005 8:51 PM
  Subject: portlet session and http session
  To: [EMAIL PROTECTED]
 
  Alright, I know that it is an old issue, around which a lot of
  discussion have been made.
 
  
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=2101721
 
  
http://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]msgId=2101707
 
  http://issues.apache.org/jira/browse/PLUTO-53
 
  Some people said that it has been resolved by tomcat and some others
  claimed that it is only working on Jetty and not tomcat. I am totally
  confused. It seems a very trivial problem. What I am trying to achieve
  is so simple:
 
  Inside the GenericPortlet doView, populate some data and put into the
  PortletSession (eithe portlet scope or application scope), and
  dispatch (include) to a JSP within the same webapp. On the JSP, JSTL
  is used to retrieve and present the data from session
  (${sessionScope...).
 
  Everytime I run my portlet, I gives me this:
 
  14:27:08,880 ERROR StandardWrapper[/portlet:jsp]:727 - 
Servlet.service() for se
  vlet jsp threw exception
  java.lang.IllegalStateException: Cannot access session scope in page 
that does
  ot participate in any session
at 
org.apache.jasper.runtime.PageContextImpl.doGetAttribute(PageContext
  mpl.java:264)
at 
org.apache.jasper.runtime.PageContextImpl.getAttribute(PageContextIm
  l.java:249)
at 
org.apache.taglibs.standard.lang.jstl.ImplicitObjects$3.getValue(Imp
  icitObjects.java:633)
 
  I am using the tomcat 5.5.4 comes with the latest Pluto.
 
  I tried to follow this solution:
  
http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html
 
  Using tomcat 5.5.x, set crossContext=true and set
  emptySessionPath=true. It does not help, still the same exception.
 
  Someone please please help. Thanks!
  Derek
 

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



--
~~
Hema Menon
-
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]


J2 - https / PLT.7.1.2

2005-04-02 Thread Shah Amit
Hi all,
I am using Jetspeed 2 with Struts-bridge. Now I have a very typical 
requirement. I have some member-area pages which are accessible only after a 
user logs on. Now I want that all the member area pages should be https, 
whereas other pages should not be on https.

I checked jsr 168 and found that PLT.7.1.2 has my answer. But I dont know 
how I can use that in cordination with struts-bridge.

Please help 
Thanks,
Amit

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


Re: Struts Bridge - ActionRequest Related Question

2005-04-01 Thread Shah Amit
Hi Ate,
Thanks a lot for the quick reply.
I am submitting a form with html:form method=post 
action=/showPage.do and here is the action mapping

   action path=/showPage
   type=com.company.struts.actions.ViewerActions
   name=viewerForm scope=request validate=false 
parameter=dispatch
   forward name=success 
path=/WEB-INF/view/rule5/rule5viewer.jsp/
   /action

So probably my question would be is it possible to submit a form to a render 
URL at all ... I guess No ?? ... So in that case, I will have to use a dummy 
action with redirect=true ?? ..

Thanks,
Amit
Original Message Follows
From: Ate Douma [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Struts Bridge - ActionRequest Related Question
Date: Fri, 01 Apr 2005 16:56:58 +0200
You *must* be using action URLs because this warning is *only* displayed
from within processAction handling. Just make sure to use render URLs.
Shah Amit wrote:
Hi all,
Please pardon my stupidity with the Struts bridge. I have read the 
documentation several times, and I understand what it says. However I have 
a little bit trouble visualizing it in my scenerio.

I have a page with 3 dropdowns. Each dropdown has an onChange=submit 
thing and the secod dropdown is loaded based on value of first, third is 
loaded based on second. And then there is a table on the page that is 
loaded based on the selection of third dropdown.

I am using DispatchAction so that I have only one Action Class per page. 
Now this is an all display only page and actually the state is not being 
changed at all I think. In this case, for each form submission from the 
dropdowns, I am directly using render Actions and I dont have any forwards 
with redirects=true. Due to this I am getting a Warning from 
struts-bridge that -- Using the original action URL for render URL:  A 
redirect should have been issued. So in such scenerios, should I have a 
dummy action which does nothing and has a forward with redirect=true to 
my render action ??

I am sorry to ask this long question, but it is a little bit confusing to 
me .. :-(

Thanks,
Amit

-
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: Struts Bridge - ActionRequest Related Question

2005-04-01 Thread Shah Amit
Hi Ate,
I think I found my answer from the struts-bridge documentation ---
Forms must *always* use a POST to an ActionURL, but for all generated links 
it will have to be determined which type of url actually is required. So I 
guess I will have to use a dummy action that does nothing and then redirect 
to render action.

Thanks for your help
Amit
Original Message Follows
From: Shah Amit [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: Re: Struts Bridge - ActionRequest Related Question
Date: Fri, 01 Apr 2005 10:05:31 -0500
Hi Ate,
Thanks a lot for the quick reply.
I am submitting a form with html:form method=post 
action=/showPage.do and here is the action mapping

   action path=/showPage
   type=com.company.struts.actions.ViewerActions
   name=viewerForm scope=request validate=false 
parameter=dispatch
   forward name=success 
path=/WEB-INF/view/rule5/rule5viewer.jsp/
   /action

So probably my question would be is it possible to submit a form to a render 
URL at all ... I guess No ?? ... So in that case, I will have to use a dummy 
action with redirect=true ?? ..

Thanks,
Amit
Original Message Follows
From: Ate Douma [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Struts Bridge - ActionRequest Related Question
Date: Fri, 01 Apr 2005 16:56:58 +0200
You *must* be using action URLs because this warning is *only* displayed
from within processAction handling. Just make sure to use render URLs.
Shah Amit wrote:
Hi all,
Please pardon my stupidity with the Struts bridge. I have read the 
documentation several times, and I understand what it says. However I have 
a little bit trouble visualizing it in my scenerio.

I have a page with 3 dropdowns. Each dropdown has an onChange=submit 
thing and the secod dropdown is loaded based on value of first, third is 
loaded based on second. And then there is a table on the page that is 
loaded based on the selection of third dropdown.

I am using DispatchAction so that I have only one Action Class per page. 
Now this is an all display only page and actually the state is not being 
changed at all I think. In this case, for each form submission from the 
dropdowns, I am directly using render Actions and I dont have any forwards 
with redirects=true. Due to this I am getting a Warning from 
struts-bridge that -- Using the original action URL for render URL:  A 
redirect should have been issued. So in such scenerios, should I have a 
dummy action which does nothing and has a forward with redirect=true to 
my render action ??

I am sorry to ask this long question, but it is a little bit confusing to 
me .. :-(

Thanks,
Amit

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


Jetspeed 2 - Valuelist

2005-03-28 Thread Shah Amit
Hi all,
Has any one used ValueList with Jetspeed 2 and struts-bridge ... If yes, 
how did you pass a user entered selection or value from say like a first 
page, to a second page which contains the actual grid ?? ..

the website is - valuelist.sf.net  -- it is an implementation of Value 
List Handler pattern of J2ee.

Thanks,
Amit

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


struts-bridge - preserving request Parameter over actionForward

2005-03-26 Thread Shah Amit
Hi all,
I want to use valueList (valuelist.sf.net) in my portals, which is like a 
tag library that displays grids and tables for a list of objects. 
Unfortunately this grid depends on request.getParameter(someParamName) if 
I want to pass some user selection from a previous page and query the DB 
based on that selection.

Now I was trying to read the struts-bridge documentaion, and I have been 
able to figure out that by doing --

 render-context
   attribute name=errors/
   attribute name=message keep=true/
 /render-context

the request attributes will be preserved. But the problem is valuelist 
checks request.getParameter and not request.getAttribute, and I think the 
only way to set request parameter is by form submission, or by appending 
?paramName=paramValue to the URL. But with struts-bridge, I can't see how 
I can control that ...

Please help :-(
Thanks a lot,
Amit

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


RE: Best Way to start developing a portal

2005-03-25 Thread Shah Amit
Hi Geoff,
I got this advise from David Sean Taylor, and it has really worked great for 
me.

I have a seperate directory where I have all my source for my portlet, 
decorators and stuff like that. And then I have my own maven goals in my 
project files which deploy these portlets, decorators and pages in jetspeed 
deploy directory.

c:\MyProjects\MyPortlet\src\ etc. is where my source is.
And it gets deployed to c:\tomcat\webapps\jetspeed\deploy
And I always download jetspeed distribution to c:\jetspeed2\
This way whenever I want, I update my jetspeed distribution and deploy it. 
And then use my maven goals to deploy my psmls, portlets etc.

Hope this helps,
Amit
Original Message Follows
From: Geoff Hollingworth [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: Best Way to start developing a portal
Date: Fri, 25 Mar 2005 09:44:53 -0600
Hi
I now have a succesful environment running on linux using the source from 
CVS.
I now will start to develop my own portal (skins, layout, portlets).  I want 
to continue to take down the latest source code as I am doing this.
Can anyone recommend the best way i do this so i can easily download the new 
cvs updates while i am developing my own portal based on it?
thanks in advance
/geoff


-
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: Best Way to start developing a portal

2005-03-25 Thread Shah Amit
Following are entries from all my build files. Hope they help. Steal them 
with pride ;)

I dont know if you are already aware but maven usually has three files that 
describe a project ---

1. Maven.xml file
 Start Maven.xml file ===
project default=tag:buildDev xmlns:j=jelly:core xmlns:deploy=deploy
	xmlns:ant=jelly:ant
	goal name=deploy.portlet
		description=Builds the war file, and deploys it under jetspeed deploy 
directory.
		attainGoal name=war/
		ant:echoDeploying the war file to Jetspeed .../ant:echo
		ant:copy
			file=${maven.build.dir}/${maven.war.final.name}
			tofile=${portlet.deploy.dir}/${maven.war.final.name}
			overwrite=true/
	/goal

goal name=deploy.decorators
description=Deploys TAG specific decorators to jetspeed
attainGoal name=create.decorator.variables/
attainGoal name=deploy.layout.decorator/
attainGoal name=deploy.portlet.decorator/
/goal
	goal name=create.decorator.variables
	description=Create variables required by the deploy.decorators goal
	j:set var=com.tagaudit.tagportal.layout.decorator.directory 
value=${maven.src.dir}/webapp/WEB-INF/decorations/layout/html/tag/
	j:set var=com.tagaudit.tagportal.portlet.decorator.directory 
value=${maven.src.dir}/webapp/WEB-INF/decorations/portlet/html/tag/
	j:set var=com.tagaudit.tagportal.layoutdecorator.filename 
value=taglayoutdecorator.jar/
	j:set var=com.tagaudit.tagportal.portletdecorator.filename 
value=tagportletdecorator.jar/
	/goal

goal name=deploy.portlet.decorator
description=Deploy the portlet decorator
ant:jar

basedir=${com.tagaudit.tagportal.portlet.decorator.directory}

destfile=${portlet.deploy.dir}/${com.tagaudit.tagportal.portletdecorator.filename}
overwrite=true/
/goal
goal name=deploy.layout.decorator
description=Deploy the layout decorator
ant:jar

basedir=${com.tagaudit.tagportal.layout.decorator.directory}

destfile=${portlet.deploy.dir}/${com.tagaudit.tagportal.layoutdecorator.filename}
overwrite=true/
/goal
	goal name=deploy.psml
	description=Deploy the pAgEs directory into jetspeed. Unfortunately we 
will have to keep doing this till jetspeed can pick it up from the portlet 
war file.
	ant:delete quiet=true dir=${jetspeed.webinf.dir}/pages/
	ant:mkdir dir=${jetspeed.webinf.dir}/pages/
	ant:copy
	todir=${jetspeed.webinf.dir}/pages
	overwrite=true
   fileset dir=${maven.src.dir}/webapp/WEB-INF/pages 
casesensitive=yes/
	/ant:copy
	/goal

	goal name=deploy.all
	description=Deployes the portal, decorators and the psml pages to 
appropriate directories
	attainGoal name=deploy.portlet/
	attainGoal name=deploy.decorators/
	attainGoal name=deploy.psml/
	/goal
/project

= end maven.xml file ===
2. project.properties
=== start project.properties ==
#Set tomcat home to deploy war file
tomcat.home=C:/jakarta-tomcat-5.0.28
#Deploy portlet
jetspeed.webinf.dir=${tomcat.home}/webapps/jetspeed/WEB-INF/
portlet.deploy.dir=${jetspeed.webinf.dir}/deploy
# Set up eclipse for the project
maven.eclipse.output.dir=target/tagportal/WEB-INF/classes
 end project.properties  
3. project.xml
This file doesnot have much specific to my project. you can pick up anyone 
from jetspeed and customize it


Of all the files that I have pasted here, the most important is maven.xml 
file. Take a look at all the goals defined in that file. And then the 
tomcat.home property in the project.properties file.

I would strongly suggest that read a little bit about maven and the way it 
works. That would greatly help.

Amit
Original Message Follows
From: Geoff Hollingworth [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: RE: Best Way to start developing a portal
Date: Fri, 25 Mar 2005 10:15:37 -0600
thank you so much.
i am new to this maven thing and the jetspeed deploy mechanisms.
is it possible for you to share with me your maven build.properties file 
that you have created to deploy your myportal files.  if you could share 
anything else that you think would help me then that is also appreciated.
i would like to steal with pride if that's ok.
cheers
/geoff

From: Shah Amit [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: RE: Best Way to start developing a portal
Date: Fri, 25 Mar 2005 10:51:50 -0500
Hi Geoff,
I got this advise from David Sean Taylor, and it has really worked great 
for me.

I have a seperate directory where I have all my source for my portlet, 
decorators and stuff

Struts bridge concept related Question

2005-03-23 Thread Shah Amit
Hi all,
Please pardon my stupid question because I dont have much experience with 
struts or portals !!!

I have gone thru the struts-bridge documentation that is given on the 
jetspeed website, and I have a few questions as to what would be the best 
way to solve my problem.

I have two pages in a portlet. On the first page there is a submit button, 
and a textField. When user clicks the button, the second page should come 
up. The second page has a drop down which needs to be loaded based on the 
textField value that the user entered on the first page.

From the documentation, I think here is how I should do it ---
I need to have two actions. When user clicks submit button, the first action 
(which is action-URL) gets called, I save the textField value in DB. Then 
redirect to the second action in the actionMapping. And the second action 
will be a render-URL, and that will call the DB and load the dropdown and 
put it in session and forward to the second page ??

Please bear with me if the question is very dumb :(
Thanks,
Amit

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


RE: J2 PSML and Security Question

2005-03-23 Thread Shah Amit
I dont know about Question no. 1. I dont really think that for Jetspeed 2 
psml's can go to DB's yet. They have it on their todo list I think.

For question no. 2, I am not sure if you can add columns. But a suggestion 
would be that -- for stuff like user name, email etc. take a look at the 
preferences tables. You can store any preferences in those tables. Also if 
you take a look at JSR-168, they have a recommended way of storing such 
information as username, emails, addresses, etc.

Original Message Follows
From: Archana Turaga [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: RE: J2 PSML and Security Question
Date: Wed, 23 Mar 2005 08:55:52 -0600
Answer to the first question...Yes you can store PSMLs in the database
in Jetspeed 1. Look at the following link for directions
http://portals.apache.org/jetspeed-1/psml_db.html.
-Original Message-
From: Shiv Swaminathan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 23, 2005 8:37 AM
To: jetspeed-user@jakarta.apache.org
Subject: J2 PSML and Security Question
Hi ,
  I have a couple of questions. It would be great help if someone
helped.
1. Can PSMLs be stored in a database as in Jetspeed-1? and How ?
2. Can we alter the J2 security table to add more columns for
the user details . ie more than name email etc.?
What are the other things that need to be taken care for
this ?
Thanks in advance
Shiv

-
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: Struts bridge concept related Question

2005-03-23 Thread Shah Amit
Hi Thomas,
Thanks for your reply. I have gone thru the documentation that you 
mentioned. I think I do understand it a little bit.

However I am facing some difficulties --
Following is an excerpt from my portlet.xml file --
	portlet
		init-param
		  nameServletContextProvider/name
		  valueorg.apache.jetspeed.portlet.ServletContextProviderImpl/value
		/init-param
   	init-param
 		nameViewPage/name
 		value/showFirstPage.do/value
		/init-param
   	portlet-nametagportal/portlet-name
   	display-nameTag Test Portlet/display-name
   
	portlet-classorg.apache.portals.bridges.struts.StrutsPortlet/portlet-class
	expiration-cache-1/expiration-cache
   	supports
	  mime-typetext/html/mime-type
   	  portlet-modeVIEW/portlet-mode
   	/supports
		portlet-info
			titleTag Test Portlet/title
			short-titleTag Test Portlet/short-title
   	/portlet-info
 	/portlet


And following are my actionMappings --
   action-mappings
   action path=/displayFirstPage name=firstPageForm 
scope=session
   validate=false include=/WEB-INF/view/firstPage.jsp/
   action path=/showFirstPage
   
type=com.tagaudit.tagportal.struts.actions.FirstPageRenderAction
   name=firstPageForm scope=session validate=false
   forward name=success path=/displayFirstPage.do
   redirect=true/
   /action
   action path=/secondPage include=/WEB-INF/view/secondPage.jsp/
   action path=/thirdPage
   type=com.tagaudit.tagportal.struts.actions.TestAction
   name=secondPageForm scope=session validate=false
   forward name=success path=/secondPage.do redirect=true/
   /action
   /action-mappings


Now the problem is, with this setup, I can see the execute method of 
FirstPageRenderAction.java being called. But it is not being forwarded to 
/displayFirstPage.do as specified in my actionMapping. And as a result, I 
get an empty portlet without any content. The thing is, there are no errors 
anywhere in any logs so :(

I spent almost whole day trying to figure that out ... Any help is very very 
appreciated !!

Thanks,
Amit
Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Struts bridge concept related Question
Date: Wed, 23 Mar 2005 15:42:35 +0100
i hope it's ok for ate.
i have same words from him:
If you post form data to Struts it should (preferrably) be processed in an
action handling only Struts Action. The form should post using an
ActionURL (required by the specs).
In the ActionRequest, the targetted Struts Action updates your Model (the
M in MVC) if need be and forwards (preferrably with redirect=true) to an

view handling only Struts Action.
Within the following RenderRequest(s), the view handling Struts Action
uses the Model to configure the required JSP rendering state/data if need
be.
Its very easy to use an include only Action mapping for that if nothing
has to be configured: action /index include=/WEB-INF/view/index.jsp/
It is advised to use an ActionMapping even for those situations as it
properly hides the rendering solution.
This applies to all Struts applications in general and a strong
recommendation from the Struts team too.
I also suggest you read up a bit on the Struts Bridge if you haven't done
so yet.
You should start with the README.txt in the Struts Bridge source tree.
Although the README.txt is a bit outdated already (haven't found the time
yet to write a proper userguide), it explains the above recommended flow
of actions.
And for more up todate information about the new features of the current
Struts Bridge 0.2 version:
http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/features.html
Happy coding, Ate


Hi all,
Please pardon my stupid question because I dont have much experience with
struts or portals !!!
I have gone thru the struts-bridge documentation that is given on the
jetspeed website, and I have a few questions as to what would be the best
way to solve my problem.
I have two pages in a portlet. On the first page there is a submit button,
and a textField. When user clicks the button, the second page should come
up. The second page has a drop down which needs to be loaded based on the
textField value that the user entered on the first page.
From the documentation, I think here is how I should do it ---
I need to have two actions. When user clicks submit button, the first
action
(which is action-URL) gets called, I save the textField value in DB. Then
redirect to the second action in the actionMapping. And the second action
will be a render-URL, and that will call the DB and load the dropdown and
put it in session and forward to the second page ??
Please bear with me if the question is very dumb :(
Thanks,
Amit

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

Re: Struts bridge concept related Question

2005-03-23 Thread Shah Amit
Thanks Ate  You are a life saver !!
Original Message Follows
From: Ate Douma [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Struts bridge concept related Question
Date: Wed, 23 Mar 2005 23:09:15 +0100
Shah,
I looked briefly at your actionMappings and the first thing I noticed is
that you do a redirect=true on a forward from a RenderAction...
You shouldn't need nor do that.
Forwarding with redirect=true is something you only need after processing
an ActionRequest.
Shah Amit wrote:
Hi Thomas,
Thanks for your reply. I have gone thru the documentation that you 
mentioned. I think I do understand it a little bit.

However I am facing some difficulties --
Following is an excerpt from my portlet.xml file --
portlet
init-param
  nameServletContextProvider/name
  
valueorg.apache.jetspeed.portlet.ServletContextProviderImpl/value
/init-param
   init-param
 nameViewPage/name
 value/showFirstPage.do/value
/init-param
   portlet-nametagportal/portlet-name
   display-nameTag Test Portlet/display-name
   
portlet-classorg.apache.portals.bridges.struts.StrutsPortlet/portlet-class

expiration-cache-1/expiration-cache
   supports
  mime-typetext/html/mime-type
 portlet-modeVIEW/portlet-mode
   /supports
portlet-info
titleTag Test Portlet/title
short-titleTag Test Portlet/short-title
   /portlet-info
 /portlet

And following are my actionMappings --
   action-mappings
   action path=/displayFirstPage name=firstPageForm 
scope=session
   validate=false include=/WEB-INF/view/firstPage.jsp/
   action path=/showFirstPage
   
type=com.tagaudit.tagportal.struts.actions.FirstPageRenderAction
   name=firstPageForm scope=session validate=false
   forward name=success path=/displayFirstPage.do
   redirect=true/
   /action
   action path=/secondPage include=/WEB-INF/view/secondPage.jsp/
   action path=/thirdPage
   type=com.tagaudit.tagportal.struts.actions.TestAction
   name=secondPageForm scope=session validate=false
   forward name=success path=/secondPage.do redirect=true/
   /action
   /action-mappings


Now the problem is, with this setup, I can see the execute method of 
FirstPageRenderAction.java being called. But it is not being forwarded to 
/displayFirstPage.do as specified in my actionMapping. And as a result, I 
get an empty portlet without any content. The thing is, there are no errors 
anywhere in any logs so :(

I spent almost whole day trying to figure that out ... Any help is very 
very appreciated !!

Thanks,
Amit
Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Struts bridge concept related Question
Date: Wed, 23 Mar 2005 15:42:35 +0100
i hope it's ok for ate.
i have same words from him:
If you post form data to Struts it should (preferrably) be processed in an
action handling only Struts Action. The form should post using an
ActionURL (required by the specs).
In the ActionRequest, the targetted Struts Action updates your Model (the
M in MVC) if need be and forwards (preferrably with redirect=true) to an

view handling only Struts Action.
Within the following RenderRequest(s), the view handling Struts Action
uses the Model to configure the required JSP rendering state/data if need
be.
Its very easy to use an include only Action mapping for that if nothing
has to be configured: action /index include=/WEB-INF/view/index.jsp/
It is advised to use an ActionMapping even for those situations as it
properly hides the rendering solution.
This applies to all Struts applications in general and a strong
recommendation from the Struts team too.
I also suggest you read up a bit on the Struts Bridge if you haven't done
so yet.
You should start with the README.txt in the Struts Bridge source tree.
Although the README.txt is a bit outdated already (haven't found the time
yet to write a proper userguide), it explains the above recommended flow
of actions.
And for more up todate information about the new features of the current
Struts Bridge 0.2 version:
http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/features.html

Happy coding, Ate


Hi all,
Please pardon my stupid question because I dont have much experience with
struts or portals !!!
I have gone thru the struts-bridge documentation that is given on the
jetspeed website, and I have a few questions as to what would be the best
way to solve my problem.
I have two pages in a portlet. On the first page there is a submit button,
and a textField. When user clicks the button, the second page should come
up. The second page has a drop down which needs to be loaded

RE: workflow of struts-bridge

2005-03-21 Thread Shah Amit
http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/features.html
This is a little bit burried documentation that I have been able to find 
from their website. Apart from that, if you take a look at the JPetstore 
sample application that comes with jetspeed, it has a very good example of 
struts-bridge in action.

Amit
Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: workflow of struts-bridge
Date: Mon, 21 Mar 2005 14:14:28 +0100
hi !
i want to understand the workflow of the struts-bridge complete.
somebody can give me a tip where the best point of beginning is ?
 the strutsPortlet, PortletServlet ?
have someone some documents, in addition to the feature.html and the
readme ?
best regards
thomas

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


RE: workflow of struts-bridge

2005-03-21 Thread Shah Amit
O so sorry. Thats my fault. I have read this page like 10 times, but never 
saw the link which says feature(s).html  It was not about the s. I 
just never saw the html name of the page !

Apart from that, if you read the
javaDocs for 
XXX:\jakarta-jetspeed-2\applications\jpetstore\src\java\com\ibatis\struts\BeanAction.java 
that says a little bit about the JPetstore application, but I am not sure if 
that is what exactly you want.

Other than that, atleast I haven't been able to locate any of the 
documentation. May be if you open up the source code of the struts-bridge 
itself and try to read the javadocs, may be you find something.

Amit
Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: RE: workflow of struts-bridge
Date: Mon, 21 Mar 2005 15:46:46 +0100
hi !
thanks, but the file after the link you post is one of the documents i
told from feature.html.
i forgot the s :-), sry.
yes it descripes the bridge, but really more the features than the
architecture.
and the architectur i am interesting in.
in the one hand because it is interesting and i need it for projects,  at
the other hand because i wanted to write something about it in my  diploma
thesis.


http://portals.apache.org/jetspeed-2/multiproject/portals-bridges-struts/features.html
This is a little bit burried documentation that I have been able to find
from their website. Apart from that, if you take a look at the JPetstore
sample application that comes with jetspeed, it has a very good example of
struts-bridge in action.
Amit
Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: workflow of struts-bridge
Date: Mon, 21 Mar 2005 14:14:28 +0100
hi !
i want to understand the workflow of the struts-bridge complete.
somebody can give me a tip where the best point of beginning is ?
  the strutsPortlet, PortletServlet ?
have someone some documents, in addition to the feature.html and the
readme ?
best regards
thomas

-
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: Deploying a portlet

2005-03-20 Thread Shah Amit
I think that indeed is the case. They are stored in the DB. I am 99% sure.
Amit
Original Message Follows
From: Martin Dulisch [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: Re: Deploying a portlet
Date: Sun, 20 Mar 2005 09:18:18 +0100
I nocted that when you replace a portlet you have also to change the 
fragment id. Otherwise the old portlet is still displayed. I also put a 
random number and my portlets are displayed without association in an other 
file.

Can someone explain the magic behind the fragment id? Is it stored in the 
database.

Martin
Priya Subramanian wrote:
Hi Martin,
I tried putting the entry in the default-page.psml. I replaced an entry
for the Pick a number portlet with mine. But there is a fragment id
which I need to specify. From where will I get this id? If I put some
random number, does it need to be associated in any other file? Plz
help. Thanks in advance.
Regards,
 Priya Subramanian
Systems Integration
Infosys Technologies Ltd.
Ext. No: 62965, Mob: 9880200241.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Martin Dulisch
Sent: Friday, March 18, 2005 8:40 PM
To: jetspeed-user@jakarta.apache.org
Subject: Re: Deploying a portlet
Have you added your portlet to a portal page. You can do this for
example by adding it to jetspeed/WEB-INF/pages/default-page.psml. May be
jetspeed expands your war when the portlet is accessed.
You could also look into the jetspeed/logs/deployment.log file. Is there
an error.
HTH, Martin
Priya Subramanian wrote:
Hi,
I am naive to jetspeed. My problem is how to deploy a custom portlet into 
Jetspeed 2. I tried creating  a portlet war (mydemo) file and put

it in the web-inf/deploy directory of the jetspeed. But when I restart

the tomcat, only an empty folder named mydemo is getting created in the 
webapps folder. I cant even find any error entry in the logs. Can anyone 
point me to some document which describes the procedure to deploy a 
portlet in jetspeed 2? Thanks in advance.


-
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: Documentation! PSML - No frames

2005-03-19 Thread Shah Amit
1.  If I wanted my portlets to be transparent to the client,
e.g. no frames, no edit, help, minimize and maximize buttons,
how would I do that? Does PSML (or maybe the lack of it)
provide that functionality?
Answer. -  We can easily get rid of the edit and help button by controlling 
the permissions. But if you want to remove the minimize, maximize and the 
entire title bar, the only way I know of is to write your own portlet 
decorator. We can write it in velocity or JSP. Jetspeed distribution has 
samples of velocity portlet decorators.

2.  what is the mechanism by which the portal container does
initial rendering of its targetted portlets when your portal page
first starts up?  Does the container call the render methods
of the contained portlets after initialization?  I don't think the
JSR 168 spec addresses this.  I could hunt around for a while and
figure this out, but if someone could point me to the right place it would 
be a big time saver.

Answer. - As far as I know, the RenderRequest is called everytime a portlet 
is rendered. Meaning, if there are 5 portlets in a psml and the page is 
refreshed 3 times, each time, the render method of each of the 5 portlets 
will be called by the portlet container.

Hope that helps,
Amit

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


RE: Develop deploy a portlet(Tomcat)

2005-03-18 Thread Shah Amit
Hi Priya,
http://wiki.apache.org/portals/Jetspeed2/DeployingCustomPortlets is a 
wiki for what you need.

Also the wiki pages are a very good source of information for lot of stuff 
around jetspeed. Besides that, they have a little bit documentation on the 
website itself. It is not complete, but can get you started a little bit. 
They have good documentation for the security model of jetspeed 2, the 
layout/decorators modules and the struts-bridge for jetspeed.

Original Message Follows
From: Priya Subramanian [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: Develop  deploy a portlet(Tomcat)
Date: Fri, 18 Mar 2005 19:59:36 +0530
Hi,
Can anyone point me to some good document for developing and deploying
a portlet in jetspeed 2?

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


RE: searching a Spring Portlet example [Deutsche Boerse Systems:Virus checked]

2005-03-16 Thread Shah Amit
I have a small example using spring to manage my business logic classes, and 
they are called by struts action classes.

I will mail you that once I package everything up.
Amit
Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: searching a Spring Portlet example [Deutsche Boerse Systems:Virus 
checked]
Date: Wed, 16 Mar 2005 14:50:29 +0100

Hi
I still search for a Spring applikation witch run as a portlet under
jetspeed2.
I  have tried to get the petclinic, countries and sample MVC  Spring
applications to run as portlets but without success.
searching for the sample application:
com.manning.enterpriseportals.portlets.chapter8.finance.ClientInfoBean
from the config sample was also without succuess.
may be someone have a little example for me, it can be very small (Hello
Spring Portlet)
Thank you very much
mfg Matthias
-
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte
Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenen Informationen
ist nicht gestattet.
The information contained in this message is confidential or protected by
law. If you are not the intended recipient, please contact the sender and
delete this message. Any unauthorised copying of this message or
unauthorised distribution of the information contained herein is
prohibited.

-
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: searching a Spring Portlet example [Deutsche Boerse Systems:Virus checked]

2005-03-16 Thread Shah Amit
Hi all,
I am so sorry for the confusion. When I said I have application, I only use 
spring IOC feature. I dont use the spring web layer. I use struts framework 
and the struts-bridge that ships with jetspeed.

Thanks,
Amit
Original Message Follows
From: Scott T Weaver [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: 'Jetspeed Users List' jetspeed-user@jakarta.apache.org
Subject: RE: searching a Spring Portlet example [Deutsche Boerse 
Systems:Virus checked]
Date: Wed, 16 Mar 2005 09:20:04 -0500

For the Spring web layer to work correctly within a portlet would require a
bridge to be built, like the one that is available for Struts in the Bridges
project.  At the start of the Bridges project I posted a message on the
Spring user's list asking for participation but it appeared that that call
fell on deaf ears :(
You may want to post on the Spring user's list and see if anyone has written
any JSR-168 portlets using the Spring web layer.
Regards,
Scott
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, March 16, 2005 8:50 AM
 To: jetspeed-user@jakarta.apache.org
 Subject: searching a Spring Portlet example [Deutsche Boerse 
Systems:Virus
 checked]

 Hi

 I still search for a Spring applikation witch run as a portlet under
 jetspeed2.

 I  have tried to get the petclinic, countries and sample MVC  Spring
 applications to run as portlets but without success.
 searching for the sample application:
 com.manning.enterpriseportals.portlets.chapter8.finance.ClientInfoBean

 from the config sample was also without succuess.

 may be someone have a little example for me, it can be very small (Hello
 Spring Portlet)

 Thank you very much

 mfg Matthias
 -
 Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte
 Informationen.
 Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
 sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
 dieser E-Mail oder die unbefugte Weitergabe der enthaltenen Informationen
 ist nicht gestattet.

 The information contained in this message is confidential or protected by
 law. If you are not the intended recipient, please contact the sender and
 delete this message. Any unauthorised copying of this message or
 unauthorised distribution of the information contained herein is
 prohibited.




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


J2 - Struts Bridge with Jakarta Validator

2005-03-14 Thread Shah Amit
Hi all,
I am trying to user the validator plugin with struts bridge. It works 
great when I do a non-javascript validation with validate=true in the 
action mapping.

However, if I want to do a javascript validation on the client side, I have 
to put validate=false, and in that case, I am getting a class cast 
exception.

I tried to look around, and the problem seems to be that my form has to 
extend org.apache.struts.validator.ValidatorForm. And I checked the line 
where the exception is, and that is because it tries to cast it to 
ActionForm. However ValidatorForm does extend ActionForm :(

Please pardon my question if it is stupid. I am a new with Struts :-(
The exception is --
java.lang.ClassCastException
   at 
org.apache.struts.util.RequestUtils.lookupActionForm(RequestUtils.java:215)
   at 
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:181)
   at 
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:321)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:204)
   at 
org.apache.portals.bridges.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:50)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
   at 
org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:335)
   at 
org.apache.portals.bridges.struts.StrutsPortlet.processAction(StrutsPortlet.java:268)
   at 
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:226)
   at 
org.apache.jetspeed.container.JetspeedContainerServlet.doPost(JetspeedContainerServlet.java:298)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
   at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
   at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.action(ServletPortletInvoker.java:133)
   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.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
   at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:142)
   at $Proxy12.action(Unknown Source)
   at 
org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:148)
   at 
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.processPortletAction(JetspeedPortletContainerWr
   at 
org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:75)
   at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
   at 
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
   at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
   at 
org.apache.jetspeed.profiler.impl.ProfilerValveImpl.invoke(ProfilerValveImpl.java:133)
   at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
   at 
org.apache.jetspeed.security.impl.PasswordCredentialValveImpl.invoke(PasswordCredentialValveImpl.java:139)
   at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
   at 
org.apache.jetspeed.security.impl.AbstractSecurityValve$1.run(AbstractSecurityValve.java:117)



RE: J2 - Struts Bridge with Jakarta Validator

2005-03-14 Thread Shah Amit
This is not a problem anymore. This is wierd situation. I had a browser open 
and I kept refreshing the same page and I got the issue. I just redeployed 
everything and started a fresh browser, and this is not an issue anymore.

Thanks,
Amit
Original Message Follows
From: Shah Amit [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: J2 - Struts Bridge with Jakarta Validator
Date: Mon, 14 Mar 2005 15:10:27 -0500
Hi all,
I am trying to user the validator plugin with struts bridge. It works 
great when I do a non-javascript validation with validate=true in the 
action mapping.

However, if I want to do a javascript validation on the client side, I have 
to put validate=false, and in that case, I am getting a class cast 
exception.

I tried to look around, and the problem seems to be that my form has to 
extend org.apache.struts.validator.ValidatorForm. And I checked the line 
where the exception is, and that is because it tries to cast it to 
ActionForm. However ValidatorForm does extend ActionForm :(

Please pardon my question if it is stupid. I am a new with Struts :-(
The exception is --
java.lang.ClassCastException
   at 
org.apache.struts.util.RequestUtils.lookupActionForm(RequestUtils.java:215)
   at 
org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:181)
   at 
org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:321)
   at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:204)
   at 
org.apache.portals.bridges.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:50)
   at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
   at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
   at 
org.apache.portals.bridges.struts.StrutsPortlet.processRequest(StrutsPortlet.java:335)
   at 
org.apache.portals.bridges.struts.StrutsPortlet.processAction(StrutsPortlet.java:268)
   at 
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:226)
   at 
org.apache.jetspeed.container.JetspeedContainerServlet.doPost(JetspeedContainerServlet.java:298)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
   at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
   at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
   at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
   at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
   at 
org.apache.jetspeed.container.invoker.ServletPortletInvoker.action(ServletPortletInvoker.java:133)
   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.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
   at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:142)
   at $Proxy12.action(Unknown Source)
   at 
org.apache.pluto.PortletContainerImpl.processPortletAction(PortletContainerImpl.java:148)
   at 
org.apache.jetspeed.container.JetspeedPortletContainerWrapper.processPortletAction(JetspeedPortletContainerWr
   at 
org.apache.jetspeed.pipeline.valve.impl.ActionValveImpl.invoke(ActionValveImpl.java:75)
   at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209)
   at 
org.apache.jetspeed.container.ContainerValve.invoke(ContainerValve.java:76)
   at 
org.apache.jetspeed.pipeline.JetspeedPipeline.invokeNext(JetspeedPipeline.java:209

RE: Can not build Jetspeed 2 on linux with jkd 1.5

2005-03-12 Thread Shah Amit
It is definately jdk1.5 and not linux. The issue is, Sun decided to make 
enum a keyword in jdk1.5 for whatever reasons !!

So as a result --
Enumeration enum = someObject.getEnumeration();
Statement will not compile with jdk1.5 because it would complain about the 
enum variable name being a keyword.

I dont really know the solution to this. My working solution is stay away 
from jdk1.5 !!!

http://forum.java.sun.com/thread.jspa?threadID=581235messageID=2960217
Amit
Original Message Follows
From: Danilo Luiz Rheinheimer [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: Can not build Jetspeed 2 on linux with jkd 1.5
Date: Sat, 12 Mar 2005 12:11:01 -0500
Hi,
 I can not build jetspeed 2 on a machine running linux with jdk 1.5
 Using jdk 1.4 and windows it is working ok (but I think the problem is 
with jdk 1.5 not linux).
 This is the error message :

+
| Build and Install all Jetspeed 2 jars Jetspeed-2 Registry Components
| Memory: 58M/73M
+
Attempting to download jmock-SNAPSHOT.jar.
jar:install:
build:end:
build:start:
java:prepare-filesystem:
   [mkdir] Created dir: 
/home/danilo/prg/portal/jetspeed/components/registry/target/classes

java:compile:
   [echo] Compiling to 
/home/danilo/prg/portal/jetspeed/components/registry/target/classes
   [echo]
==

 NOTE: Targetting JVM 1.5, classes
 will not run on earlier JVMs
==
   [javac] Compiling 52 source files to 
/home/danilo/prg/portal/jetspeed/components/registry/target/classes
   [javac] 
/home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282: 
as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
   [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
   [javac] for (Enumeration enum = bundle.getKeys(); 
enum.hasMoreElements();)
   [javac]  ^
   [javac] 
/home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:282: 
as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
   [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
   [javac] for (Enumeration enum = bundle.getKeys(); 
enum.hasMoreElements();)
   [javac]   ^
   [javac] 
/home/danilo/prg/portal/jetspeed/components/registry/src/java/org/apache/jetspeed/om/impl/LanguageImpl.java:284: 
as of release 1.5, 'enum' is a keyword, and may not be used as an identifier
   [javac] (try -source 1.4 or lower to use 'enum' as an identifier)
   [javac] String key = (String) enum.nextElement();
   [javac]   ^
   [javac] 3 errors

BUILD FAILED
File.. /home/danilo/prg/portal/jetspeed/maven.xml
Element... maven:reactor
Line.. 133
Column 40
Unable to obtain goal [java:compile] -- 
/home/danilo/.maven/cache/maven-java-plugin-1.5/plugin.jelly:63:48: 
ant:javac Compile failed; see the compiler error output for details.
Total time: 12 minutes 55 seconds
Finished at: Sat Mar 12 11:09:11 EST 2005


-
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: Eclipse Plugins for Jetspeed Development

2005-03-11 Thread Shah Amit
I have heard that there is some eclipse plugin for Pluto out there. But I 
dont know how good that works with Jetspeed.

Apart from that, I haven't heard of any.
Amit
Original Message Follows
From: Marky Goldstein [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Eclipse Plugins for Jetspeed Development
Date: Fri, 11 Mar 2005 11:49:25 +0100
Hello People,
Is anybody working on
Eclipse Plugins for Jetspeed Development
?
Any suggestions ideas for such a project?
Best regards,
Marky Goldstein

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


Struts bridge fails with error for html:link

2005-03-11 Thread Shah Amit
Hi all,
Following is my firstPage.jsp
html:link href=secondPage.doGo to Second Page/html:link
and below is my struts-config.xml file ---
struts-config
action-mappings
action path=/firstPage 
include=/WEB-INF/view/firstPage.jsp/
action path=/secondPage 
include=/WEB-INF/view/secondPage.jsp/
/action-mappings
	controller pagePattern=$M$P inputForward=false 
processorClass=org.apache.portals.bridges.struts.PortletRequestProcessor/

/struts-config

When I try to access the page, I get --
JetspeedRequestDispatcher failed to include servlet resources. (details 
below)
Exception: org.apache.jasper.JasperException
Message: null

Stack Trace:
  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
  
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
  
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
  
org.apache.jetspeed.dispatcher.JetspeedRequestDispatcher.include(JetspeedRequestDispatcher.java:65)
  
org.apache.portals.bridges.common.GenericServletPortlet.doView(GenericServletPortlet.java:363)
  javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:247)
  javax.portlet.GenericPortlet.render(GenericPortlet.java:175)
  
org.apache.jetspeed.container.JetspeedContainerServlet.doGet(JetspeedContainerServlet.java:233)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
  
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
  
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:704)
  
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:590)
  
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:510)
  
org.apache.jetspeed.container.invoker.ServletPortletInvoker.invoke(ServletPortletInvoker.java:215)
  
org.apache.jetspeed.container.invoker.ServletPortletInvoker.render(ServletPortletInvoker.java:125)
  sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source)
  
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  java.lang.reflect.Method.invoke(Method.java:324)
  
org.springframework.aop.framework.AopProxyUtils.invokeJoinpointUsingReflection(AopProxyUtils.java:61)
  
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:142)
  $Proxy12.render(Unknown Source)


I know this stuff works as shown in JPetStore example. I just can't figure 
out what I am doing wrong.

Please help ...
Thanks,
Amit

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


J2 - jstl - Expressions are not allowed

2005-03-09 Thread Shah Amit
Hi,
I created my own portlet, and I am trying to use expressions in jstl but 
they are failing saying that they are not allowed.

I had to go to the c.tld file and change 
rtexprvaluefalse/rtexprvalue to rtexprvaluetrue/rtexprvalue to 
allow those.

Can someone please tell me what I am doing wrong ... I noticed that lot of 
sample applications of jetspeed use expressions, and they dont have to do 
this ...

Thanks,
Amit

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


Re: J2 - jstl - Expressions are not allowed

2005-03-09 Thread Shah Amit
Thanks a lot Doug. That did fix my problem.
Amit
Original Message Follows
From: Doug Schnelzer [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: J2 - jstl - Expressions are not allowed
Date: Wed, 9 Mar 2005 15:15:16 -0500
Amit,
I just had that problem too.  In my case it was because I was using
the Servlet 2.4 spec.  I don't know the details behind what changed in
the JSTL from 2.3 to 2.4.
I change the declaration in my web.xml header from:
?xml version=1.0 encoding=UTF-8?
web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
To
?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC
-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
I was fine after that.
Hope that helps,
- Doug

On Wed, 09 Mar 2005 14:02:03 -0500, Shah Amit [EMAIL PROTECTED] 
wrote:
 Hi,

 I created my own portlet, and I am trying to use expressions in jstl but
 they are failing saying that they are not allowed.

 I had to go to the c.tld file and change
 rtexprvaluefalse/rtexprvalue to rtexprvaluetrue/rtexprvalue 
to
 allow those.

 Can someone please tell me what I am doing wrong ... I noticed that lot 
of
 sample applications of jetspeed use expressions, and they dont have to do
 this ...

 Thanks,
 Amit

 -
 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: Why use Preferences for storing User Attributes?

2005-03-09 Thread Shah Amit
Hi Frank,
I understand a little bit of that part. I am in no way an expert but I will 
tell you what I understand.

Say a user has ---
prefName1=prefValue1
prefName2=prefValue2
In this case, prefName1 and prefName2 will be stored in PREFS_PROPERTY_KEY 
and prefValue1 and prefValue2 will be stored in PREFS_PROPERTY_VALUE.

I have found that I will be able to live with this much knowledge because I 
can store my preferences in these tables, and I can retrieve them in my 
portlet.

Hope that helps,
Amit
Original Message Follows
From: Frank Villarreal [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Why use Preferences for storing User Attributes?
Date: Wed, 9 Mar 2005 15:01:18 -0600
Hello all.
As I'm trying to integrate a legacy user database with J2's SPI, I'm
discovering all sorts of, shall we say ... stumbling blocks :-).  I do
understand the premise of how a User's attributes are accessed through the
Request object ... however, I'm finding it incredibly unintuitive to
decipher the J2 database structure (specifically user attribute instance
values).  Can someone please explain to me the purposes of the following
specific tables ... and how they store user attribute values?
- PREFERENCE_VALUE
- PREFS_NODE
- PREFS_NODE_PROPERTY_KEY
- PREFS_PROPERTY_KEY
- PREFS_PROPERTY_VALUE
I have noted that the table USER_ATTRIBUTE stores the dynamic attribute
names, but I'm trying to figure out how to store instances of attributes
for individual users.  Additionally, I do have a few non-standard
attribute fields I'd like to store for each user ... and have no idea (from
reading the docs or examining the DB model) of how to accomplish this.
Any reason as to why a simple USER_ATTRIBUTE_VALUE table wasn't used
instead?  Being that a web site User is one of the central objects in a
portal, seems to me that it would be best if customization of this aspect
were kept simple?  Just my 2 cents.
Any insight would be greatly appreciated.
- Frank
-
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]


security_credential - encryption algorithm

2005-03-08 Thread Shah Amit
Hi all,
Does anyone know what kind of encryption is used on security_credential 
table ... Actually I have some data that I need to translate to jetspeed 
based model and populate the security_credential table with an external 
program so ...

Thanks,
Amit

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


RE: security_credential - encryption algorithm

2005-03-08 Thread Shah Amit
Did some reasearch in the spi-impl modules and found that it is SHA-1. Can 
someone confirm if I am right 

Thanks,
Amit
Original Message Follows
From: Shah Amit [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: security_credential - encryption algorithm
Date: Tue, 08 Mar 2005 13:25:23 -0500
Hi all,
Does anyone know what kind of encryption is used on security_credential 
table ... Actually I have some data that I need to translate to jetspeed 
based model and populate the security_credential table with an external 
program so ...

Thanks,
Amit

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


J2 - Removing maximize/minimize buttons from portlet title

2005-03-03 Thread Shah Amit
How can I remove the maximize and minimize buttons from the portlet title 
bar?? I know I can control the permission for edit and view the portlet. But 
is there a way to remove the maximize and minimize buttons also ??

Also, is there a way to get rid of the entire title bar, or we have to write 
a custom decorator for that? I roughly know the code for decorator and I 
have seen that there is no if loop checking for anything before the title 
bar so I guess we need a custom decorator to remove the title bar completely 
??

Thanks,
Amit

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


Problem with - Create user portlet prefs_property_key table

2005-02-28 Thread Shah Amit
Hi all,
I have found following -
I created a user with the create user portlet. Now I added user.name.given 
and user.name.family properties to the user. Now I understand that the 
values for these properties go to - prefs_property_value table. But the keys 
(user.name.given and user.name.family) are added to  prefs_property_key 
table too. So in the prefs_property_key table I have two entries for each of 
above. (Because there is already one pair for the admin user). I know that 
the UI does not let you choose these properties from like a dropdown, or 
create new properties. To me it logically makes sense that there should only 
be one user.name.given and user.name.family entries in the 
prefs_property_key table, and then multiple values in the value table.

I dont know if this is a problem, or I am misunderstanding something.
Thanks,
Amit

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


Spring IOC with Jetspeed

2005-02-28 Thread Shah Amit
Hi all,
I want to use sprint framework IOC feature in my portal. Can I just go ahead 
and load the servlet like this in my web.xml  --

servlet
servlet-namecontext/servlet-name

servlet-classorg.springframework.web.context.ContextLoaderServlet/servlet-class
load-on-startup1/load-on-startup
/servlet


Or there can be some issues and I should not use it? I only know that 
jetspeed uses spring ioc feature so I was just concerned.

Thanks,
Amit

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


Re: getting started

2005-02-23 Thread Shah Amit
Hi Bernhard,
The build file that you showed earlier on this thread, is that the complete 
build file that you have? I just happened to notice that it is missing the 
entire DB configuration section. I would suggest take the same build file 
that comes with the distribution and just copy it to your home directory and 
rename it, and change the paths. This has always worked for me.

Let me know if you need any help ;)
Cheers,
Amit
Original Message Follows
From: Bernhard [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: getting started
Date: Wed, 23 Feb 2005 10:53:02 +0100

no, i didn't so... the filename is build.properties...
what i don't understand is that also if i remove the build.properties from 
my user home directory, the maven build process is successful... (anyway - 
same error in the browser)...

did you use the build.properties file delivered in the .zip file? i created 
my own, like it is told in the getting started manual... maybe i give it a 
try and use the delivered file (changing the name from 
build.properties.sampe to build.properties ;-)

amit - thank you for attention to my problems,
i'll let you know if i'm successful!
bernhard
- Original Message - From: Shah Amit [EMAIL PROTECTED]
To: jetspeed-user@jakarta.apache.org
Sent: Tuesday, February 22, 2005 9:48 PM
Subject: Re: getting started

Did you rename your build.properties.sample file to build.properties ??? I 
was rebuilding jetspeed on a machine and just tumbled upon the same problem 
so  I dont know if you already got pass this, so just thought should 
let you know.

Amit
Original Message Follows
From: Bernhard Bauer [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: getting started
Date: Tue, 22 Feb 2005 08:49:33 +0100
my build.properties file looks like this:
# jetspeed 2 home required for build
org.apache.jetspeed.project.home = e:/jetspeed-2.0
# jetspeed required properties
org.apache.jetspeed.server.home = e:/Jakarta/Tomcat 5.0
org.apache.jetspeed.catalina.version.major = 5
org.apache.jetspeed.server.shared =
${org.apache.jetspeed.server.home}/shared/lib
org.apache.jetspeed.deploy.war.dir =
${org.apache.jetspeed.server.home}/webapps
org.apache.jetspeed.services.autodeployment.user = j2deployer
org.apache.jetspeed.services.autodeployment.password = j2deployer
btw - the error i get in the browser is: HTTP Status 503 - Servlet jetspeed 
is currently unavailable

- Original Message - From: Shah Amit [EMAIL PROTECTED]
To: jetspeed-user@jakarta.apache.org
Sent: Tuesday, February 22, 2005 1:56 AM
Subject: RE: getting started

Can you show your build.properties file ... I think you might not have set 
the proper paths on the build.properties file.

Also note that the slashes are all forward slash even though it is 
windows. It has biten lot of people including me ;)

C:/Documentsx/and not C:\Documentsx\
Goodluck,
Amit
Original Message Follows
From: Bernhard [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: j2 mailing list jetspeed-user@jakarta.apache.org
Subject: getting started
Date: Tue, 22 Feb 2005 00:07:46 +0100
hi all!
has somebody a detailed installation instruction for jetspeed 2?
i use  windows xp
 -tomcat 5.0.28
 -maven 1.0.2
 -java 1.4.2_03
i tried to follow the getting started instruction on the apache homepage 
but
it doesn't work...
after following all steps, and trying to start jetspeed (in a browser), i 
get a message: http error ?404? - servlet not available!
does someone know what to do?

i installed the components the following way:
firstly - java,
then - tomcat,
at last - maven
then i created the build.properties file and placed it under C:\Document 
and Settings\User

first question:
when i enter the maven start.test.server command - i get a message: 
'server.properties not found, using command line or default properties'
but the hsqldb server is running...
is this normal behavior?

- maven allClean allBuild seems to work fine;
when i stop the test.server and enter maven.start.production.server into 
the
command prompt, i get the same 'server.properties not found,...' 
message...
but also production.server is running;

maven quickstart maybe doesn't what it should, it creates the jetspeed 
folder directly under the root directory - is there something wrong with 
my build properties?

ok, i copy the jetspeed folder (also tried it with the .war file) under 
the webapps directory; start up tomcat and enter the adress 
http://localhost:8080/jetspeed into my browser... - but the portal doesn't 
start - i only get the above described HTTP ERROR - servlet not 
available...

thank you all for your help,
greetings, bernd

-
To unsubscribe, e-mail

RE: getting started

2005-02-21 Thread Shah Amit
Can you show your build.properties file ... I think you might not have set 
the proper paths on the build.properties file.

Also note that the slashes are all forward slash even though it is windows. 
It has biten lot of people including me ;)

C:/Documentsx/and not C:\Documentsx\
Goodluck,
Amit
Original Message Follows
From: Bernhard [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: j2 mailing list jetspeed-user@jakarta.apache.org
Subject: getting started
Date: Tue, 22 Feb 2005 00:07:46 +0100
hi all!
has somebody a detailed installation instruction for jetspeed 2?
i use  windows xp
 -tomcat 5.0.28
 -maven 1.0.2
 -java 1.4.2_03
i tried to follow the getting started instruction on the apache homepage but
it doesn't work...
after following all steps, and trying to start jetspeed (in a browser), i 
get a message: http error ?404? - servlet not available!
does someone know what to do?

i installed the components the following way:
firstly - java,
then - tomcat,
at last - maven
then i created the build.properties file and placed it under C:\Document and 
Settings\User

first question:
when i enter the maven start.test.server command - i get a message: 
'server.properties not found, using command line or default properties'
but the hsqldb server is running...
is this normal behavior?

- maven allClean allBuild seems to work fine;
when i stop the test.server and enter maven.start.production.server into 
the
command prompt, i get the same 'server.properties not found,...' message...
but also production.server is running;

maven quickstart maybe doesn't what it should, it creates the jetspeed 
folder directly under the root directory - is there something wrong with my 
build properties?

ok, i copy the jetspeed folder (also tried it with the .war file) under the 
webapps directory; start up tomcat and enter the adress 
http://localhost:8080/jetspeed into my browser... - but the portal doesn't 
start - i only get the above described HTTP ERROR - servlet not available...

thank you all for your help,
greetings, bernd

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


Re: J2 - Grouping Permissions with the JAAS implementation

2005-02-21 Thread Shah Amit
Hi Randy,
I have to control two things with the help of security model.
1. Allow/disallow/show different contents on a psml based on which user is 
logged on. (This is very easy to achieve with the security model of Jetspeed 
as you indicated.)
2. Enable/Disable contents on some individual portlets based on which user 
has logged on. (For example show some buttons and links on a page to only 
some users, and not to other users, show some text fields and labels to only 
some users and not to othersetc...) Now for this feature, should I use 
security_permission table, or I should just define a role and flag my 
components based on that role ... I couldn't find a way to access the 
security_permissions from within the portlet using the standard portlet api 
(it is probably custom jetspeed stuff ?? ...) .

Also, there is a table - security_group_role on the schema. This table has 
zero records. The way the relations on this table are defined, I am confused 
as to why or how I would ever use this table.

Thanks,
Amit
Original Message Follows
From: [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: J2 - Grouping Permissions with the JAAS implementation
Date: Mon, 21 Feb 2005 08:37:02 -0700 (MST)
Amit,
There are two security implementations to choose between to control access
to folders and pages in the J2 portal. Both solutions allow specification
by group and role in addition to user principals. I am not sure exactly
what you are using the 20-25 permissions to control, but I am guessing
that your J2 needs are covered.
For PSML based security, (aka bronco), poke around in the demo site
files for security-constraint tags. There are also some docs on the site
that David put together as well.
For JAAS permissions style security, see the
populate-userinfo-for-default-psml.sql script that configures similar
access to the site content. To use JAAS, you will have to change the
configuration of the CastorXMLPageManager component in page-manager.xml.
One can also use BOTH mechanisms simultaneously if necessary.
HTH,
Randy
 With the security implementation of JAAS, I think in jetspeed there is a
 direct relation between user and permissions.

 Now in a scenerio that I have, I have a bunch of permissions that I group
 into a role, and then relate that to user. I think this facility is
 lacking
 in jetspeed. But I am not sure if this is the case, or I am missing
 something. This feature would be kind of essential because I have around
 20
 - 25 permissions and I have to change behaviours based on those
 permissions.
 The user_permission table of jetspeed would probably get really very big.

 Any suggestions/helps 

 Thanks,
 Amit



 Original Message Follows
 From: mike long [EMAIL PROTECTED]
 Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 To: Jetspeed Users List jetspeed-user@jakarta.apache.org
 Subject: Re: Access your own psml file
 Date: Wed, 09 Feb 2005 12:29:59 -0500

 Shah Amit wrote:

Hi Mike,

Thanks a lot !! I do need help with security implementation. I would
 really
really appreciate help !! I have gone thru the SPI interfaces and was
trying to understand them.

In the meantime, I was preparing for a presentation tomorrow so I wanted
 to
see if I can layout a proof of concept with Jetspeed2.

But I definately need help with the security implementation.

If you want, I can pose my question again ---

I have following security tables --

 Sha,
 I will map the current J2 tables to your tables as best I can.  These are
 only my initial thoughts. I haven't implemented this solution to mapping
 your current security data model to J2. In general I think you have two
 alternatives:
 1) Map your current security data model to the J2 classes by altering the
 security_repository.xml file.  Security_repository.xml contains the
 mapping
 between the J2 security classes and the underlying data model. The
 advantage
 of this approach is that you would not have to change any code. You would
 know you were successful when all the tests ran. Some tests may still
 fail.
 For example, you appear to have no many-to-many relationship between 
users
 and roles.  You will have to sort through relationships you are missing.
 Maybe the tests will still run. Perhaps you can still use the J2 table
 mappings where you have no equivalent.

 2) Implement the following interfaces: GroupSecurityHandler,
 RoleSecurityHandler, UserSecurityHandler, CredentialHandler, and
 SecurityMappingHandler. You will note that the default implementations of
 these classes use a class called SecurityAccessImpl to do a lot of the
 actual JDBC work.  You may have to change SecurityAccessImpl as well.
 This
 alternative seems pretty hard, close to the work involved in making LDAP
 implementations which I expect to take about a month given that you are
 already familiar with the underlying technology.

 I have done a cursory

Re: Installation issues

2005-02-20 Thread Shah Amit
Use forward slash / instead of \. I think maven files have to use 
forward slash. Atleast thats what I use and that works for me.

Goodluck
Amit
Original Message Follows
From: Edd Dawson [EMAIL PROTECTED]
Reply-To: Edd Dawson [EMAIL PROTECTED]
To: Hema Menon [EMAIL PROTECTED]
CC: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Installation issues
Date: Sun, 20 Feb 2005 11:56:44 +
Thanks all for pointing out where to put my build.properties file and
that i should use \\ rather than just \
However i still get the following:
C:\Program Files\Apache Group\jetspeedmaven start.test.server
__  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
BUILD FAILED
Goal start.test.server does not exist in this project.
Total time: 4 seconds
Finished at: Sun Feb 20 00:45:38 GMT 2005
I don't have a maven.xml file anywhere relating to jetspeed.. I am a
complete novice to Maven here :S
thanks
Edd
On Sat, 19 Feb 2005 19:32:37 -0900, Hema Menon [EMAIL PROTECTED] wrote:
 The build.properties should be present in your user home. On windows,
 it usually is in C:\Documents and Settings\user folder.

 The goal start.test.server should be present in your maven.xml file as
 shown below:

 goal name=start.test.server
 echo message= /
 echo message=Testing Database /
 echo message= /
  java classname=org.hsqldb.Server fork=yes
   classpath
 path refid=maven.dependency.classpath/
 pathelement path=${maven.build.dest}/
   /classpath

 Hema


 On Sun, 20 Feb 2005 01:22:28 +, Edd Dawson [EMAIL PROTECTED] 
wrote:
  Hi
 
  I have been trying to follow the getting started instructions at:
 
  http://portals.apache.org/jetspeed-2/getting-started.html
 
  I am trying to install on windows XP
  My Tomcat version is 4.1
  My Java version is 1.4.2_06
  I have ant 1.6.2 installed and Maven 1.0.2 and both are in my PATH
 
  Jetspeed has been unpacked to C:\Program Files\Apache Group\jetspeed\
  maven is installed in C:\Program Files\Apache Software Foundation\Maven 
1.0.2
 
  What i need to know is where i should create a build.properties file
  as requested in this part of the guide:
 
  Please set these values in your ${USER_HOME}/build.properties file:
 
  I created a build.properties in C:\Program Files\Apache
  Group\jetspeed\ with the values:
 
  org.apache.jetspeed.project.home=C:\Program Files\Apache 
Group\jetspeed\
  org.apache.jetspeed.server.home=C:\Program Files\Apache Group\Tomcat 
4.1\
  org.apache.jetspeed.catalina.version.major=4
  org.apache.jetspeed.server.shared=C:\Program Files\Apache Group\Tomcat
  4.1\shared\lib\
  org.apache.jetspeed.deploy.war.dir=C:\Program Files\Apache
  Group\Tomcat 4.1\webapps\
  org.apache.jetspeed.services.autodeployment.user=admin
  org.apache.jetspeed.services.autodeployment.password=password
 
  yet when i run maven start.test.server as required in step 4 i get the
  following error:
 
  C:\Program Files\Apache Group\jetspeedmaven start.test.server
   __  __
  |  \/  |__ _Apache__ ___
  | |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
  |_|  |_\__,_|\_/\___|_||_|  v. 1.0.2
 
  BUILD FAILED
  Goal start.test.server does not exist in this project.
  Total time: 4 seconds
  Finished at: Sun Feb 20 00:45:38 GMT 2005
 
  Where am i going wrong?
 
  thanks
  Edd
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 --

 ~~
 Hema Menon


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


J2 - Grouping Permissions with the JAAS implementation

2005-02-20 Thread Shah Amit
With the security implementation of JAAS, I think in jetspeed there is a 
direct relation between user and permissions.

Now in a scenerio that I have, I have a bunch of permissions that I group 
into a role, and then relate that to user. I think this facility is lacking 
in jetspeed. But I am not sure if this is the case, or I am missing 
something. This feature would be kind of essential because I have around 20 
- 25 permissions and I have to change behaviours based on those permissions. 
The user_permission table of jetspeed would probably get really very big.

Any suggestions/helps 
Thanks,
Amit

Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 12:29:59 -0500
Shah Amit wrote:
Hi Mike,
Thanks a lot !! I do need help with security implementation. I would really 
really appreciate help !! I have gone thru the SPI interfaces and was 
trying to understand them.

In the meantime, I was preparing for a presentation tomorrow so I wanted to 
see if I can layout a proof of concept with Jetspeed2.

But I definately need help with the security implementation.
If you want, I can pose my question again ---
I have following security tables --
Sha,
I will map the current J2 tables to your tables as best I can.  These are 
only my initial thoughts. I haven't implemented this solution to mapping 
your current security data model to J2. In general I think you have two 
alternatives:
1) Map your current security data model to the J2 classes by altering the 
security_repository.xml file.  Security_repository.xml contains the mapping 
between the J2 security classes and the underlying data model. The advantage 
of this approach is that you would not have to change any code. You would 
know you were successful when all the tests ran. Some tests may still fail. 
For example, you appear to have no many-to-many relationship between users 
and roles.  You will have to sort through relationships you are missing.  
Maybe the tests will still run. Perhaps you can still use the J2 table 
mappings where you have no equivalent.

2) Implement the following interfaces: GroupSecurityHandler, 
RoleSecurityHandler, UserSecurityHandler, CredentialHandler, and 
SecurityMappingHandler. You will note that the default implementations of 
these classes use a class called SecurityAccessImpl to do a lot of the 
actual JDBC work.  You may have to change SecurityAccessImpl as well.  This 
alternative seems pretty hard, close to the work involved in making LDAP 
implementations which I expect to take about a month given that you are 
already familiar with the underlying technology.

I have done a cursory mapping below:
- user (username, password, userid etc.)
security_principal - Contains the user. Your username field should be mapped 
to the full_path column.
security_credential - Contains the password. Password is the only type of 
credential in use as far as I can tell. Your current implementation stores 
the password on the user table. My ldap implementation does the same.

- groups (groupid, groupname)
security_principal - Contains the group, just mapped to a different class. 
Your groupname field should be mapped to the full_path column.

- role (roleid, rolename)
security_principal - Contains the role, just mapped to a different class. 
Your rolename field should be mapped to the full_path column.

- permission (permissionid, permissionname)
security_permission - Contains the security permissions. Your permissionname 
should map directly to the name column there.

- role_permission
Here you have a direct mapping the J2 security_principal_permission table. 
J2 puts role, group, and user in a single security_principal table.

- group_role
Here you have a direct mapping to the security_group_role table.
- user_group
This table is analogous to the J2 security_user_group table which contains 
two FKs: one to the security_principal row for the user and the other to the 
security_principal row for the group.


Now I am sure my DBA is going to yell on him if I ask him to change these 
tables !!! And David Sean Taylor advised that a good way of doing this 
would be to implement my own SPI provider. But then the mailing list 
advised me to see if it is feasible to adapt my tables ...

I am confused !! Help help !!!
I guess I can start the conversation back in the original database 
question thread because I guess it woudl be misguiding to have this 
discussion under this thread ...


Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 10:52:03 -0500
Shah Amit wrote:
I have my own portlet web application. Now it logically makes sense that 
to deploy

RE: Error in ClassCastException

2005-02-17 Thread Shah Amit
A wild guess would be try to cast it to the interface and not directly to 
the implementation ??

If you can give the entire trace, that would probably help better.
Amit
Original Message Follows
From: Zhonghui Ning [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org,  [EMAIL PROTECTED]
Subject: Error in ClassCastException
Date: Thu, 17 Feb 2005 12:20:32 +
Hello everyone,
I want to implement a portlet in jetspeed 2 + tomcat 5.0.28 + linux. My code 
can compile but I got a runtime error after I deploy my portlet in jetspeed. 
The error is java.lang.ClassCastException: 
org.apache.jetspeed.container.JetspeedPortletConfig.The error part of my 
code is in the following.
Any help? Thanks.
Zhonghui

// PortletConfigImpl.java
package com.star.portlet;
import javax.portlet.PortletConfig;
public class PortletConfigImpl implements PortletConfig {
..
}
// StrutsPortlet.java
package com.star.portlet;
import javax.portlet.PortletConfig;
public class StrutsPortlet extends GenericPortlet {
  private PortletConfigImpl _portletConfig;
   public void init(PortletConfig config) throws PortletException {
   super.init(config);   _portletConfig = 
(PortletConfigImpl)config;  // Error: java.lang.ClassCastException

   _editAction = getInitParameter(edit-action);
   _helpAction = getInitParameter(help-action);
   _viewAction = getInitParameter(view-action);
   _copyRequestParameters = GetterUtil.get(
   getInitParameter(copy-request-parameters), true);
   }
..
}
-
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]


J2 - Menu Navigation - Root Folder

2005-02-16 Thread Shah Amit
Hi all,
I  studied the entire org.apache.jetspeed.profiler.ProfiledPageContext 
interface. Now I want to reach to the root folder. Ultimately I want to 
create a tree of everything that exists, but from what I can understand 
after reading the way interfaces are designed, I think I have to go 
backwards upto the root node, and then start listing each child.

Now to reach the root folder, the best I could come up with is following 
macro. Would really appreciate if someone can suggest any better method ...

#macro(getRootFolder $folder)
#set($parent = $folder.getParent())
$parent
#if($parent != /)
   #getRootFolder($parent)
#end
#end
I would again like to mention that with those interfaces, it is really very 
convinient to list the child elements, and folders and stuff, but I am 
finding it a little bit tough to traverse my way up the tree to reach the 
grandest parent ...

Thanks,
Amit

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


Re: J2 - Menu Navigation - Root Folder

2005-02-16 Thread Shah Amit
Sure. Thanks for your response.
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: J2 - Menu Navigation - Root Folder
Date: Wed, 16 Feb 2005 09:17:10 -0800
Hi Shah,
Can you move this discussion to the jetspeed-dev mailing list?
I think its going to involve some reworking of APIs, and I prefer to discuss 
it there.

Thanks,
David
--
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]

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


Menu Navigation Tree

2005-02-15 Thread Shah Amit
Hi,
I understand the navigation structure of jetspeed a little bit. I am reading 
the ProfiledPageContext interface and trying to figure out how I can display 
a menu tree. The examples do show how child folders and links will be 
displayed. But how can I display the parent tree? Also where exactly on the 
parent menu tree am I currently ... That is my confusion. I posted the 
question before but seems like somehow it didn't make to the mailing list so 
I am posting this again.

Thanks,
Amit

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


Re: Menu Navigation Tree

2005-02-15 Thread Shah Amit
Hi David,
Thanks for your response. I was looking in the same area that you mentioned. 
Actually I have to customize all those macros a little bit. I need 
everything on top tabs and nothing on the left.

Along the similar lines, I have a little bit confusion. When should I use 
folders and pages within that, and when shoudl I use a document set xxx.ds 
? I have a fairly simple navigation structure of a tree that goes 3 levels 
deep and I need to represent all of that on top tabs (a little bit like 
amazon.com)

Thanks,
Amit

Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Menu Navigation Tree
Date: Tue, 15 Feb 2005 12:06:56 -0800
Shah Amit wrote:
Hi,
I understand the navigation structure of jetspeed a little bit. I am 
reading the ProfiledPageContext interface and trying to figure out how I 
can display a menu tree. The examples do show how child folders and links 
will be displayed. But how can I display the parent tree? Also where 
exactly on the parent menu tree am I currently ... That is my confusion. I 
posted the question before but seems like somehow it didn't make to the 
mailing list so I am posting this again.

The interface
http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/profiler/ProfiledPageContext.java?rev=1.3view=log
provides you with the ability to traverse over the folder and page tree.
Take a look at some of the page decorators examples such as tigris.
Where the profiled page context is set to the $site variable:
#set($site =
   $request.getAttribute(org.apache.jetspeed.profiledPageContext))
and then passed in to macros
of interest, see
#macro (includeNestedLinksWithIconNavigation $_nodeSet $_nodePrefix 
$_orientation)


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

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


Navigation Menu Tree

2005-02-15 Thread Shah Amit
Hi all,
I understand the way current Jetspeed 2 navigation system has been arranged 
a little bit. But I have some questions and I dont know how I should 
implement them.

For example I have a menu tree -
Page 1
Page 2
Level 1 Menu 1
Level 2 Page 1
Level 2 Page 2
Level 2 Page 3
Level 2 Menu 2
 Level 3 Page 1
 Level 3 Page 2
Page 3
Now if I arrange the Menu 1, Menu 2 as folders and put my psml's in those 
folders, I have a way to nagivate to those and back to parent thru the bread 
crum. But if I want a tree structure on left, or like on top (with Tabbed 
Interface), once I am on Level 2 Page 2, how do I display Page 1, Page 2, 
Level 1 and Page 3 as the parent menu components ? I can understand from the 
samples that the subfolders will automatically be displayed.

Please help ...
Thanks,
Amit

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


Re: Access your own psml file

2005-02-10 Thread Shah Amit
Hi David,
Thanks for your answer. I tried that, but I still get the default-page.psml 
file.

Actually I can type anything after http://localhost:8789/jetspeed/portal/ 
and it still gives me the same jetspeed default page

Please help :(
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 09:37:49 -0800
Shah Amit wrote:
I have my own portlet web application. Now it logically makes sense that 
to deploy this this applicaiton, I should just throw it under 
jetspeed/web-inf/deploy, and should be able to access my webapplication 
from the browser.

Till now I used to edit the default-page.psml in jetspeed/web-inf/pages 
directory and enter my portlet in there.

But suppose I want to have my own psml file. (I guess I should put it under 
my-webapp/web-inf/pages/myPage.psml ??) Now even if I do this, how should 
I access this page from the browser ? 
http://localhost:8080/jetspeed/myapp/myPage.psml ??

http://localhost:8080/jetspeed/portal/myapp/myPage.psml
Also look at the _user directory, as it holds folders and pages specific to 
a user.


Also regarding decorators. I have read all the documentation on the website 
and I understand how it should be done. But again similar question. I 
should be able to put my decorators under my-webapp/web-inf/decorations 
etc. ??

Decorations can be packaged into a jar and dropped in the WEB-INF/deploy 
directory

My only concern is that I dont want to change anything in jetspeed. This 
way I can easily keep updating jetspeed with new releases. Otherwise I 
would have to put my changes in jetspeed everytime I upgrade my jetspeed.

I do exactly that on my projects here.
For development, I have maven goals to drop in decorators, PSML and portlet 
apps

With PSML, I have one PSML directory per project (I don't use the demo PSML 
directory from the Jetspeed cvs)

Please help/advise/comment 
Thanks,
Amit

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


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

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


Access your own psml file

2005-02-09 Thread Shah Amit
I have my own portlet web application. Now it logically makes sense that 
to deploy this this applicaiton, I should just throw it under 
jetspeed/web-inf/deploy, and should be able to access my webapplication from 
the browser.

Till now I used to edit the default-page.psml in jetspeed/web-inf/pages 
directory and enter my portlet in there.

But suppose I want to have my own psml file. (I guess I should put it under 
my-webapp/web-inf/pages/myPage.psml ??) Now even if I do this, how should 
I access this page from the browser ? 
http://localhost:8080/jetspeed/myapp/myPage.psml ??

Also regarding decorators. I have read all the documentation on the website 
and I understand how it should be done. But again similar question. I should 
be able to put my decorators under my-webapp/web-inf/decorations etc. ??

My only concern is that I dont want to change anything in jetspeed. This way 
I can easily keep updating jetspeed with new releases. Otherwise I would 
have to put my changes in jetspeed everytime I upgrade my jetspeed.

Please help/advise/comment 
Thanks,
Amit

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


Re: Access your own psml file

2005-02-09 Thread Shah Amit
Hi Mike,
Thanks a lot !! I do need help with security implementation. I would really 
really appreciate help !! I have gone thru the SPI interfaces and was trying 
to understand them.

In the meantime, I was preparing for a presentation tomorrow so I wanted to 
see if I can layout a proof of concept with Jetspeed2.

But I definately need help with the security implementation.
If you want, I can pose my question again ---
I have following security tables --
- user (username, password, userid etc.)
- groups (groupid, groupname)
- role (roleid, rolename)
- permission (permissionid, permissionname)
- role_permission
- group_role
- user_group
Now I am sure my DBA is going to yell on him if I ask him to change these 
tables !!! And David Sean Taylor advised that a good way of doing this would 
be to implement my own SPI provider. But then the mailing list advised me to 
see if it is feasible to adapt my tables ...

I am confused !! Help help !!!
I guess I can start the conversation back in the original database 
question thread because I guess it woudl be misguiding to have this 
discussion under this thread ...


Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 10:52:03 -0500
Shah Amit wrote:
I have my own portlet web application. Now it logically makes sense that 
to deploy this this applicaiton, I should just throw it under 
jetspeed/web-inf/deploy, and should be able to access my webapplication 
from the browser.

Till now I used to edit the default-page.psml in jetspeed/web-inf/pages 
directory and enter my portlet in there.

But suppose I want to have my own psml file. (I guess I should put it under 
my-webapp/web-inf/pages/myPage.psml ??) Now even if I do this, how should 
I access this page from the browser ? 
http://localhost:8080/jetspeed/myapp/myPage.psml ??

Also regarding decorators. I have read all the documentation on the website 
and I understand how it should be done. But again similar question. I 
should be able to put my decorators under my-webapp/web-inf/decorations 
etc. ??

My only concern is that I dont want to change anything in jetspeed. This 
way I can easily keep updating jetspeed with new releases. Otherwise I 
would have to put my changes in jetspeed everytime I upgrade my jetspeed.

Please help/advise/comment 
Thanks,
Amit

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

Sha,
Did you work through your database issues? I am in the throes of 
understanding the Jetspeed-2 RDBMS security implementation and can offer 
some help if you need it.

Sincerely,
Mike Long
-
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: Access your own psml file

2005-02-09 Thread Shah Amit
Thanks a lot mike. You are a lifesaver !!! I will definatey try this and let 
you know if the monitor exploded or not ;)

Thanks,
Amit
Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 12:29:59 -0500
Shah Amit wrote:
Hi Mike,
Thanks a lot !! I do need help with security implementation. I would really 
really appreciate help !! I have gone thru the SPI interfaces and was 
trying to understand them.

In the meantime, I was preparing for a presentation tomorrow so I wanted to 
see if I can layout a proof of concept with Jetspeed2.

But I definately need help with the security implementation.
If you want, I can pose my question again ---
I have following security tables --
Sha,
I will map the current J2 tables to your tables as best I can.  These are 
only my initial thoughts. I haven't implemented this solution to mapping 
your current security data model to J2. In general I think you have two 
alternatives:
1) Map your current security data model to the J2 classes by altering the 
security_repository.xml file.  Security_repository.xml contains the mapping 
between the J2 security classes and the underlying data model. The advantage 
of this approach is that you would not have to change any code. You would 
know you were successful when all the tests ran. Some tests may still fail. 
For example, you appear to have no many-to-many relationship between users 
and roles.  You will have to sort through relationships you are missing.  
Maybe the tests will still run. Perhaps you can still use the J2 table 
mappings where you have no equivalent.

2) Implement the following interfaces: GroupSecurityHandler, 
RoleSecurityHandler, UserSecurityHandler, CredentialHandler, and 
SecurityMappingHandler. You will note that the default implementations of 
these classes use a class called SecurityAccessImpl to do a lot of the 
actual JDBC work.  You may have to change SecurityAccessImpl as well.  This 
alternative seems pretty hard, close to the work involved in making LDAP 
implementations which I expect to take about a month given that you are 
already familiar with the underlying technology.

I have done a cursory mapping below:
- user (username, password, userid etc.)
security_principal - Contains the user. Your username field should be mapped 
to the full_path column.
security_credential - Contains the password. Password is the only type of 
credential in use as far as I can tell. Your current implementation stores 
the password on the user table. My ldap implementation does the same.

- groups (groupid, groupname)
security_principal - Contains the group, just mapped to a different class. 
Your groupname field should be mapped to the full_path column.

- role (roleid, rolename)
security_principal - Contains the role, just mapped to a different class. 
Your rolename field should be mapped to the full_path column.

- permission (permissionid, permissionname)
security_permission - Contains the security permissions. Your permissionname 
should map directly to the name column there.

- role_permission
Here you have a direct mapping the J2 security_principal_permission table. 
J2 puts role, group, and user in a single security_principal table.

- group_role
Here you have a direct mapping to the security_group_role table.
- user_group
This table is analogous to the J2 security_user_group table which contains 
two FKs: one to the security_principal row for the user and the other to the 
security_principal row for the group.


Now I am sure my DBA is going to yell on him if I ask him to change these 
tables !!! And David Sean Taylor advised that a good way of doing this 
would be to implement my own SPI provider. But then the mailing list 
advised me to see if it is feasible to adapt my tables ...

I am confused !! Help help !!!
I guess I can start the conversation back in the original database 
question thread because I guess it woudl be misguiding to have this 
discussion under this thread ...


Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 10:52:03 -0500
Shah Amit wrote:
I have my own portlet web application. Now it logically makes sense that 
to deploy this this applicaiton, I should just throw it under 
jetspeed/web-inf/deploy, and should be able to access my webapplication 
from the browser.

Till now I used to edit the default-page.psml in jetspeed/web-inf/pages 
directory and enter my portlet in there.

But suppose I want to have my own psml file. (I guess I should put it 
under my-webapp/web-inf/pages/myPage.psml ??) Now even if I do this, how 
should I access this page from the browser ? 
http://localhost:8080/jetspeed/myapp

Re: Access your own psml file

2005-02-09 Thread Shah Amit
Hi David,
Thanks for your answer. I tried that, but I still get the default-page.psml 
file.

Actually I can type anything after http://localhost:8789/jetspeed/portal/ 
and it still gives me the same jetspeed default page

Please help :(
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Access your own psml file
Date: Wed, 09 Feb 2005 09:37:49 -0800
Shah Amit wrote:
I have my own portlet web application. Now it logically makes sense that 
to deploy this this applicaiton, I should just throw it under 
jetspeed/web-inf/deploy, and should be able to access my webapplication 
from the browser.

Till now I used to edit the default-page.psml in jetspeed/web-inf/pages 
directory and enter my portlet in there.

But suppose I want to have my own psml file. (I guess I should put it under 
my-webapp/web-inf/pages/myPage.psml ??) Now even if I do this, how should 
I access this page from the browser ? 
http://localhost:8080/jetspeed/myapp/myPage.psml ??

http://localhost:8080/jetspeed/portal/myapp/myPage.psml
Also look at the _user directory, as it holds folders and pages specific to 
a user.


Also regarding decorators. I have read all the documentation on the website 
and I understand how it should be done. But again similar question. I 
should be able to put my decorators under my-webapp/web-inf/decorations 
etc. ??

Decorations can be packaged into a jar and dropped in the WEB-INF/deploy 
directory

My only concern is that I dont want to change anything in jetspeed. This 
way I can easily keep updating jetspeed with new releases. Otherwise I 
would have to put my changes in jetspeed everytime I upgrade my jetspeed.

I do exactly that on my projects here.
For development, I have maven goals to drop in decorators, PSML and portlet 
apps

With PSML, I have one PSML directory per project (I don't use the demo PSML 
directory from the Jetspeed cvs)

Please help/advise/comment 
Thanks,
Amit

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


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

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


Re: Database Related Question

2005-02-04 Thread Shah Amit
Hi Mike and David,
Thanks for your guidance.
I read a couple of tutorials on JAAS and I think I kindaa get the idea. I am 
now going thru all the SPI interfaces and trying to judge what I would be 
implementing and what not (probably leave 
MessageDigestCredentialPasswordEncoder alone).

I think I will have to implement the SecurityAccess.java interface and make 
it point to my DB instead of the jetspeed provided implementation ?? ... 
(Apart from couple of others that I might need)

I know its too much to ask, but if you have like a block diagram or some 
sort of diagram or something like that explaining how these interfaces 
interact, that would be really great.

Once again, appreciate your help
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Wed, 02 Feb 2005 13:07:04 -0800
mike long wrote:
I think David is saying that you should create implementations of the 
interfaces he references below. I am doing that to allow Jetspeed-2 to use 
an LDAP directory server instead of a relational database. My strategy has 
been to check out the Jetspeed-2 code from CVS and then write my own 
implementations of these classes and wire them in using the 
jetspeed-spring.xml, security.xml, and a couple other configuration files. 
A really good set of unit tests exists for the security components already 
that will tell you if your implementation of those interfaces is correct.   
You will have good assurance that your implementation is correct when all 
the component/security tests work.  The tests should run out of the box 
hooked up to your custom implementations.

Your work will be easier than mine since you are only mapping the 
Jetspeed-2 security tables to your own.   Since LDAP is not generally a 
transactional resource like a relational database, I am having difficulty 
because the existing suite of security tests is hardwired to use SQL 
persistence.  That said, the work for you is still considerable. I would 
suggest reading up on Maven, all the tutorials on JAAS, and then the Spring 
reference manual.  The later will show you how to wire the application 
together using your own security implementations.
I setup a new set of a maven project and basic skeletons for the services 
like this in a few minutes (but yes, I ve done it before).

Integration with the unit tests will take more time and thought.
But yes, if you are new to Spring and Maven and J2, its going to take more 
time. The lack of docs doesn't help:

http://portals.apache.org/jetspeed-2/spi.html
I still need to review your LDAP code. Sorry I haven't got to that yet.
--
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]

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


Re: Database Related Question

2005-02-04 Thread Shah Amit
Hi Mike,
I tried to evaluate that before, but I got confused with the Jetspeed 
security schema so thought of implementing my own SPI.

There are some concepts that I dont understand with the Jetspeed2 security 
schema. If you can spare some time and clear my doubts, that would really 
help me.

I dont understand the concept of full_path column on security_principal 
table. It looks like that column would logically fit to the user_name 
concept ?? ...

Honestly speaking, I would think that my security model is very generic 
simple model so if JAAS is generic enough, and Jetspeed implements JAAS, I 
should be simply able to map my model somehow to JAAS model.

If you think you can help me a little bit, here are the tables I have -
user (probably can be broken into security_principal and 
security_credentials tables)
permissions
roles
groups
role_permission
group_role
user_group

Another thing that slightly confuses me is that on jetspeed schema, user is 
linked to role, group as well as group and role have a cross-reference too.

Thanks,
Amit
Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Fri, 04 Feb 2005 13:27:08 -0500
Shah Amit wrote:
Hi Mike and David,
Thanks for your guidance.
I read a couple of tutorials on JAAS and I think I kindaa get the idea. I 
am now going thru all the SPI interfaces and trying to judge what I would 
be implementing and what not (probably leave 
MessageDigestCredentialPasswordEncoder alone).

I think I will have to implement the SecurityAccess.java interface and make 
it point to my DB instead of the jetspeed provided implementation ?? ... 
(Apart from couple of others that I might need)

I know its too much to ask, but if you have like a block diagram or some 
sort of diagram or something like that explaining how these interfaces 
interact, that would be really great.

Once again, appreciate your help
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Wed, 02 Feb 2005 13:07:04 -0800
mike long wrote:
I think David is saying that you should create implementations of the 
interfaces he references below. I am doing that to allow Jetspeed-2 to use 
an LDAP directory server instead of a relational database. My strategy has 
been to check out the Jetspeed-2 code from CVS and then write my own 
implementations of these classes and wire them in using the 
jetspeed-spring.xml, security.xml, and a couple other configuration files. 
A really good set of unit tests exists for the security components already 
that will tell you if your implementation of those interfaces is correct.  
 You will have good assurance that your implementation is correct when 
all the component/security tests work.  The tests should run out of the 
box hooked up to your custom implementations.

Your work will be easier than mine since you are only mapping the 
Jetspeed-2 security tables to your own.   Since LDAP is not generally a 
transactional resource like a relational database, I am having difficulty 
because the existing suite of security tests is hardwired to use SQL 
persistence.  That said, the work for you is still considerable. I would 
suggest reading up on Maven, all the tutorials on JAAS, and then the 
Spring reference manual.  The later will show you how to wire the 
application together using your own security implementations.

I setup a new set of a maven project and basic skeletons for the services 
like this in a few minutes (but yes, I ve done it before).

Integration with the unit tests will take more time and thought.
But yes, if you are new to Spring and Maven and J2, its going to take more 
time. The lack of docs doesn't help:

http://portals.apache.org/jetspeed-2/spi.html
I still need to review your LDAP code. Sorry I haven't got to that yet.
--
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]

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

Before you try implementing the interfaces you should rule out the 
possibility that you can re-map the existing schema to your tables. Have you 
done that?  Such would require no change to any Jetspeed code.

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

RE: Help with Jetspeed

2005-02-02 Thread Shah Amit
If you are just doing it from scratch, you might want to give a try to 
Jetspeed2. It follows the Java Portlet specs. I am not much familiar with 
Jetspeed1.x. Just started with Jetspeed2. You would need maven to build that 
though ...

Amit
Original Message Follows
From: lorenzo baylon [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: jetspeed-user@jakarta.apache.org
Subject: Help with Jetspeed
Date: Tue, 01 Feb 2005 19:59:07 -0500
hi there!!!
 my name is lhorenz, a neophyte in java programming and became so
 interested about your project Jetspeed.
 I tried to install it in my system by downloading the source files,
 and to create my own trial portlet, I've created an action and a
 velocity file. May I ask where to put these files (directory)
 together with the source files of Jetspeed so I can rebuild it and
 deploy later? how about the rebuilding process, I'm getting this
 error message  BUILD FAILED
 /home/angelbert/downloads/current/jetspeed-1.5/build.xml:24:
 Following error occured while executing this line
 java.io.FileNotFoundException:
 /home/angelbert/downloads/current/jetspeed-1.5/build/build.xml (No
 such file or directory)

 May I ask this help from you guys?

 Thanks in advance and more power!!!

 lhorenz
--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp?SRC=lycos10
-
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: Database Related Question

2005-02-02 Thread Shah Amit
Hi David,
Please pardon my stupid questions. I am pretty new with JAAS so ...
By what you suggested, you mean to say that I should have my own 
implementation for almost all the interfaces in 
org.apache.jetspeed.security.spi .. ?? and then change the 
jetspeed-spring.xml file to point to my own interfaces ...

Would that mean I would be changing the source of jetspeed and building 
again ?? If not, how can I get the classfiles that I woudl write on 
jetspeed's classpath 

Appreciate the help ...
Thanks,
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Tue, 01 Feb 2005 23:11:42 -0800
Shah Amit wrote:
Thanks for the reply.
Now I already have an existing schema where I have a users table with some 
users and I check logins against that table in my existing schema.

In that case, how should I configure my authentication mechanism ? Should I 
translate my current user and related tables to Jetspeed2 Security 
schema ?? Like, I just want to know what would be a good design ?? My 
feeling is I should translate my user and related tables to the jetspeed 
security model, but would like to get some feedback ...

I don't think that is necessary, although you could do that if its close. Or 
perhaps a view that combines the two...

A better solutoin may be to provide your own security handlers in the spring 
configuration. For ex, for credentials, user security, and roles, assemble 
your components something like:

  !-- Security SPI: CredentialHandler --
  bean id=org.apache.jetspeed.security.spi.CredentialHandler 
class=com.amit.portal.security.spi.impl.AmitCredentialHandler
  
  /bean

  !-- Security SPI: UserSecurityHandler --
  bean id=org.apache.jetspeed.security.spi.UserSecurityHandlerImpl   
class=com.amit.portal.security.spi.impl.AmitUserSecurityHandler
  
   constructor-arg ref 
bean=org.apache.jetspeed.security.spi.SecurityAccess//constructor-arg

  /bean
  !-- Security SPI: RoleSecurityHandler --
  bean id=org.apache.jetspeed.security.spi.RoleSecurityHandler
   class=com.amit.portal.security.spi.impl.AmitRoleSecurityHandler
  
   constructor-arg ref 
bean=org.apache.jetspeed.security.spi.SecurityAccess//constructor-arg
  /bean


Thanks for your helps ...
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Mon, 31 Jan 2005 12:17:16 -0800
Shah Amit wrote:
I have an existing database, and a website built on it. We are in a 
process of portalizing the website with Jetspeed2.

Now I downloaded jetspeed2 and the DB that it creates has quite a lot of 
tables (atleast 30 - 40). Out of all of these tables, I do understand that 
security_XXX tables would probably be used by the JAAS Security module of 
jetspeed. But apart from those, which are the tables that I would have to 
preserve on my production database for jetspeed to work ??

Like, I know that there are lot of sample applications shipped with 
Jetspeed2, and lot of those applications might need their own tables. But 
if I were to remove all the sample applications shipped with J2, and only 
have the minimal skeleton of J2, what are the tables that I need to 
preserve ??

Ive gone thru something similar here.
Minimized, its not that much smaller (see below)
summary:
phase 1 schema: need this for the capability map component which only runs 
against a relational database store

phase 2 schema: need the profiler schema
phase3 ojb: ojb internals
prefs schema: to handle preferences - required for proper operation using 
prefs

registry schema: all Portlet app and portlet info from portlet.xml stored 
here

security-schema: you could minimize this by removing SSO tables
or providing your own security components

# ---
# MEDIA_TYPE
# ---
drop table if exists MEDIA_TYPE;
CREATE TABLE MEDIA_TYPE
(
MEDIATYPE_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
CHARACTER_SET VARCHAR (40),
TITLE VARCHAR (80),
DESCRIPTION MEDIUMTEXT,
PRIMARY KEY(MEDIATYPE_ID)
);
# ---
# CLIENT
# ---
drop table if exists CLIENT;
CREATE TABLE CLIENT
(
CLIENT_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
USER_AGENT_PATTERN VARCHAR (128),
MANUFACTURER VARCHAR (80),
MODEL VARCHAR (80),
VERSION VARCHAR

Re: Database Related Question

2005-02-02 Thread Shah Amit
Thanks a lot for the quick reply. I get the idea.
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Wed, 02 Feb 2005 12:31:55 -0800
Shah Amit wrote:
Hi David,
Please pardon my stupid questions. I am pretty new with JAAS so ...
By what you suggested, you mean to say that I should have my own 
implementation for almost all the interfaces in 
org.apache.jetspeed.security.spi .. ?? and then change the 
jetspeed-spring.xml file to point to my own interfaces ...
Only implement what you need.
Would that mean I would be changing the source of jetspeed and building 
again ?? If not, how can I get the classfiles that I woudl write on 
jetspeed's classpath 

No.
1. create a maven project
2. add these deps to your project.xml:
  dependencies
 dependency
  idjetspeed2:jetspeed-api/id
  version2.0-M2-dev/version
  properties
war.bundlefalse/war.bundle
  /properties
/dependency
dependency
  idjetspeed-security/id
  groupIdjetspeed2/groupId
  version2.0-M2-dev/version
  properties
war.bundlefalse/war.bundle
  /properties
/dependency
  /dependencies
3. build a jar containing your classes
maven jar
4. make a maven goal to install your jar and spring config into J2, 
something like

  goal name=AmitsGoal
copy file=./src/webapp/WEB-INF/assembly/jetspeed-spring.xml
  todir=${TOMCAT_HOME}/webapps/jetspeed/WEB-INF/assembly/
copy file=./target/amit-security-1.0.jar
  todir=${TOMCAT_HOME}/webapps/jetspeed/WEB-INF/lib/
  /goal

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

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


Re: Database Related Question

2005-02-02 Thread Shah Amit
Hi Mike,
Thanks for your reply. I am pretty good with Maven and I feel pretty 
comfortable with the Spring Dependency Injection part (where we would define 
the bean constructors in XML file and let spring initialize the beans).

I will probably have to read a lot regarding JAAS. It seems to be slightly 
different than Apache Fulcrum model.

My security model has user, group, permission, role, permission_role, 
group_role, and user_group tables. I am having a little big tough time 
visualizing this with JAAS where there is subject and principal. (Probably 
there will be a 1-1 mapping between them in my JAAS model ... ??)

I will read all that I can get with JAAS.
Once again, thanks for all your help.
Amit
Original Message Follows
From: mike long [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Wed, 02 Feb 2005 15:44:31 -0500
I think David is saying that you should create implementations of the 
interfaces he references below. I am doing that to allow Jetspeed-2 to use 
an LDAP directory server instead of a relational database. My strategy has 
been to check out the Jetspeed-2 code from CVS and then write my own 
implementations of these classes and wire them in using the 
jetspeed-spring.xml, security.xml, and a couple other configuration files. A 
really good set of unit tests exists for the security components already 
that will tell you if your implementation of those interfaces is correct.   
You will have good assurance that your implementation is correct when all 
the component/security tests work.  The tests should run out of the box 
hooked up to your custom implementations.

Your work will be easier than mine since you are only mapping the Jetspeed-2 
security tables to your own.   Since LDAP is not generally a transactional 
resource like a relational database, I am having difficulty because the 
existing suite of security tests is hardwired to use SQL persistence.  That 
said, the work for you is still considerable. I would suggest reading up on 
Maven, all the tutorials on JAAS, and then the Spring reference manual.  The 
later will show you how to wire the application together using your own 
security implementations.

Regards,
Mike Long


Shah Amit wrote:
Hi David,
Please pardon my stupid questions. I am pretty new with JAAS so ...
By what you suggested, you mean to say that I should have my own 
implementation for almost all the interfaces in 
org.apache.jetspeed.security.spi .. ?? and then change the 
jetspeed-spring.xml file to point to my own interfaces ...

Would that mean I would be changing the source of jetspeed and building 
again ?? If not, how can I get the classfiles that I woudl write on 
jetspeed's classpath 

Appreciate the help ...
Thanks,
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Tue, 01 Feb 2005 23:11:42 -0800
Shah Amit wrote:
Thanks for the reply.
Now I already have an existing schema where I have a users table with some 
users and I check logins against that table in my existing schema.

In that case, how should I configure my authentication mechanism ? Should 
I translate my current user and related tables to Jetspeed2 Security 
schema ?? Like, I just want to know what would be a good design ?? My 
feeling is I should translate my user and related tables to the jetspeed 
security model, but would like to get some feedback ...

I don't think that is necessary, although you could do that if its close. 
Or perhaps a view that combines the two...

A better solutoin may be to provide your own security handlers in the 
spring configuration. For ex, for credentials, user security, and roles, 
assemble your components something like:

  !-- Security SPI: CredentialHandler --
  bean id=org.apache.jetspeed.security.spi.CredentialHandler 
class=com.amit.portal.security.spi.impl.AmitCredentialHandler
  
  /bean

  !-- Security SPI: UserSecurityHandler --
  bean id=org.apache.jetspeed.security.spi.UserSecurityHandlerImpl  
 class=com.amit.portal.security.spi.impl.AmitUserSecurityHandler
  
   constructor-arg ref 
bean=org.apache.jetspeed.security.spi.SecurityAccess//constructor-arg

  /bean
  !-- Security SPI: RoleSecurityHandler --
  bean id=org.apache.jetspeed.security.spi.RoleSecurityHandler
   class=com.amit.portal.security.spi.impl.AmitRoleSecurityHandler
  
   constructor-arg ref 
bean=org.apache.jetspeed.security.spi.SecurityAccess//constructor-arg

  /bean

Thanks for your helps ...
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question

Re: Database Related Question

2005-02-01 Thread Shah Amit
Thanks for the reply.
Now I already have an existing schema where I have a users table with some 
users and I check logins against that table in my existing schema.

In that case, how should I configure my authentication mechanism ? Should I 
translate my current user and related tables to Jetspeed2 Security 
schema ?? Like, I just want to know what would be a good design ?? My 
feeling is I should translate my user and related tables to the jetspeed 
security model, but would like to get some feedback ...

Thanks for your helps ...
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Database Related Question
Date: Mon, 31 Jan 2005 12:17:16 -0800
Shah Amit wrote:
I have an existing database, and a website built on it. We are in a process 
of portalizing the website with Jetspeed2.

Now I downloaded jetspeed2 and the DB that it creates has quite a lot of 
tables (atleast 30 - 40). Out of all of these tables, I do understand that 
security_XXX tables would probably be used by the JAAS Security module of 
jetspeed. But apart from those, which are the tables that I would have to 
preserve on my production database for jetspeed to work ??

Like, I know that there are lot of sample applications shipped with 
Jetspeed2, and lot of those applications might need their own tables. But 
if I were to remove all the sample applications shipped with J2, and only 
have the minimal skeleton of J2, what are the tables that I need to 
preserve ??

Ive gone thru something similar here.
Minimized, its not that much smaller (see below)
summary:
phase 1 schema: need this for the capability map component which only runs 
against a relational database store

phase 2 schema: need the profiler schema
phase3 ojb: ojb internals
prefs schema: to handle preferences - required for proper operation using 
prefs

registry schema: all Portlet app and portlet info from portlet.xml stored 
here

security-schema: you could minimize this by removing SSO tables
or providing your own security components

# ---
# MEDIA_TYPE
# ---
drop table if exists MEDIA_TYPE;
CREATE TABLE MEDIA_TYPE
(
MEDIATYPE_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
CHARACTER_SET VARCHAR (40),
TITLE VARCHAR (80),
DESCRIPTION MEDIUMTEXT,
PRIMARY KEY(MEDIATYPE_ID)
);
# ---
# CLIENT
# ---
drop table if exists CLIENT;
CREATE TABLE CLIENT
(
CLIENT_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
USER_AGENT_PATTERN VARCHAR (128),
MANUFACTURER VARCHAR (80),
MODEL VARCHAR (80),
VERSION VARCHAR (40),
PREFERRED_MIMETYPE_ID INTEGER NOT NULL,
PRIMARY KEY(CLIENT_ID)
);
# ---
# MIMETYPE
# ---
drop table if exists MIMETYPE;
CREATE TABLE MIMETYPE
(
MIMETYPE_ID INTEGER NOT NULL,
NAME VARCHAR (80) NOT NULL,
PRIMARY KEY(MIMETYPE_ID)
);
# ---
# CAPABILITY
# ---
drop table if exists CAPABILITY;
CREATE TABLE CAPABILITY
(
CAPABILITY_ID INTEGER NOT NULL,
CAPABILITY VARCHAR (80) NOT NULL,
PRIMARY KEY(CAPABILITY_ID)
);
# ---
# CLIENT_TO_CAPABILITY
# ---
drop table if exists CLIENT_TO_CAPABILITY;
CREATE TABLE CLIENT_TO_CAPABILITY
(
CLIENT_ID INTEGER NOT NULL,
CAPABILITY_ID INTEGER NOT NULL
);
# ---
# CLIENT_TO_MIMETYPE
# ---
drop table if exists CLIENT_TO_MIMETYPE;
CREATE TABLE CLIENT_TO_MIMETYPE
(
CLIENT_ID INTEGER NOT NULL,
MIMETYPE_ID INTEGER NOT NULL
);
# ---
# MEDIATYPE_TO_CAPABILITY
# ---
drop table if exists

Re: J2-SSO

2005-02-01 Thread Shah Amit
Thanks for your reply.
I just clicked the reply button to the email, without noticing that the 
reply-to is set to [EMAIL PROTECTED] I really didn't have any 
intentions to direct the question to any individual users at all. Appologize 
for that ... (Usually the reply-to address is set to jetspeed mailing list 
email address)

However I get a good idea from your answer. I am willing to create such 
migrator, and would be very excited if that could help the community !

I am reading more about the J2 Security stuff. If you want to give me some 
quick pointers where I should look, that could help ...

Thanks,
Amit
Original Message Follows
From: Roger Ruttimann [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Shah Amit [EMAIL PROTECTED],  Jetspeed Users List 
jetspeed-user@jakarta.apache.org
Subject: Re: J2-SSO
Date: Tue, 01 Feb 2005 14:23:37 -0800

Please post questions to the list so that people can learn from other 
peoples issues and solutions.

SSO is used to insert credentials for external applications into a request. 
If a user isn't authenticated (logged in) it doesn't have access to the SSO 
API.

For your scenario you have to migrate your user table into Jetspeed-2 
security tables. You could write a user synchronization portlet that reads 
your database and inserts new (no existing users) into jetspeed by calling 
into the security API. I think such a portlet would be of great benefit for 
the community since user migration is always an issue.

Roger
Shah Amit wrote:
Hi Roger and Amit,
Appreciate your helps ...
I have a pretty dumb question along the same lines. I only have one web 
application that I want to port to Jetspeed2. So I dont think SSO would 
make sense in such scenerio.

However, what do I need to do to authenticate?? ... I have my own user 
table with passwords that I am validating against. So do I need to 
translate that user table to the jetspeed security_xxx tables, or  ???

Would really appreciate any help ...
Thanks,
Amit
Original Message Follows
From: Roger Ruttimann [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: J2-SSO
Date: Tue, 01 Feb 2005 09:33:56 -0800
With J2-SSO you can map Jetspeed users to application credentials.
If you have login pages but you like to bypass the login by providing the 
credentials you can use the SSOWebContent portlet or subclass the portlet 
and define in our implementation  how the credentials should be passed to 
your login page.

The SSO Management portlet allows you to create sites (URL) to your login 
pages and assign remote credential for a J2 user or group. I found it handy 
to define a group, add users to it and then define remote credential for 
that group. Any user belonging to that group will obtain the remote 
credential from the SSO store.

I added some SSO documentation that can be found in design-docs/src/sso
Roger
Amit Soni wrote:
Hi all,
 I already have three java based web application ready and all of them
are using their own db. and all have their own user name and password
now i want to integrate all of these applications in J2 and want to
implement SSO within it. I mean all of these application have their own
login page but don't want that login page but when i logged in
jetspeed-2's login page it automatically logged in respective
application. So can it be possible in j2 SSO? and if so then what i have
to do for that .. so any one have idea about this then please help me..
Regards,
Amit Soni
--
Netcore Solutions Pvt. Ltd.
Website:  http://www.netcore.co.in
Spamtraps: http://cleanmail.netcore.co.in/directory.html
--
-
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]


Database Related Question

2005-01-31 Thread Shah Amit
I have an existing database, and a website built on it. We are in a process 
of portalizing the website with Jetspeed2.

Now I downloaded jetspeed2 and the DB that it creates has quite a lot of 
tables (atleast 30 - 40). Out of all of these tables, I do understand that 
security_XXX tables would probably be used by the JAAS Security module of 
jetspeed. But apart from those, which are the tables that I would have to 
preserve on my production database for jetspeed to work ??

Like, I know that there are lot of sample applications shipped with 
Jetspeed2, and lot of those applications might need their own tables. But if 
I were to remove all the sample applications shipped with J2, and only have 
the minimal skeleton of J2, what are the tables that I need to preserve ??

Any help would be very appreciated ...
Thanks,
Amit

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


How is J2 Performance ?

2005-01-21 Thread Shah Amit
Hi all,
Has anyone deployed a production grade application using Jetspeed2 ?? How is 
the performance, memory footprint, reliability etc. of J2 ??

Any opinions would be very appreciated !!!
Thanks,
Amit

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


Re: Can I use Hibernate with Jetspeed 2 ??

2005-01-18 Thread Shah Amit
I have written a very simple portlet that uses hibernate on the backend to 
connect to DB with c3p0 connection pool. The portlet is very very simple. 
Just has a submit button on the front and when you click that button, it 
selects all records from a table and System.out's the records on console 
(or catalina.out). (I am working on making it do more as I get time)

The table is the clubs table of the Database browser application that is 
shipped with jetspeed.

Also I have used the Thread Local Session pattern at a very simple level 
which is sugggested by hibernate.

I would like to share the portlet if anyone is interested. This way I can 
share the work and get more suggestions towards my approach.

Please let me know if anyone is interested. I dont know if I can simply mail 
the portlet in a zip file attachment on this mailing list under this thread.

Regards,
Amit
Original Message Follows
From: David Sean Taylor [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Can I use Hibernate with Jetspeed 2 ??
Date: Tue, 18 Jan 2005 13:06:18 -0800
Jonathan Hawkins wrote:
What is the issue with the licences.
see:
http://www.apache.org/licenses/GPL-compatibility.html
Again, you can use Jetspeed and Hibernate together in your projects.
No problem there.
We simply can't checkin code into the Apache repository that has imports 
from Hibernate.

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

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


RE: sample codes

2005-01-18 Thread Shah Amit
you can look into 
jakarta-jetspeed-2\applications\demo\src\java\org\apache\jetspeed\demo 
directory.

in applications directory they have many good example to start with.
Thanks
Amit
Original Message Follows
From: Han, Richard [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List (E-mail) jetspeed-user@jakarta.apache.org
Subject: sample codes
Date: Tue, 18 Jan 2005 14:12:34 -0700
Greeting,
I'm new to jetspeed, just wondering is there any sample codes (sample
project) that could =
get me started?
Thanks!

Richard Han
Developer - Solution Development
Bell
2100, 111 - 5th Avenue SW
Calgary, Alberta T2P 3Y6
Ph: (403) 410-4596
[EMAIL PROTECTED]

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


Can I use Jetspeed2 with Turbine ...

2005-01-18 Thread Shah Amit
Also I am kindaa in an evaluation stage of Portal and what framework to use. 
If someone can give me some comparisions, I would really appreciate.

I know that Jetspeed 2 is  based on Spring Framework. Is it easy to use 
Spring Framework as the framework for my portlets with Jetspeed ?? Also some 
of my concerns with using Spring would be how easily are developers with 
expertise in Spring Framework available in market ??

I have worked quite a lot with Turbine Framework and Velocity and I know 
those pretty well, but I dont know if Jetspeed 2 supports Turbine :(

Any helps, opinions very appreciated !!!
Regards,
Amit

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


Re: Re:How to get Session in portlet

2005-01-17 Thread Shah Amit
I think it is as follows. I dont think you can use forward, or redirect.
   PortletContext context = getPortletContext();
   PortletRequestDispatcher rd = 
context.getRequestDispatcher(whatEverPage);
   rd.include(request, response);

.include transfers control to that page.
This is what the portlet specs say.  If you want, this is sample code I 
picked from --

/jetspeed2/portals-bridges/common/src/java/org/apache/portals/bridges/common/GenericServletPortlet.java
Cheers,
Amit
(Its nice !! Amit replies Amit isn't it ;)  )
Original Message Follows
From: Amit Soni [EMAIL PROTECTED]
Reply-To: Jetspeed Users List jetspeed-user@jakarta.apache.org
To: Jetspeed Users List jetspeed-user@jakarta.apache.org
Subject: Re: Re:How to get Session in portlet
Date: Mon, 17 Jan 2005 19:32:41 +0530
hi,
when i try like this ::
request.getRequestDispatcher(response.encodeRedirectURL(sendUrl)).forward( 
request, response );

then it gives error like this
The requested resource (/netcore/http:/ipaddress:port/jetspeed/portal)
is not available.
Regards,
Amit
On Mon, 2005-01-17 at 19:03, angeloimm wrote:
 Hello... according to me you cann't use 
response.sendRedirect(response.encodeRedirectURL(sendUrl));


 try by using:
 request.getRequestDispatcher( response.encodeRedirectURL(sendUrl) 
).forward( req, resp );
 -- Initial Header ---

 From  : Amit Soni [EMAIL PROTECTED]
 To  : Jetspeed Users List jetspeed-user@jakarta.apache.org
 Cc  :
 Date  : Mon, 17 Jan 2005 18:54:26 +0530
 Subject : Re: Re:How to get Session in portlet

  Hi,
 
  Thanks for u r interest...
 
  Here i have made my login page in another context say xyz...
 
  not in xyz context i have one page the content is like ::
 
  test.jsp ::
 
 
  String sendUrl =
  
http://ipaddress:port/jetspeed/portal?action=JLoginUserusername=namepassword=password;
 
 
  session.setAttribute(data,object);
 
 
  response.sendRedirect(response.encodeRedirectURL(sendUrl));
 
  so by this command it sends the page to jetspeed and directly login in
  the jetspeed page.  Now in this page one pane is there for that i have
  written one class in which i want that session which i have set in
  test.jsp page..
  so if u have any idea then pls help me
 
  Thanks and Regards,
  Amit Soni
 
  On Mon, 2005-01-17 at 17:56, angeloimm wrote:
   Hello; in the method public ConcreteElement getContent(RunData 
runData) you can use runData in order to have Session:
  
   HttpSession session = runData.getRequest().getSession();
  
   it works fine for me i hope the same for you :-))
   regards
  
   -- Initial Header ---
  
   From  : Amit Soni [EMAIL PROTECTED]
   To  : Jetspeed Jetspeed jetspeed-user@jakarta.apache.org
   Cc  :
   Date  : Mon, 17 Jan 2005 17:42:14 +0530
   Subject : How to get Session in portlet
  
Hi all,
   
Here i have made my own login then using this login page i get 
logged in
jetspeed. In this login page i have set one session and want to 
access
this session in each portlet of jetspeed
   
now i after login i have few panes in which i have IFramePortlet 
for
that i have written class...
   
On click on each i frame portlet it calls one class for which its 
parent
is of IFramePortlet. The xreg file for this portlet si like ::
   
   
   
?xml version=1.0 encoding=UTF-8?
registry
portlet-entry name=EventsHorizon hidden=false type=ref
		   parent=IFramePortlet application=false
meta-info
titleEvents Horizon Portlet from the class /title
descriptionEvents Horizon Portlet/description
image/image
/meta-info
classnamecom.netcore.actions.EHIFramePortlet/classname
parameter name=_showtitlebar value=true hidden=false
			cachedOnName=true cachedOnValue=true
meta-info/
/parameter
parameter name=height value=500 hidden=false
			cachedOnName=true cachedOnValue=true
meta-info/
/parameter
parameter name=width value=100% hidden=false
			cachedOnName=true cachedOnValue=true
meta-info/
/parameter
parameter name=frameborder value=0 hidden=false
			cachedOnName=true cachedOnValue=true
meta-info/
/parameter
parameter name=EHPath value= hidden=false
			cachedOnName=true cachedOnValue=true
meta-info/
/parameter
media-type ref=html/
url cachedOnURL=true/
category group=JetspeedEH/category
/portlet-entry
/registry
   
   
and the class com.netcore.actions.EHIFramePortlet ::
   
public class HipergateIFramePortlet extends AbstractInstancePortlet
   
has method :: public ConcreteElement getContent(RunData runData)
   
so i want to access this session if this class so if 

J2 JAAS

2005-01-17 Thread Shah Amit
Hi All,
I am trying to use JAAS provided by J2. Is there any documentation on how to 
use that ? I tried reading all the test examples they have and read all the 
code for security.

here is my problem, when I follow JAAS client-side specification and try to 
use J2's JAAS. I get NULLPointer exception. this is because i dont 
instantiate userManager. Do i need to initialize this ? Is any one has 
example how to authenticate username and password with J2 JAAS.

Thanks in advance,
Amit

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


Can I use Hibernate with Jetspeed 2 ??

2005-01-16 Thread Shah Amit
Hi all,
I tried to look up on google, but only found an article dated back in May 
that J2 will soon have Hibernate support.

I would like to know if I can use Hibernate with J2. I dont know the best 
way to architect this, but if J2 doeesnot provide any inbuilt support and I 
have to write everything in my application, I guess that is fine too.

I downloaded the code from CVS on 17th Jan. and there was a DB Browser 
application in that, but that doesnot work, and it probably looks like it is 
still not finished, and also it doesnot user Hibernate I think.

Please advise !!!
Thanks,
Amit

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