aspose file tools
The moose likes BEA/Weblogic and the fly likes WebLogic Novice - 5.1 Issue possibly Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "WebLogic Novice - 5.1 Issue possibly" Watch "WebLogic Novice - 5.1 Issue possibly" New topic
Author

WebLogic Novice - 5.1 Issue possibly

Andy Brookfield
Greenhorn

Joined: Sep 26, 2001
Posts: 10
Coming from an ASP and ColdFusion background, I know that there are "pages" that get executed for every http request made of the app-server... ASP=Global.asa, CF=Application.cfm & OnRequestEnd.cfm... The question: Is there a similar "page" available from the WebLogic server (remembering that obviously there is pre-processing being done as it has to know if the JSP page is pre-compiled, and if not... do the compile before serving the page)... can I get access to this "pre-processing" page and extend it or add to it somehow?
George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
Even after your explanation of "pre-processing" pages I'm not too sure what you mean. I don't see why you would need these kind of pages when your servlets and JSPs are dynamic anyway.
Have you looked at the properties file (in 5.1) or the xml files (in 6.0, 6.1) which exist to set the particular web app or server properties.
If you really wanted to you could build a dynamic pre-processing system into your web-app, but as I said before, I don't really see the need to.
Andy Brookfield
Greenhorn

Joined: Sep 26, 2001
Posts: 10
George,
Lets assume that I'm a "novice" programmer and that I really need to include 5 "pre-processing" pages at the top of every single jsp in an application (Color defs, Database connections, whatever), I would prefer to write the code once (and not really have to physically include it on every single page)... knowing that the code was being implicitly included would be as good if not better than physically having the <%@ yah-de-yah %> at the top of every single page in the app...
The only version of WebLogic I have at my disposal is 5.1 therefore some of the newer tricks from 6.x are not available to me. Does this explanation make it any easier to understand what I'm trying to accomplish? Of course I can <%@ yah-de-yah %> at the top of every page BUT if I forget it just once something will most certainly break and it could be days before said page gets requested... therefore if it could be done implicitly it would be a much better scenario for me
Originally posted by George Brown:
Even after your explanation of "pre-processing" pages I'm not too sure what you mean. I don't see why you would need these kind of pages when your servlets and JSPs are dynamic anyway.

George Brown
Ranch Hand

Joined: Sep 26, 2000
Posts: 919
It seems as though you might be missing ASP and ColdFusion.
using the <%@ include file="blah.jsp" %>, you could include one file in all your files (eg. blah.jsp for example) and the contents of blah.jasp could be another 5 lines of <%@ include file="???.jsp" %>. But I know that's not exactly what you're asking. I don't know of a way to get hooks into the page pre-processing activities - barring reverse-engineering the BEA classes which is a bad idea.
There is a point at which the testing and quality processes are meant to offer benefits, and I guess this is one of them. I hope someone else can find a better answer to the question.
Andy Brookfield
Greenhorn

Joined: Sep 26, 2001
Posts: 10
George,
Originally posted by George Brown:
[B]It seems as though you might be missing ASP and ColdFusion.

Yes, I'm missing the added functionality that CF, ASP and PHP offer (mainly because I've become such a lazy programmer!) unfortunately this HAS to be written in JSP for WebLogic 5.1 I just thought I throw the question out there anyways.
Thanks for taking the time
Andy

 
 
subject: WebLogic Novice - 5.1 Issue possibly
 
Threads others viewed
Script/Request Timeout for JSP/Servlet?
Calling Crystal Report from JSP with weblogic
Reading .asp file from servlet
Broken Pipe
advantage of jsp
IntelliJ Java IDE