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" | | | <[EMAIL PROTECTED]| | | fr> | | | | | | | | | 15-Mar-2005 12:23| | | Please respond to| | | "Apache Torque | | | Users List" | | | <[EMAIL PROTECTED]| | | pache.org> | | | | |---------+----------------------------> >-------------------------------------------------------------------------------------------------------------------------| | | | | | | | To: "Apache Torque Users List" <torque-user@db.apache.org> | | | | cc: | | Subject: Torque and jsp | >-------------------------------------------------------------------------------------------------------------------------| hi, 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. thanks. --------------------------------- 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]