• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Process JSP Stream explicitly

 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a server side component which generates the HTML stream and throws back to the client through PrintWriter type or ServletOutputStream type object. I have introduced few custom tags in the same stream instead of HTML controls (<input> and so on). So I need to process the custom tags before they could be thrown back to the client. Is there anyway I can access the JSP engine or execute the custom tag handler class and embedded result into HTML stream?
Here are the code snippets for both scenarios.

1.Before introducing custom tags:

The HTML stream generated dynamically on server side.


This HTML stream can be directly written to out object from a web component i.e. either servlet or JSP.

2.After introducing the custom tags:

The HTML + Custom Tags stream generated dynamically on the server side.


In this case <myTagLibrary:input> custom tag extracts the value for the input element from a java bean and throws back the HTML equivalent along with the value attribute appended.

But this JSP stream I cann�t write to �out� object since they will not be processed. Hence is there any way I can access the JSP Engine or Tag Handler or some other server side service component which takes this HTML + Custom Tag stream and process the custom tags and return the pure HTML stream to the client.

Note: Custom tags are already built in the system and i want to re-use the custom tags.

Thanks for the time.
 
She's out of the country right now, toppling an unauthorized dictatorship. Please leave a message with this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic