How to add custom VariableResolver in JSP Context in Jsp 2.0 to support custom EL?

I am creating my own JSP tag library, which should support some features that application developers can use as follows:

<w:user-label id="usrlb" value="${session.user}"/>
<w:textbox id="tb" label="User Name" value="${usrlb.value.name}"/>

which means that I want my EL to interact with my Tag declaration. and I also need to add a stack concept to this library to support the "id namespace" or something else.

My current research is forcing me to wrap the default JspFactory as follows:

JspFactory.setDefaultFactory(new JspFactoryImpl(JspFactory.getDefaultFactory()));

Which might work in Tomcat5.5, although this is not a good idea. Is there an even more beautiful way to do this?

+1
source share
2 answers

, <w:user-label /> (, ,...), EL ? bean, , JavaBeans, EL.

+2

<rtexprvalue>false</rtexprvalue>, , .

0

Source: https://habr.com/ru/post/1792529/


All Articles