generate jsp pages outside a request
1 posts in topic
Flat View  Flat View

Posted By:   John_Sciorra
Posted On:   Friday, October 6, 2006 11:35 AM

I would like to generate page snippets outside of a request. For example from a TimerTask that runs periodically and emails users HTML formatted pages. I've done this inside a request before like this:

BodyContent tmpBodyContent = page.pushBody();
String email = tmpBodyContent.getString();

where page is PageContext passed in from the page. Can I get a generic PageContext without a request?

Re: generate jsp pages outside a request

Posted By:   Christopher_Koenigsberg  
Posted On:   Saturday, October 21, 2006 10:29 AM

some testing packages can generate mock objects for you, including the ones needed for testing jsp's, so look into that (httpunit, cactus etc.?)
About | Sitemap | Contact