Question about Servlet invoking JSP page directly...

2000-05-10 Thread Jason L. Goris

Hello,

I just joined this JSP list today.  Nice to be on board.  ;-)

I have a question about leveraging our existing servlets while introducing JSP 
technology into our product.  We have an application that contains a servlet which 
handles client browser requests and communicates with several EJBs deployed in our 
application server (Weblogic).  For the pages, we designed our own tagging syntax (1-2 
yrs ago) and want to convert this customized stuff to JSP.

The normal behavior of our user requests/page submissions is as follows:

(1) User submits a page request to the web server which, in turn, sends the request to 
the servlet.  The request contains some information submitted from the current web page
(2) The Servlet utilizes this information and contacts the proper back-end EJBs as 
necessary.
(3) The Servlet retrieves a result data set (and the resulting page id for the user) 
from the app server and merges the dynamic data into the resulting HTML page template.
(4) User receives the new result page with populated data.

Pretty straightforward stuff, I imagine, based on the web app examples I've seen.

Anyway, I would like to keep the application flow similar to what is explained above, 
except that I wish to replace our current proprietary tagging syntax with JSP to 
conform to current Java standards and also to provide more flexibility within the 
pages themselves.

What I would like to do is continue to contact the main servlet described above, but 
when the resulting data set comes back from the server, instead of using that data to 
replace custom tags, I would like to put this data into an object (JavaBean?) and pass 
it off to the appropriate JSP page.

Do examples exist that show me how to do this?  It seems like all the examples I see 
are not of this variety of behavior, although I've read about this form of servlet-JSP 
use in the white papers.

JavaSoft's words exactly for this are as follows:

...the Web-based client may make a request directly to a Java Servlet, which actually 
generates the dynamic content, wraps the results into a result bean and invokes the 
JSP page. The JSP page accesses the dynamic content from the bean and sends the 
results (as HTML) to the browser.

Thanks!

Jason

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Invoking JSP page translation

2000-01-22 Thread Pafsanias Ftakas

I would like to invoke the Java translation of a JSP page. I have the
JSWDK-1.0 and from the jspengine.jar file, it would seem that the entry
point to the code I am seeking is in the com.sun.jsp.compiler package.
Could
someone please point me to the class and method that I need to call in
order to translate and compile a JSP page?

Thank you in advance.

Pafsanias
--
Mr. Pafsanias Ftakas voice: (650) 323-9760
Atypon Systems   fax:   (650) 323-9761
220 California Avenue, suite 100 efax:  (650) 761-5213
Palo Alto, CA 94306  pcs:   (650) 906-7516
http://www.atypon.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



invoking JSP 's

1999-09-18 Thread naveen

hi everyone,

Iam new to JSP's.
I have the JavaServer(tm) Web Development Kit 1.0  installed on my m/c.
(i have java 1.2 sdk installed).
The server is invoked correctly but the examples of .jsp's are'nt working.
The servlet examples though  are working properly without me making any
changes to the settings.
Can anyone tell me what the problem might be ?
I am not having a net connection at my terminal,so could'nt try out much on
my own.
awaiting ur replies...
thanks.
naveen

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Invoking JSP

1999-06-16 Thread Anonymous



I want to invoke particular servlet/jsp when clicked on some 
http ref. in current jsp , where I also want to pass some data-structures to it. 

Is it possible ?