<pondering> You know.....I don't know if what you want is possible. Moreover, the question to answer is "should we be doing it that way?"
I can see how one might use a table or few to hold site text (for i18n or whatever), but whatever you grab should *NOT* be code. I can think at least ten ways to get around mixing your presentation layer AND bus. logic layer into the data layer (God, what a kluge!!! I haven't seen that since my delve in Internet Banking (ASP based) a few years back) If you have to recompile after a db pull, then you should consider moving to ASP with its <ever-so-friendly> Execute command. For examples of how to do this, take a look at the "I love you" virus. Remember that one? I managed to get a copy before the exchange admins deleted it from existence. Let me know if you want a copy (although I can't imagine why). JM > -----Original Message----- > From: Galpin, Charles [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 10, 2002 3:00 PM > To: Struts Users Mailing List > Subject: RE: include a dynamically created page in my jsp > > > > > -----Original Message----- > > From: James Mitchell [mailto:[EMAIL PROTECTED]] > > Sent: Friday, May 10, 2002 1:49 PM > > To: Struts Users Mailing List > > Subject: RE: include a dynamically created page in my jsp > > > > Do you mean displaying your site text from a db table? > > > > Sorry, I guess I am not following what you are trying to do. > > Ok picture this - instead of a jsp include, or template call in > my jsp page, > I want to dynamically grab some jsp/html text from a database and > include/parse/compile it at runtime - just like the container > would do when > parsing the jsp file and creating a servlet which is actually running when > you access that jsp. > > So it would look something like... > > My.jsp: > > <my:dynamicInclude chunk="custom_search_form"/> > > DnamicIncludeTag.java: > > String dynamicJspPage = getDynamicJspPageFromDBOrBean(chunk); > // parse the string which contains jsp/html into a servlet > // like the container would do, execute it, and inject > // the output into the current response output. > > Clearer? > > Actually the real problem I'd like to solve is how to include > some jsp that > is outside our application - in other words allow someone to change a few > select jsp files without unwarring our app. I think the answer is that you > don't. :) > > Tia > charles > > > JM > > > > P.S. Please forgive my stupidity, I am a lawyer ;) > I'll forgive you this one time :) > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

