db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From raphael.x.man...@gsk.com
Subject Re: Torque and jsp
Date Tue, 15 Mar 2005 13:29:19 GMT
I use Eclipse with Struts/Tiles  for managing the jsp.

I do not make any Torque references whatsoever in the jsp files. I ensure
that the Struts Action classes pre-load all objects that I am going to need
and put them into beans, either in the request of the session scope. This
helps to keep the DB management decoupled from the display management.

OTOH there is no absolute reason not to make Torque references from jsp.
You will simply have to define new beans in the jsp to hold the DB entities
that you have fetched. Provided that you have at least one DB object
preloaded into a bean, the jsp layer need know nothing about Torque; it
merely follows links around. Personally, I don't like this. I prefer to
keep the jsp as pure presentation, with no logic.

|         |           "salwa idrissi"  |
|         |           <idrissi82@yahoo.|
|         |           fr>              |
|         |                            |
|         |                            |
|         |           15-Mar-2005 12:23|
|         |           Please respond to|
|         |           "Apache Torque   |
|         |           Users List"      |
|         |           <torque-user@db.a|
|         |           pache.org>       |
|         |                            |
  |       To:      "Apache Torque Users List" <torque-user@db.apache.org>          
  |       cc:                                                                            
  |       Subject: Torque and jsp                                                        


I have a problem when i associated torque with jsp.In fact,I use the IDE
jdevelopper .torque only works very good but when i add in the scope
technologies"jsp",the code in the jsp doesn't reconize the
"torque.properties".it seems a problem of directories,but i don't know  how
to manage to link torque and jsp in jdevelopper.if you have a tutorial
about this,help me.


 Découvrez nos promotions exclusives "destination de la Tunisie, du Maroc,
des Baléares et la Rép. Dominicaine sur Yahoo! Voyages.

To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message