Hi Pedro,
 
I had a similar problem to the one you are facing. I wanted to generate a JSP page statically, and as a previous poster mentioned, you cannot do this without connecting to the webserver via HTTP. As an alternative to using XSL/XML, you could also use Velocity, http://jakarta.apache.org/velocity/ which allows for static page generation and variable substitution, etc. Also I was left with a nice user friendly template that could still be edited in a HTML editor.
 
Cheers,
Dave
   
-----Original Message-----
From: Pedro E. G�mez [mailto:[EMAIL PROTECTED]]
Sent: Saturday, 12 May 2001 8:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [JBoss-user] How to execute a JSP in a EJB

Sorry for the confution.

The idea is other, is something like this:

The data base have some products information, and i want to send this information to an user, the goal is to format the data using an JSP template, and produce a HTML page and send it by email....

Something like this:

EJB COMPONENT ---> Get data form the DB.
  |
  |----------------------------> Get the JSP template (Page)
  |
  |-----------------------------> Execute the template with the data
  |
  |-----------------------------> Send the result by email.

I want to send a beatifull EMAIL to the user....

There is not a servlet involved, becouse of is a proccess that is 100% executed in the EJB container. The mails has to be send in batch proccess.

I will have a proccess that every night sends the emails to the users.

I will appreciate a lot your help.

Thansk.




Message sent with MISIVA.
Visit us at http://www.pragma.com.co/misiva
_______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to