[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
[Home]
Accessing servlets object from jsp
Hi,
Vincent Partington wrote:
> Not part of the GNUJSP (although it used to be) is a mail bean I wrote.
> One day, I want to release that bean (and a number of other useful
> classes), but until then you can view the source code at:
> http://www.gjt.org/cgi-bin/cvswebgjt/cvswebgjt.cgi/java/org/gjt/vinny/beans/MailBean.java
Thanx, this part is for me now clear.
but this part of JSP Specification 0.91 no :-(
-A request comes in to a servlet
-Another way to achieve the same effect is shown in the JavaServer Pages
-request model below. The client makes a request that is handled by a Java
-servlet. The servlet then generates the content that will be displayed
-in the HTML page. In this example, the servlet uses JDBC to communicate
-with a database in order to obtain the content.
In my application a Im doing it this way. Servlets generates from some
pseudotemplates HTML code. Now I will servlet generation of jsp
and processing by jspServlet
-The resulting content is then wrapped into a bean which is passed to a
-JavaServer Pages file.
-The JavaServer Pages file uses the content generated by the servlet
-and presents it in HTML.
This I cannot uderstand. From my servlet i create an object, initialize,
make db query and store some data. How can I access this one object from jsp
page? Then can I print stored data to a page.
Summary:
How can I form jsp page acces object created by servlet?
martin
--
Martin Krivosik
VUJE Trnava a.s.
(Nuclear Power Plants Research Institute Trnava Inc.)
(The division of information technologies)
Okruzna 5, 918 64 Trnava
Slovakia