Hey Denis,

- first of all, this is really the list for non-struts taglibraries, for
struts issues please refer to [EMAIL PROTECTED]
- second, I'm not that sure what you mean, but can't you use the struts-el
taglibraries to create the param at the time the link is created? I think
the el-taglibs are in the struts 1.1 distribution.

Grtz,

Martin

-----Oorspronkelijk bericht-----
Van: f. [mailto:[EMAIL PROTECTED]
Verzonden: woensdag 17 maart 2004 10:00
Aan: [EMAIL PROTECTED]
Onderwerp: Using ExpressionEvaluatorManager in a Struts Action execute()


Hi,

The idea is an hyperlink on HTML Page calling a Struts Action
and with an URI ending with like
myAction.do?elexpression="sessionScope['mylist'][param.row]"

So I need the ELanguage power in my Action.execute( ) method.
I tryed to get a PageContext( ) from JSPFactory.DefaultFactory( ) (using
current request, response,etc )
but now my container (Jetty) send JSP source instead of JSP processing
result.

--------------------------
public class DetailHandlerAction extends Action {

    public ActionForward execute(
        ActionMapping mapping,
        ActionForm form,
        HttpServletRequest request,
        HttpServletResponse response)
        throws Exception {

    PageContext pc =
JspFactory.getDefaultFactory().getPageContext(this.getServlet(),request,
response, null, true, 4096 , false );
    evaluatedDetailRef = ExpressionEvaluatorManager.evaluate(null,
detailRef, Object.class, pc);
    javax.servlet.jsp.JspFactory.getDefaultFactory().releasePageContext(pc);
----------------------------

Any idea ?
Thanks for your help.
Denis.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to