You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by michael shek sia lim <mi...@eigentechnology.com> on 2002/11/23 06:14:12 UTC
flux files ...
Hi Turbine users,
I am newbie, hence the excuse for all beginner's questions.
Here is my first (TDK version of turbine):
"Under the directory "templates" we have two subdir "app" and "flux". My
question is, what are the files under "flux/layouts" and
"flux/navigations" are for? they don't seem to be used at all? It seems
that the localhost:8080/myapp/servlet/myapp is taking Default.vm,
DefaultTop/Menu/Bottom.vm from "app".
Anyone can solve my puzzlment?
cheers
michael
[root@linux flux]# tree
.
|-- GlobalMacros.vm
|-- layouts
| `-- FluxDefault.vm
|-- navigations
| |-- FluxBottom.vm
| |-- FluxMenu.vm
| `-- FluxTop.vm
`-- screens
|-- FluxEmbeddedMenu.vm
|-- FluxError.vm
|-- FluxIndex.vm
|-- FluxLogin.vm
|-- group
| |-- FluxGroupAlreadyExists.vm
| |-- FluxGroupForm.vm
| `-- FluxGroupList.vm
|-- permission
| |-- FluxPermissionAlreadyExists.vm
| |-- FluxPermissionForm.vm
| `-- FluxPermissionList.vm
|-- role
| |-- FluxRoleAlreadyExists.vm
| |-- FluxRoleForm.vm
| |-- FluxRoleList.vm
| `-- FluxRolePermissionForm.vm
`-- user
|-- FluxMissingRequiredInputs.vm
|-- FluxUserAlreadyExists.vm
|-- FluxUserForm.vm
|-- FluxUserList.vm
`-- FluxUserRoleForm.vm
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: AW: database
Posted by michael shek sia lim <mi...@eigentechnology.com>.
Thanks Marc,
will try to read up on that.
cheers
michael
> Hi Michael,
> if you want to use Torque to access your business-objects/tables then
> you use the Peer-pairs that you either create yourself or let them
> created by Torque.
> You should definately read the Peers-Howto and the Torque-section of the
> Turbine web-site. You will learn how to build an SQL-statement by using
> the Criteria-class.
> And you are still free to query your DB using explicit SQL-statements.
>
> Good luck!
> Marc
>
>
>> -----Ursprüngliche Nachricht-----
>> Von: michael shek sia lim [mailto:michael@eigentechnology.com]
>> Gesendet: Sonntag, 24. November 2002 13:11
>> An: turbine-user@jakarta.apache.org
>> Betreff: database
>>
>>
>> I would appreciate if anyone could tell me how TDK connects to a
>> database. I could not see the following lines anywhere in the .java
>> files:
>>
>> Class.forName(driverName).newInstance();
>> con = DriverManager.getConnection(URL, props);
>> stmt = con.createStatement();
>> rs = stmt.executeQuery(query);
>>
>> perhaps I did not look at the right place.
>>
>> cheers
>> michael
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <ma...@jakarta.apache.org>
>> For additional commands, e-mail:
>> <ma...@jakarta.apache.org>
>>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org> For additional
> commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
AW: database
Posted by Marc Lustig <ma...@marclustig.com>.
Hi Michael,
if you want to use Torque to access your business-objects/tables then you
use the Peer-pairs that you either create yourself or let them created by
Torque.
You should definately read the Peers-Howto and the Torque-section of the
Turbine web-site. You will learn how to build an SQL-statement by using the
Criteria-class.
And you are still free to query your DB using explicit SQL-statements.
Good luck!
Marc
> -----Ursprüngliche Nachricht-----
> Von: michael shek sia lim [mailto:michael@eigentechnology.com]
> Gesendet: Sonntag, 24. November 2002 13:11
> An: turbine-user@jakarta.apache.org
> Betreff: database
>
>
> I would appreciate if anyone could tell me how TDK connects to a database.
> I could not see the following lines anywhere in the .java files:
>
> Class.forName(driverName).newInstance();
> con = DriverManager.getConnection(URL, props);
> stmt = con.createStatement();
> rs = stmt.executeQuery(query);
>
> perhaps I did not look at the right place.
>
> cheers
> michael
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
database
Posted by michael shek sia lim <mi...@eigentechnology.com>.
I would appreciate if anyone could tell me how TDK connects to a database.
I could not see the following lines anywhere in the .java files:
Class.forName(driverName).newInstance();
con = DriverManager.getConnection(URL, props);
stmt = con.createStatement();
rs = stmt.executeQuery(query);
perhaps I did not look at the right place.
cheers
michael
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>