• 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

Process JSP Stream explicitly  RSS feed

 
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!