Hi, I hope this question doesnt botter anyone, its a friday one.
I'm using Struts 1.2 and I want to make a simple contracts system. The
user will be able to capture a bounce of fields in order to store it to
a database, then a HTML page is going to be generated showing a
contract. This contract is a set of paragraphs and some variable text
(the employee's data). My actual aproach is to make an action to manage
the CRUD operations for a contract and a DAO for communication with the
database. There's another action to manage generation of contracts (in
HTML) named GenerateAction, this action will get the data from the
database in a DTO then put it in the session scope and forward to a JSP,
this JSP would contain the text of the contract and <bean:write> tags in
order to display variable data but I was thinking if I could move the
contract's text to the database and make it varibale but I have a few
questions:
1.- Is a good practice to save HTML code in the database?
2.- How I will know where to put the <bean:write> tags in the document?
3.- And how to inject variable fields into the contract.
4.- Am I missing something in Struts that could help me in order to
achieve this?
Best regards.
--
Ing. Joel Alejandro Espinosa Carra
Centro de TecnologĂa de Semiconductores
CINVESTAV Unidad Guadalajara
Tel. +52 (33) 3770-3700 ext. 1049
http://www.gdl.cinvestav.mx
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]