tags:

views:

37

answers:

1

I have a requirement where in the JSP page itself is created by the user and stored in the database. When viewing results we need to render this JSP to the client, evaluating all tags inside this JSP.

I am aware that it is doable as OpenCMS and Blogger both implement this functionality. But, I just can't find the right way.

Any pointers on how to do this?

[Added] Note: I cannot write a temporary file on disk for the purpose :(

A: 

As ChssPly76 pointed out in the comment this issue was recently discussed. You can just store it as file in the webcontent and forward the request to it. See the link for an code example which I posted.

BalusC