• Post Reply Bookmark Topic Watch Topic
  • New Topic

Generating form contents

 
Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a project where I generate form contents from a database table. Think survey questions with configurable controls.

This was working fine until one of my controls had to be a 'calendar box' that uses a custom tag. So on the server side, from a configuration, I generate this:



In my jsp I have this:



which squirts all the controls I generate into the jsp. Fine. My problem is that the calendar tag doesn't get interpreted - whatever re-interprets the custom tags into HTML isn't happening to the controls inserted by requestScope.contents.

Is there any fu to allow the custom tag interpretation to happen a 2nd time, at the end, etc??
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65522
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. Sorry. Custom tags are interpreted at translation time -- there's no way to cause them to be re-evaluated at run time.
 
Tony Ennis
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would 'translation time' be when the jsp was read from disk?

What if I wrote a new jsp and then 'forwarded' to this jsp? Will I die a crufty death? This is a relatively low volume app.

The custom tag also causes some crapola to be inserted towards the bottom of the jsp - even more stuff I'll have to generate manually if I decide to do the tag-to-html translation by hand.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!