Win a copy of Murach's MySQL this week in the JDBC and Relational Databases forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

WebLogic Novice - 5.1 Issue possibly

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 919
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

 
Well THAT's new! Comfort me, reliable tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic