• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP executeglobal equivalent  RSS feed

 
Clayton Corbey
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HEY, Y'ALL.
I really need help with this one... Is there and equivalent to ASP's EXECUTEGLOBAL in JSP?.
I have a database, which stores actual JSP code in it. I want to take that JSP code out of the database, via a JSP JDBC, then execute the code dynamically in that JSP page. In ASP you can do this by the command 'EXECUTEGLOBAL' with one argument. It's astring, which has all of your ASP code in it.
Any suggestions?
Clayton
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oooo I've been thinking about this for a bit -- and can't think of anything pretty to do the same thing...
However -- if you put those code snippets in a text file, you can use either a static or dynamic include.
Maybe create a servlet that access teh DB and generates the .jsp file? then use a dynamic include to include the output of the code in your app?
 
Clayton Corbey
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jessica! You doll!
I never thought of making a dynamic DB generated file and the doing an include. That's a great solution! Thank you so much for help on this; I do think that is exactly what I will do!
Clayton
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad I could help, lemme know how it works for you
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!