Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JSP tags in DB  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Is there any way to process tags stored as part of content in Database when the data is retrieved and passed to a jsp. I know this might be a bad design but here is my problem in detail.

I have a CMS(content management system) which can deploy to a staging and production environment. Once the CMS user has added images and content he publishes the content to staging and then to production. As a rule all images on production have to come from a CDN(content distribution network) server. However the staging environment does not use CDN (because of hosting implementation, only once the images are pushed to production, do they get propagated to CDN). This causes problems as content which is just pushed to staging only, will have broken images, if i prefix the CDN url to all images. What i thought of is to use a tag which will dynamically add the cdn prefix if necessary. though this could be done with javascript also, I am trying for a server side implementation.

Thanks for your time specially those who read the big explanation.

Any help or suggestions even alternate implementations is welcome. Please also comment if possible the effect on tomcat performance for processing.

Thanks.
 
Author and ninkuma
Marshal
Posts: 66799
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No. Page translation, the point at which such tags would be evaluated, is long passed by the time any execution takes place.

I'd recommend trying a different approach.
 
Emerald D'souza
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!