You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Adam Sherman <ad...@tritus.ca> on 2001/10/01 22:28:22 UTC
TDK Build from HEAD
Does anyone have/know where to get a current TDK? (Maybe HEAD) I need features not
present in 2.1.
Thanks!
A.
--
Adam Sherman
President & Technology Architect
Tritus Consultant Group Inc.
+1.613.255.5164
http://www.tritus.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
FileItem (write method) Error - Turbine Version 2.1
Posted by Ling Kok Choon <ko...@yahoo.com>.
Hi All,
I use turbine version 2.1 to build a web
application, and use FileItem class for file upload. I
found a error / bug when using the method write(
String path ).
When i code like:
FileItem fi =
data.getParameters().getFileItem("file1");
.....
.....
fi.write("C:\download");
It work !
When i code like:
FileItem fi =
data.getParameters().getFileItem("file1");
.....
.....
String path = "C:\download"
fi.write(path);
It also work !
but when the code is like :
FileItem fi =
data.getParameters().getFileItem("file1");
.....
.....
String path = "C:\downloed"
fi.write( path.replace('e','a'));
Turbine will copy the file to the location
C:\download but size = 0.
is it a bug ?
regards,
Kok Choon.
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: User, Group, Role mapping slow performance ?
Posted by John McNally <jm...@collab.net>.
It does not appear the template was written with that high a number of
groups in mind. I think an ui that allows the user to narrow down (type
in a group name) and edit them individually would be more appropriate in
such a case.
Please submit a patch to the ACL code, if you find a better method. And
if you come up with a better ui for large group numbers and it can be
plugged into flux easily, submit that as well.
thanks,
john mcnally
Ling Kok Choon wrote:
>
> Hi ,
>
> I am a new user in Turbine, I have installed
> turbine version 2.1 in my server Windows 2000 with
> Apache web server and tomcat servlet container. From
> the example application, the code to map a user to a
> group with a role is :
>
> #foreach ($group in $flux.Groups)
> <tr>
> <td bgcolor="$ui.labelColor">
> <font face="$ui.sansSerifFonts">
> <b>$group.Name</b>
> </font>
> </td>
>
> #foreach ($role in $flux.Roles)
> #if ($acl.hasRole($role, $group))
> #set ($checked = "checked")
> #else
> #set ($checked = "")
> #end
>
> <td align="center" bgcolor="$ui.dataColor">
> <input type="checkbox" name="${group.Name}
> ${role.Name}" $checked>
> <input type="hidden" name="username"
> value="$flux.User.UserName">
> </td>
> #end
> </tr>
> #end
>
> from the code above, we have 2 loops, the first loop
> get all the groups and the inner loop get all the
> role, and then use turbine api hasRole to check
> whether a user have role in a group.
>
> I extend the application by add 400 plus groups and 10
> roles, and i found that the system performance
> drop....
> because total loop is 400 x 10 = 4000. Besides it, i
> found the turbine api TurbineSecurity.getACL ( User )
> also will become slow when the groups and roles data
> growing.
>
> Note: Please correct me if any information above is
> wrong or incorrect.
>
> Thank you.
>
> regards,
>
> Kok Choon
>
> __________________________________________________
> Do You Yahoo!?
> Listen to your Yahoo! Mail messages from any phone.
> http://phone.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
User, Group, Role mapping slow performance ?
Posted by Ling Kok Choon <ko...@yahoo.com>.
Hi ,
I am a new user in Turbine, I have installed
turbine version 2.1 in my server Windows 2000 with
Apache web server and tomcat servlet container. From
the example application, the code to map a user to a
group with a role is :
#foreach ($group in $flux.Groups)
<tr>
<td bgcolor="$ui.labelColor">
<font face="$ui.sansSerifFonts">
<b>$group.Name</b>
</font>
</td>
#foreach ($role in $flux.Roles)
#if ($acl.hasRole($role, $group))
#set ($checked = "checked")
#else
#set ($checked = "")
#end
<td align="center" bgcolor="$ui.dataColor">
<input type="checkbox" name="${group.Name}
${role.Name}" $checked>
<input type="hidden" name="username"
value="$flux.User.UserName">
</td>
#end
</tr>
#end
from the code above, we have 2 loops, the first loop
get all the groups and the inner loop get all the
role, and then use turbine api hasRole to check
whether a user have role in a group.
I extend the application by add 400 plus groups and 10
roles, and i found that the system performance
drop....
because total loop is 400 x 10 = 4000. Besides it, i
found the turbine api TurbineSecurity.getACL ( User )
also will become slow when the groups and roles data
growing.
Note: Please correct me if any information above is
wrong or incorrect.
Thank you.
regards,
Kok Choon
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: TDK Build from HEAD
Posted by Adam Sherman <ad...@tritus.ca>.
On Mon, Oct 01, 2001 at 04:31:52PM -0400, Jason van Zyl wrote:
> On 10/1/01 4:28 PM, "Adam Sherman" <ad...@tritus.ca> wrote:
>
> > Does anyone have/know where to get a current TDK? (Maybe HEAD) I need features
> > not
> > present in 2.1.
>
> the tdk is not meant to be built by users.
I figured! My problem is that the postgresql support in my copy of the
TDK (2.1) seems to lack most datatypes. I need to build an app using
PG & Large Objects, thus I need the latest Torque build. I don't think
I can just insert it into my TDK tree either...
Thanks,
A.
--
Adam Sherman
President & Technology Architect
Tritus Consultant Group Inc.
+1.613.255.5164
http://www.tritus.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org
Re: TDK Build from HEAD
Posted by Jason van Zyl <jv...@apache.org>.
On 10/1/01 4:28 PM, "Adam Sherman" <ad...@tritus.ca> wrote:
> Does anyone have/know where to get a current TDK? (Maybe HEAD) I need features
> not
> present in 2.1.
the tdk is not meant to be built by users.
> Thanks!
>
> A.
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org