Re: Velocity JSP Generation

2005-02-24 Thread Rana Asif Rubbani
I totally agree with Florin Vancea about it. Taming struts with 
torque/hibernate can be marvelous. Struts++ ;)

Asif
- Original Message - 
From: Florin Vancea [EMAIL PROTECTED]
To: Velocity Users List velocity-user@jakarta.apache.org; Shinobu 
Kawai [EMAIL PROTECTED]
Sent: Thursday, February 24, 2005 12:23 PM
Subject: Re: Velocity JSP Generation


- Original Message - 
From: Shinobu Kawai [EMAIL PROTECTED]
To: Velocity Users List velocity-user@jakarta.apache.org
Sent: Thursday, February 24, 2005 8:41 AM
Subject: Re: Velocity JSP Generation


snip
I wonder if anybody uses Velocity to create Velocity templates.  I
might need to add vtl to the EscapeTool.  (half joking, half...)

snip
Well, I was kind of thinking about this right before I saw your message.
(only half seriously...)
But really, what if (only what if) one would provide the Struts validator
and config files (which are info-rich-enough), along with the *.properties
containing messages, and at the startup of the WAR (or even at build time)
Velocity would generate a set of Velocity templates for all required pages
(maybe even Action classes).
Yes, it's not something one can whip up before coffee break, but it may be
interesting as it would produce
Instant Applications - just add CPU/database and enjoy a nice hot cup of
Velocity Java
:)
Florin

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Velocity JSP Generation

2005-02-23 Thread Rana Asif Rubbani
Hi

Is there any tool/framework available that you just give it the database schema 
and it creates the jsp pages for you. Like GUIs for add/edit/delete cases and a 
controller page where all pages will be submitted. Is there any such jsp code 
generator available. 

Regards
Rana Asif Rubbani

Re: Velocity JSP Generation PROPOSED PROJECT

2005-02-23 Thread Rana Asif Rubbani
HI
Torque/Hibernate are persistence layers. You give them database schema in 
XML and get Data Objects and SQL scripts etc.

Actually I am thinking to create a framework that you just give your db 
schema in XML form like you do for torque/hibernate and it will create the 
data objects using toque/hibernate, generating JSP source code, linking of 
torque/hibernate objects with appropriate JSP page.

E.g. In database you have a table AUTHOR. Now you want to 
insert/update/delete authors. The framework will create a page to add 
authors[The code generator can customize the pages to any theme provided], 
one page for update of authors and one page for deletion of authors and the 
like. i.e. you can customize the page generation e.g. create only add page 
and update page, don't create delete page. The framework will take the input 
of fields for each database field. i.e. against this field you want a 
textfield or radio or combo etc. the framework will provide necessary 
scripting also. e.g. a database field of Number datatype can have a display 
text field that only accepts numbers[generated script will do it].

Now the framework will bind the created JSP/VM page with torque/hibernate 
Objects itself and also produce a ctrl page where add/update pages will be 
posted in order to perform the action.

In short, using the existing projects like velocity, torque, jsp, hibernate 
etc, i just wanted to build a project which is capable of providing 
integrated model, view controller layers of such projects by just a button 
click .

All of this is just a thought. I just wanted to confirm from velocity 
community that is there any the like open source thing already exists?
Also will velocity serve the purpose as far as code generation is concerned.

Please comment and suggest. I'm excited about this project.
Regards
Rana Asif Rubbani
- Original Message - 
From: Shinobu Kawai [EMAIL PROTECTED]
To: Velocity Users List velocity-user@jakarta.apache.org
Sent: Thursday, February 24, 2005 11:41 AM
Subject: Re: Velocity JSP Generation


Hi Rana,
Is there any tool/framework available that you just give it the database 
schema and it creates the jsp pages for you. Like GUIs for 
add/edit/delete cases and a controller page where all pages will be 
submitted. Is there any such jsp code generator available.
I'm not aware of such tools, but the torque project might give you a
clue on how to do it.
http://db.apache.org/torque/
#*
First time I've ever heard of creating JSP with Velocity.  :)
I wonder if anybody uses Velocity to create Velocity templates.  I
might need to add vtl to the EscapeTool.  (half joking, half...)
*#
Best regards,
-- Shinobu
--
Shinobu Kawai [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]