Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Re-process JSP output?  RSS feed

 
Panda Mima
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there,

I have a problem.
My custom taglib which I am using on JSP page like:

...
<mytagut arg="zzz"></mytag>
...


will give an output of something like

...
<logic:iterate ...>
<cut value="12"/>
</logic:iterate>
...


So the output will use other taglibs.
They could be really a bunch of them, and this is kind of thing which is need to be changed.
Is it possible for taglib somehow force to re-processes page again?

Actually, what I need to do is somehow my JSP/Servlet/anything to generate _JSP_ page (page which will be using anything that any JSP can) and then process it.

Any ideas how to do that?

Thanks!!!
 
Richard Green
Ranch Hand
Posts: 536
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suggest that you modify your "Out" tag ("mytagut") to do all the necessary processing. You can call your other tag ilibrary("logic:iterate") just like any other java class in your "mytagut" tag library.
 
Panda Mima
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, I know that, but I need to be able to execute WHOLE JSP page, which will be loaded from somewhere else (i.e. database).

It's not limited to logic:iterate or whatever else. Anything what can be in JSP.

Is it possible at all?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not without a whole lot of work. And it would be fraught with pitfalls. No one I know has ever seen a need to do such a bizarre thing. What are you really trying to accomplish? There's got to be a better way.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!